RageLtMan
05944ba8c1
Linux x64 reverse_tcp should read known # of bytes
...
The linux x64 reverse tcp stager is hardcoded to read 4K off the
socket. When a small intermediate stager is used, this can result
in reading part of the next stage as well, which means that the
intermediate stager will never recv the # of bytes it needs and
hang indefinitely.
Break out the mettle piece to use separate methods for assembly and
binary payload generation as well as actually putting the product
on the existing session socket.
Change the first part of the stage to check for the intermediate
stager generation method, and use the size of the produced stager
in the recvfrom call or fall back to the prior 4K read size.
Testing:
None yet
Ping @bcook-r7, @acammack-r7, @OJ, @ZeroSteiner
2019-09-03 01:27:27 -04:00
William Vu
32334c2386
Update all module splats from http:// to https://
2019-08-15 18:10:44 -05:00
bwatters-r7
8833bddd91
Fix options in ssh command
2019-08-15 07:13:59 -05:00
bwatters-r7
c9d2013ddb
Change generate method to match single payloads.
2019-08-02 15:47:36 -05:00
bwatters-r7
20438614bb
Stupid extra line....
2019-08-02 11:11:19 -05:00
bwatters-r7
c6defb0264
Rubocop complaints and require_size additions
2019-08-02 11:09:14 -05:00
bwatters-r7
14ee5c4a4f
Update Windows payloads to support exitfunk
2019-08-02 10:28:57 -05:00
Adam Cammack
517d32b082
Update payload cache sizes
2019-07-30 10:34:47 -05:00
Adam Cammack
23ea772076
Golf Ruby pingback payload syntax
2019-07-30 10:32:31 -05:00
Adam Cammack
e6ea0c9fd7
Use binascii for Python pingback UUID encoding
...
This gives us compatibility for Python 3.x and 1.x
2019-07-30 10:18:24 -05:00
Adam Cammack
3cb1b4588b
Golf Python payload variable names
2019-07-30 10:14:41 -05:00
bwatters-r7
05ffa6e4a0
More updates, optimizations, and style fixes
2019-07-29 16:29:32 -05:00
bwatters-r7
d6dc397b21
Fix bugs introduced by syntax changes.
2019-07-29 14:00:09 -05:00
bwatters-r7
6bf10e1f91
Fixups for syntax
2019-07-29 11:55:51 -05:00
bwatters-r7
cec29c6473
More fixes for syntax
2019-07-26 14:51:44 -05:00
bwatters-r7
79b7bbd2cf
Update payload cache size and fix import bug
2019-07-26 13:52:36 -05:00
bwatters-r7
2f804faed9
Rubocop and @acammack cleanup suggestions
2019-07-26 12:36:59 -05:00
bwatters-r7
7c2d214af2
Clean up debugging, move options to one place and delete superflous file
...
change the uuid handing to prevent changes to it when it gets put in payloads
2019-07-25 19:45:05 -05:00
bwatters-r7
6ae3f97c4a
Maybe include the super pingback type in the payloads?
2019-07-25 19:44:11 -05:00
asoto-r7
9b6d4587a4
cmd/unix/pingback_bind: Add resiliency to netcat, per wvu's suggestion
2019-07-25 19:43:14 -05:00
bwatters-r7
949b356f09
Update the session to die after callback
...
Remove stale old file
2019-07-25 19:43:14 -05:00
asoto-r7
8f0aaa70a6
cmd/unix/pingback_* payloads now use 'printf' in place of 'echo'
2019-07-25 19:43:13 -05:00
bwatters-r7
39f193e649
Stupid last trailing space
2019-07-25 19:43:13 -05:00
bwatters-r7
3e765090e2
Fix some spacing
2019-07-25 19:43:13 -05:00
bwatters-r7
08a765df81
Shut up, nmsftidy.... I hope
2019-07-25 19:42:51 -05:00
bwatters-r7
2a242d9b19
Add the new file
2019-07-25 19:42:51 -05:00
bwatters-r7
e1e75d87e9
Code deduplication
2019-07-25 19:42:51 -05:00
asoto-r7
92fa8f4377
Clean up requires and includes
2019-07-25 19:42:50 -05:00
asoto-r7
79c45a6c52
Clean up require's and calculate CachedSize
2019-07-25 19:42:50 -05:00
asoto-r7
58f3a067ab
cmd/unix/pingback_reverse and cmd/unix/pingback_bind
2019-07-25 19:42:50 -05:00
bwatters-r7
9989c731d0
That's better.....
2019-07-25 19:42:50 -05:00
bwatters-r7
c866e0aff6
First swing at x86 windows reverse_tcp pingback
...
Still issues with the looping and counters.
2019-07-25 19:42:50 -05:00
bwatters-r7
e51e271c92
Remove extra stuff that was part of the staged attempt at pingback.
...
It is no longer required because pingback is now a single.
2019-07-25 19:42:50 -05:00
asoto-r7
be011da9f9
Ruby pingback payload (bind and reverse)
2019-07-25 19:42:50 -05:00
asoto-r7
4241d3384c
Python pingback payload (reverse only)
2019-07-25 19:42:50 -05:00
asoto-r7
1d45c3a176
python pingback_bind_tcp: send UUID as raw bytes instead of ASCII
2019-07-25 19:42:50 -05:00
asoto-r7
94c6ee3f7b
Python pingback payload (bind only)
2019-07-25 19:42:26 -05:00
asoto-r7
247f246475
Linux pingback payloads
2019-07-25 19:42:26 -05:00
Aaron Soto
f4fa70da0a
Add error handling for users without a database configured
2019-07-25 19:42:26 -05:00
bwatters-r7
1b64b9f984
Fix odd edge case converting binary to hex string
2019-07-25 19:42:26 -05:00
bwatters-r7
5202a85cd8
Use nonvolitile register for the counter
...
Change option name to match convention
2019-07-25 19:42:26 -05:00
bwatters-r7
d626e5641d
Updated to have a handler
2019-07-25 19:42:26 -05:00
bwatters-r7
9805a14875
Add support for pingback as a single and session...
2019-07-25 19:42:26 -05:00
bwatters-r7
cc69fa286f
Let's try it as a single this time....
2019-07-25 19:42:26 -05:00
bwatters-r7
4ca6c35053
Add new files
2019-07-25 19:42:26 -05:00
bwatters-r7
e798a0dcf0
Add pingback changes
2019-07-25 19:42:25 -05:00
bwatters-r7
f0f45d9882
Maybe stage the new files, too
2019-07-25 19:42:25 -05:00
Brent Cook
4e544fe733
Land #11968 , only enable UDP stagers for compatible payloads
2019-06-29 03:34:15 -05:00
Brent Cook
83e2c71b44
Land #11923 , Set sockaddr_len with x64 shell_find_port payload
2019-06-29 03:26:52 -05:00
RageLtMan
f874f50748
Update Author fields for several modules
...
Add hirura to authors list for the Ruby reverse_ssh payloads.
Update all modules with author-per-line name references to be
consistent (useful given the difference in names between commiter
in git log and GitHub account).
Next steps:
See if HrrRbSsh client-side implementation can be fleshed out
enough to create alternative payload outputs for both of the Ruby
modules (using TARGET/ACTION to select between net/ or hrr_).
2019-06-25 20:49:26 -04:00