Refresh debian/patches
Sophie Brun
4 years ago
7 | 7 | lib/common/agents.py | 21 +++++++++++---------- |
8 | 8 | lib/common/empire.py | 5 +++-- |
9 | 9 | lib/common/helpers.py | 4 ++-- |
10 | setup/reset.sh | 22 +++++++++++----------- | |
10 | setup/reset.sh | 20 ++++++++++---------- | |
11 | 11 | setup/setup_database.py | 2 +- |
12 | 7 files changed, 48 insertions(+), 28 deletions(-) | |
12 | 7 files changed, 47 insertions(+), 27 deletions(-) | |
13 | 13 | |
14 | 14 | diff --git a/empire b/empire |
15 | index feff904..72c6b57 100755 | |
15 | index 3fc5175..584669b 100755 | |
16 | 16 | --- a/empire |
17 | 17 | +++ b/empire |
18 | 18 | @@ -9,6 +9,22 @@ import hashlib |
70 | 70 | conn.isolation_level = None |
71 | 71 | return conn |
72 | 72 | diff --git a/lib/common/agents.py b/lib/common/agents.py |
73 | index c8a205b..86d1bf5 100644 | |
73 | index a104962..6e21b67 100644 | |
74 | 74 | --- a/lib/common/agents.py |
75 | 75 | +++ b/lib/common/agents.py |
76 | 76 | @@ -87,6 +87,7 @@ class Agents(object): |
144 | 144 | f.write(task) |
145 | 145 | f.close() |
146 | 146 | return pk |
147 | @@ -1949,8 +1950,8 @@ class Agents(object): | |
147 | @@ -1952,8 +1953,8 @@ class Agents(object): | |
148 | 148 | elif responseName == "TASK_CMD_JOB": |
149 | 149 | #check if this is the powershell keylogging task, if so, write output to file instead of screen |
150 | 150 | if keyLogTaskID and keyLogTaskID == taskID: |
156 | 156 | message = "[!] WARNING: agent {} attempted skywalker exploit!".format(self.sessionID) |
157 | 157 | signal = json.dumps({ |
158 | 158 | diff --git a/lib/common/empire.py b/lib/common/empire.py |
159 | index 75e9061..95967b7 100644 | |
159 | index d41e7e5..1aeb5d9 100644 | |
160 | 160 | --- a/lib/common/empire.py |
161 | 161 | +++ b/lib/common/empire.py |
162 | 162 | @@ -182,7 +182,7 @@ class MainMenu(cmd.Cmd): |
179 | 179 | self.conn.isolation_level = None |
180 | 180 | return self.conn |
181 | 181 | diff --git a/lib/common/helpers.py b/lib/common/helpers.py |
182 | index 45ee960..03d4f6f 100644 | |
182 | index 6942283..9dc8058 100644 | |
183 | 183 | --- a/lib/common/helpers.py |
184 | 184 | +++ b/lib/common/helpers.py |
185 | 185 | @@ -594,7 +594,7 @@ def get_config(fields): |
201 | 201 | conn.row_factory = dict_factory |
202 | 202 | cur = conn.cursor() |
203 | 203 | diff --git a/setup/reset.sh b/setup/reset.sh |
204 | index 6d38187..dd48b94 100755 | |
204 | index 5e291d8..dd48b94 100755 | |
205 | 205 | --- a/setup/reset.sh |
206 | 206 | +++ b/setup/reset.sh |
207 | 207 | @@ -1,9 +1,9 @@ |
229 | 229 | + rm ~/.local/powershell-empire/empire.db |
230 | 230 | fi |
231 | 231 | |
232 | -python ./setup_database.py | |
233 | +python3 ./setup_database.py | |
232 | python3 ./setup_database.py | |
234 | 233 | cd .. |
235 | 234 | |
236 | 235 | # remove the debug file if it exists |
249 | 248 | + rm -rf ~/.local/powershell-empire/downloads/ |
250 | 249 | fi |
251 | 250 | diff --git a/setup/setup_database.py b/setup/setup_database.py |
252 | index ff1d1ca..20270a0 100755 | |
251 | index 9453037..d8f62a4 100755 | |
253 | 252 | --- a/setup/setup_database.py |
254 | 253 | +++ b/setup/setup_database.py |
255 | 254 | @@ -60,7 +60,7 @@ OBFUSCATE_COMMAND = r'Token\All\1' |
24 | 24 | |
25 | 25 | diff --git a/data/agent/stagers/dropbox.jinja2 b/data/agent/stagers/dropbox.jinja2 |
26 | 26 | new file mode 100644 |
27 | index 0000000..212e8cb | |
27 | index 0000000..b03deb5 | |
28 | 28 | --- /dev/null |
29 | 29 | +++ b/data/agent/stagers/dropbox.jinja2 |
30 | 30 | @@ -0,0 +1,133 @@ |
51 | 51 | +def post_message(uri, data): |
52 | 52 | + global headers |
53 | 53 | + req = urllib2.Request(uri) |
54 | + for key, value in headers.iteritems(): | |
54 | + for key, value in headers.items(): | |
55 | 55 | + req.add_header("%s"%(key),"%s"%(value)) |
56 | 56 | + |
57 | 57 | + if data: |
163 | 163 | +exec(agent) |
164 | 164 | diff --git a/data/agent/stagers/dropbox.py b/data/agent/stagers/dropbox.py |
165 | 165 | deleted file mode 100644 |
166 | index 38ec345..0000000 | |
166 | index a7776cc..0000000 | |
167 | 167 | --- a/data/agent/stagers/dropbox.py |
168 | 168 | +++ /dev/null |
169 | 169 | @@ -1,135 +0,0 @@ |
192 | 192 | -def post_message(uri, data): |
193 | 193 | - global headers |
194 | 194 | - req = urllib2.Request(uri) |
195 | - for key, value in headers.iteritems(): | |
195 | - for key, value in headers.items(): | |
196 | 196 | - req.add_header("%s"%(key),"%s"%(value)) |
197 | 197 | - |
198 | 198 | - if data: |
515 | 515 | - |
516 | 516 | -exec(agent) |
517 | 517 | diff --git a/lib/listeners/dbx.py b/lib/listeners/dbx.py |
518 | index d737426..3b8ce2d 100755 | |
518 | index 3236b8d..d709ac0 100755 | |
519 | 519 | --- a/lib/listeners/dbx.py |
520 | 520 | +++ b/lib/listeners/dbx.py |
521 | 521 | @@ -418,7 +418,7 @@ class Listener(object): |
528 | 528 | template_options = { |
529 | 529 | 'staging_folder': stagingFolder, |
530 | 530 | diff --git a/lib/listeners/http.py b/lib/listeners/http.py |
531 | index 27945a8..2b79874 100644 | |
531 | index 19af31d..2b7a652 100644 | |
532 | 532 | --- a/lib/listeners/http.py |
533 | 533 | +++ b/lib/listeners/http.py |
534 | 534 | @@ -651,8 +651,8 @@ class Listener(object): |
543 | 543 | 'working_hours': workingHours, |
544 | 544 | 'kill_date': killDate, |
545 | 545 | diff --git a/lib/listeners/redirector.py b/lib/listeners/redirector.py |
546 | index 47e7066..2826f70 100644 | |
546 | index 843db97..e0e9b47 100644 | |
547 | 547 | --- a/lib/listeners/redirector.py |
548 | 548 | +++ b/lib/listeners/redirector.py |
549 | 549 | @@ -417,7 +417,7 @@ class Listener(object): |
3 | 3 | |
4 | 4 | --- |
5 | 5 | data/module_source/python/management/socks-src.py | 2 +- |
6 | lib/modules/python/collection/osx/imessage_dump.py | 2 +- | |
7 | 6 | lib/modules/python/collection/osx/keychaindump_chainbreaker.py | 4 ++-- |
8 | 7 | lib/modules/python/collection/osx/sniffer.py | 4 ++-- |
9 | 8 | .../python/situational_awareness/host/osx/situational_awareness.py | 2 +- |
10 | 5 files changed, 7 insertions(+), 7 deletions(-) | |
9 | 4 files changed, 6 insertions(+), 6 deletions(-) | |
11 | 10 | |
12 | 11 | diff --git a/data/module_source/python/management/socks-src.py b/data/module_source/python/management/socks-src.py |
13 | 12 | index 8ad431a..9905136 100644 |
19 | 18 | from builtins import next |
20 | 19 | from builtins import hex |
21 | 20 | from builtins import object |
22 | diff --git a/lib/modules/python/collection/osx/imessage_dump.py b/lib/modules/python/collection/osx/imessage_dump.py | |
23 | index 5b09512..bfd2b65 100644 | |
24 | --- a/lib/modules/python/collection/osx/imessage_dump.py | |
25 | +++ b/lib/modules/python/collection/osx/imessage_dump.py | |
26 | @@ -1,4 +1,4 @@ | |
27 | -#!/usr/bin/env python | |
28 | +#!/usr/bin/env python3 | |
29 | from builtins import str | |
30 | from builtins import object | |
31 | class Module(object): | |
32 | 21 | diff --git a/lib/modules/python/collection/osx/keychaindump_chainbreaker.py b/lib/modules/python/collection/osx/keychaindump_chainbreaker.py |
33 | index 0cfb9e4..08f71bd 100644 | |
22 | index 13c00b0..c2838b7 100644 | |
34 | 23 | --- a/lib/modules/python/collection/osx/keychaindump_chainbreaker.py |
35 | 24 | +++ b/lib/modules/python/collection/osx/keychaindump_chainbreaker.py |
36 | 25 | @@ -1207,7 +1207,7 @@ def __profile__(): |
52 | 41 | # Author : n0fate |
53 | 42 | # E-Mail [email protected], [email protected] |
54 | 43 | diff --git a/lib/modules/python/collection/osx/sniffer.py b/lib/modules/python/collection/osx/sniffer.py |
55 | index ebd7e3f..ee0ef16 100644 | |
44 | index c6c614c..369d19e 100644 | |
56 | 45 | --- a/lib/modules/python/collection/osx/sniffer.py |
57 | 46 | +++ b/lib/modules/python/collection/osx/sniffer.py |
58 | 47 | @@ -1,4 +1,4 @@ |
69 | 58 | \ No newline at end of file |
70 | 59 | + return script |
71 | 60 | diff --git a/lib/modules/python/situational_awareness/host/osx/situational_awareness.py b/lib/modules/python/situational_awareness/host/osx/situational_awareness.py |
72 | index 0562932..fe60f3a 100644 | |
61 | index 9f7f8a4..8241891 100644 | |
73 | 62 | --- a/lib/modules/python/situational_awareness/host/osx/situational_awareness.py |
74 | 63 | +++ b/lib/modules/python/situational_awareness/host/osx/situational_awareness.py |
75 | 64 | @@ -1,4 +1,4 @@ |