Codebase list powershell-empire / kali/3.3.1-0kali2
Fix issue with database location (see 6623) Sophie Brun 3 years ago
2 changed file(s) with 26 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
0 powershell-empire (3.3.1-0kali2) kali-dev; urgency=medium
1
2 * Fix issue with database location (see 6623)
3
4 -- Sophie Brun <[email protected]> Thu, 06 Aug 2020 10:52:19 +0200
5
06 powershell-empire (3.3.1-0kali1) kali-dev; urgency=medium
17
28 * New upstream version 3.3.1
66 empire | 18 +++++++++++++++++-
77 lib/common/__init__.py | 4 +++-
88 lib/common/agents.py | 21 +++++++++++----------
9 lib/common/empire.py | 5 +++--
10 lib/common/helpers.py | 4 ++--
9 lib/common/empire.py | 7 ++++---
10 lib/common/helpers.py | 6 +++---
1111 setup/reset.sh | 20 ++++++++++----------
1212 setup/setup_database.py | 2 +-
13 7 files changed, 47 insertions(+), 27 deletions(-)
13 7 files changed, 49 insertions(+), 29 deletions(-)
1414
1515 diff --git a/empire b/empire
1616 index 2ea8525..baa220f 100755
157157 message = "[!] WARNING: agent {} attempted skywalker exploit!".format(self.sessionID)
158158 signal = json.dumps({
159159 diff --git a/lib/common/empire.py b/lib/common/empire.py
160 index d873703..2ea97c0 100755
160 index d873703..1534538 100755
161161 --- a/lib/common/empire.py
162162 +++ b/lib/common/empire.py
163163 @@ -185,7 +185,7 @@ class MainMenu(cmd.Cmd):
169169 debug_file.write("%s %s : %s\n" % (helpers.get_datetime(), sender, signal))
170170
171171 if self.args.debug == '2':
172 @@ -319,7 +319,8 @@ class MainMenu(cmd.Cmd):
172 @@ -315,11 +315,12 @@ class MainMenu(cmd.Cmd):
173
174 def database_connect(self):
175 """
176 - Connect to the default database at ./data/empire.db.
177 + Connect to the default database at ~/.local/powershell-empire/empire.db.
173178 """
174179 try:
175180 # set the database connectiont to autocommit w/ isolation level
180185 self.conn.isolation_level = None
181186 return self.conn
182187 diff --git a/lib/common/helpers.py b/lib/common/helpers.py
183 index 038c248..336dcb3 100644
188 index 038c248..d9674d0 100644
184189 --- a/lib/common/helpers.py
185190 +++ b/lib/common/helpers.py
191 @@ -271,7 +271,7 @@ def strip_powershell_comments(data):
192
193
194 def keyword_obfuscation(data):
195 - conn = sqlite3.connect('./data/empire.db', check_same_thread=False)
196 + conn = sqlite3.connect(os.path.expanduser('~/.local/powershell-empire/empire.db'), check_same_thread=False)
197 conn.isolation_level = None
198 conn.row_factory = None
199 cur = conn.cursor()
186200 @@ -604,7 +604,7 @@ def get_config(fields):
187201 i.e. 'version,install_path'
188202 """