Commit Graph

7956 Commits

Author SHA1 Message Date
Brent Cook 93689f0f0e Land #9270, Implement plugin API for hooking database events 2018-02-19 21:36:26 -06:00
Brent Cook 3d67d2ed12 Land #9443, Add warning to FileDropper for deleting CWD 2018-02-19 21:22:39 -06:00
UserExistsError b3f26ea55f bind_named_pipe fixes 2018-02-18 10:31:57 -07:00
RageLtMan 80779f73ef Implement Michael Schierl's suggestions 2018-02-16 23:03:05 -05:00
RageLtMan 354eb4092a Reverse TCP x64 RC4 via max3raza's rc4_x64 asm
To round out the work done by mihi for x86 stages back in the day,
this PR provides x64 Windows stage encryption in RC4 via assembly
written/modified by max3raza during adjacent work on DNS tunneled
transport.

Stage encryption differs from encoding in that there is no decoder
stub or key materiel carried with the stage which can be used by
defensive systems to decode and identify the contents. Persistence
payloads, oob-delivered stage0, and other contexts benefit heavily
from this as their subsequent stage is difficult to detect/identify,
and the chance of accidental execution of the wrong payload/stage
is drastically reduced if separate keys are in play for individual
targets - acquiring the wrong stage will result in decryption
failure and prevent further execution.

For historical context, all of the RC4 stagers implement in-place
decryption via stage0 for the contents of stage1 using the provided
passphrase converted to a key and embedded in stage0 as part of the
payload.

Testing:
  In-house testing with Max - we got sessions, loaded extensions.

Notes:
  All credit for the work goes to Max3raza - big ups for getting
this knocked out.
2018-02-16 05:15:05 -05:00
Brent Cook 38b03fdfff Merge branch 'upstream-master' into land-9539- 2018-02-15 16:22:13 -06:00
Brent Cook 93450b87dd use common retry options for UDP 2018-02-15 14:36:21 -06:00
Wei Chen 6fe8691528 Fix #9090, honoring retry counts for x86/64 payloads
Fix #9090
2018-02-15 13:52:34 -06:00
Jeffrey Martin 3811665b69 Land #7699, Add UDP handlers and payloads (redux) 2018-02-13 14:50:09 -06:00
Jeffrey Martin f5768e7ced gate session reported when using bind udp
While this method here is somewhat noisy on the network it eliminates
a poor user experience when the handler is started but the payload is
not yet running on the target.

When a target is sent a udp packet and it is not rejected push down
an initial "echo syn" command that will respond with output.  This
allows framework to be aware that the payload is what is running on
the server port instead of assuming a non-existent target is a valid
session.
2018-02-13 14:44:57 -06:00
UserExistsError 8ae8a0d94b added bind_named_pipe payload 2018-02-11 18:56:50 -07:00
James Barnett c50b8b5c4f Store loot data as-is, not base64 2018-02-08 18:15:31 -06:00
James Barnett bbd25fc97b WIP: getting services add working 2018-02-08 17:20:50 -06:00
James Barnett f12405191e Fix a few bugs and PR comments 2018-02-08 15:10:44 -06:00
James Barnett f114092445 Merge branch 'goliath' into MS-2833 2018-02-08 14:32:03 -06:00
Jacob Robles c642d420c2 Land #9489, Add scanner for the Bleichenbacker oracle (AKA: ROBOT) 2018-02-08 12:55:02 -06:00
Matthew Kienow de0c4c0572 Allow update of host workspace 2018-02-08 13:19:27 -05:00
James Barnett 542e8a3538 Remove unneeded workspace 2018-02-07 19:51:23 -06:00
jbarnett-r7 352cf295b5 Merge branch 'goliath' into MS-2833 2018-02-07 14:38:26 -06:00
James Barnett 5b35662dbf Address PR comments 2018-02-07 14:21:31 -06:00
Matthew Kienow 52b8f405bd Refactor change host methods, remove debug output 2018-02-06 18:54:05 -05:00
James Barnett 5bc38206c0 Few more loot bugs 2018-02-06 17:22:09 -06:00
James Barnett 0dfc10b1ec Fix a couple of bugs in loot servlet 2018-02-06 17:02:17 -06:00
James Barnett 6e2503bbd8 Add loot update 2018-02-06 16:16:22 -06:00
Matthew Kienow 629f79ebf7 WIP remote host update 2018-02-06 16:11:46 -05:00
James Barnett 49b88dbef7 Pass loot search using query string 2018-02-05 18:15:05 -06:00
James Barnett c72c41e7f3 Move loot search to db_manager 2018-02-05 16:43:02 -06:00
jbarnett-r7 f176e339bc Merge pull request #12 from clee-r7/ms-2911
Ms 2911
2018-02-05 15:46:28 -06:00
James Barnett e8b29af208 Merge branch 'goliath' into MS-2833 2018-02-02 17:32:17 -06:00
Matthew Kienow dcf4171cfb Fix query array encoding issue 2018-02-02 17:16:12 -05:00
James Barnett 326fdacc41 couple of fixes
- Handle bug with hostless loot
- include host data in the JSON
2018-02-02 15:44:42 -06:00
Adam Cammack 02e81d166d Add Enum-type options for external modules 2018-02-02 14:40:04 -06:00
James Barnett f52cf28e56 cmd_loot now queries on loot directly 2018-02-02 14:07:58 -06:00
Adam Cammack ab36b5dd5d Add support for single-IP external scanners 2018-02-02 14:01:16 -06:00
Matthew Kienow 67b7af3385 Add tag conditions to host search 2018-02-02 01:33:15 -05:00
William Vu c9473f8cbc Land #9473, new MS17-010 aux and exploit modules 2018-02-01 23:56:29 -06:00
zerosum0x0 afef1948bf catch exception for patched Vista 2018-02-01 21:39:25 -07:00
christopher lee 5a899d5126 Renamed msfdb to avoid omnibus collision, removed inline data service startup code 2018-02-01 16:28:36 -06:00
christopher lee 59bc1a34d5 Remove 'puts' logging and cleanup AWS poc 2018-02-01 13:38:20 -06:00
James Barnett fc7ab6cbff Merge branch 'externalize-host-data-search' into MS-2833 2018-02-01 11:24:11 -06:00
zerosum0x0 469209a2b3 prefer x64 dynamite 2018-01-31 17:19:09 -07:00
zerosum0x0 6d7b48382e fix print arch key 2018-01-31 17:17:53 -07:00
zerosum0x0 ec26f01360 fix x64 typo 2018-01-31 17:12:07 -07:00
William Vu da23432745 Update cleanup method to check CWD 2018-01-31 16:19:43 -06:00
William Vu e60aeca2db Pass in session to CWD check
Oops, used to this being accessible universally. Not the case here.
2018-01-31 16:19:43 -06:00
William Vu 199a7cc134 Check for subdirectories and relative paths 2018-01-31 16:19:43 -06:00
William Vu 09d931e392 Split assignment across two lines for clarity
https://github.com/bbatsov/ruby-style-guide#use-if-case-returns
2018-01-31 16:19:43 -06:00
William Vu 15ff70fbda Add warning to FileDropper for deleting CWD 2018-01-31 16:19:43 -06:00
Matthew Kienow 5c38207a8e WIP externalize host data search 2018-01-31 16:34:42 -05:00
zerosum0x0 d5d3769517 more robust Windows XP SP0/SP1 fix 2018-01-30 18:11:07 -07:00