6 | 6 |
empire | 18 +++++++++++++++++-
|
7 | 7 |
lib/common/__init__.py | 4 +++-
|
8 | 8 |
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 +++---
|
11 | 11 |
setup/reset.sh | 20 ++++++++++----------
|
12 | 12 |
setup/setup_database.py | 2 +-
|
13 | |
7 files changed, 47 insertions(+), 27 deletions(-)
|
|
13 |
7 files changed, 49 insertions(+), 29 deletions(-)
|
14 | 14 |
|
15 | 15 |
diff --git a/empire b/empire
|
16 | 16 |
index 2ea8525..baa220f 100755
|
|
157 | 157 |
message = "[!] WARNING: agent {} attempted skywalker exploit!".format(self.sessionID)
|
158 | 158 |
signal = json.dumps({
|
159 | 159 |
diff --git a/lib/common/empire.py b/lib/common/empire.py
|
160 | |
index d873703..2ea97c0 100755
|
|
160 |
index d873703..1534538 100755
|
161 | 161 |
--- a/lib/common/empire.py
|
162 | 162 |
+++ b/lib/common/empire.py
|
163 | 163 |
@@ -185,7 +185,7 @@ class MainMenu(cmd.Cmd):
|
|
169 | 169 |
debug_file.write("%s %s : %s\n" % (helpers.get_datetime(), sender, signal))
|
170 | 170 |
|
171 | 171 |
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.
|
173 | 178 |
"""
|
174 | 179 |
try:
|
175 | 180 |
# set the database connectiont to autocommit w/ isolation level
|
|
180 | 185 |
self.conn.isolation_level = None
|
181 | 186 |
return self.conn
|
182 | 187 |
diff --git a/lib/common/helpers.py b/lib/common/helpers.py
|
183 | |
index 038c248..336dcb3 100644
|
|
188 |
index 038c248..d9674d0 100644
|
184 | 189 |
--- a/lib/common/helpers.py
|
185 | 190 |
+++ 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()
|
186 | 200 |
@@ -604,7 +604,7 @@ def get_config(fields):
|
187 | 201 |
i.e. 'version,install_path'
|
188 | 202 |
"""
|