1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-12-15 02:35:54 +01:00
Commit Graph

112 Commits

Author SHA1 Message Date
Spencer McIntyre
7a3da787b1 Fix bugs introduced by the channel refactoring 2018-03-18 18:13:54 -04:00
Spencer McIntyre
38db1218dd Major refactoring for channel objects 2018-03-18 17:31:23 -04:00
Spencer McIntyre
8153648aab Refactor socket class names with the family 2018-03-17 19:02:05 -04:00
Spencer McIntyre
0e06102549 Add debug statements for channel open dispatching 2018-03-17 18:29:40 -04:00
Tim W
c373b2fafe fix tabs to spaces 2018-03-09 00:45:42 +08:00
Brent Cook
39277d10bc
switch to pythonic whitespace 2018-01-09 15:44:54 -05:00
Jonas Lieb
cd433fb2cf Fix meterpreter.py indentation
Commit b5372d2a98 messed up the indentation
(mixing spaces and tabs) for some parts of the code. This commit fixes it.
2018-01-09 10:43:26 +01:00
Jeffrey Martin
b9ecf579ef
fix scope when a transport has headers 2017-12-20 13:09:23 -06:00
Brent Cook
b5372d2a98 on exception from URLLib, don't spin 100% cpu 2017-12-10 11:55:35 -06:00
OJ
e88cb61839
Small python http header fix 2017-09-11 17:20:22 +10:00
OJ
e1efa94b06
Transport creation for headers, and starting on python support 2017-09-11 14:39:15 +10:00
OJ
b363584648
Merge branch 'upstream/master' into transport-agnostic-packet-encryption 2017-08-08 17:37:25 +10:00
OJ
03a88ff4ad
Land #215 - Fix python meterpreter sleep
Fixes #202
2017-07-13 07:53:20 +10:00
William Webb
cbe6f7783c
Land #212, Add OSX Railgun support to Python Meterpreter 2017-07-11 15:51:32 -05:00
Spencer McIntyre
cb8c2fd009 Adjust how trasnport sleep is handled 2017-07-10 20:32:59 -04:00
OJ
afdd75a25c
Update python meterpreter to support 32 bit enc flags
Both python3 and python2 tested.
2017-07-03 17:33:08 +10:00
Spencer McIntyre
8c9c38ba4b Add export and use a debug_traceback function 2017-06-28 19:44:49 -04:00
OJ
eeeecd7234
Fix python3 support for the session GUID header
Updates the code so that the GUID is handled as a hex-encoded value,
just like the payload UUID. This avoids what appeared to be encoding
issues when the value was packed into the header, resulting in more than
16 bytes appearing and hence screwing it all up!
2017-06-28 17:57:07 +10:00
OJ
60c751c27d
Fix py meterp to support python3 when generating raw headers
Thanks to @zeroSteiner for this.
2017-06-28 12:54:41 +10:00
Spencer McIntyre
1a0f47603b Add debgging around get and send packet for pymet 2017-06-27 20:15:04 -04:00
OJ
445db818be
Update Python meterpreter's packet header handling
This doesn't add AES encryption, just adds support for the new packet
header. AES encryption will come later.
2017-06-26 15:26:27 +10:00
Spencer McIntyre
9538e2d03f Add an option to disable forking in pymet 2017-06-22 10:55:59 -05:00
OJ
813760a9e2
Remove support for the crypto context
Crypto context stuff appears to have only ever been supported in
Meterpreter on Windows. The only thing it allowed for is XOR, which is
redundant given that we have packet level XOR in place. Also, it would
appear that MSF didn't have support for it anyway!

With the move torwards packet-level encryption, this is unnecessary so
it needs to go bye bye.
2017-06-19 16:51:54 +10:00
OJ
cf575a05dd
Add session GUID support to Meterpreter payloads 2017-06-06 17:24:36 +10:00
Spencer McIntyre
9aac25b522 Fix some more pymet backwards compat issues 2017-04-25 17:05:15 -04:00
Spencer McIntyre
71132cc00c Refactor pymet wreg functions and reg decorator 2017-04-19 14:25:07 -04:00
Spencer McIntyre
c9f791bbe3 Pymet add an exported debug function and use it 2017-03-01 21:15:30 -05:00
Spencer McIntyre
77d6ea0161 Add pymet core_native_arch method 2017-02-26 13:15:27 -05:00
bwatters
f736b91531
Land #171, Python Meterpreter Bug Fixes For Python3 On Windows x64 2017-02-24 19:07:40 -06:00
Spencer McIntyre
f1be7b2b0b Refactor pymet for native arch addition 2017-02-17 18:10:57 -05:00
Spencer McIntyre
c5a41cfc18 Use old style str formatting for pymet 2.5 2017-02-15 21:11:22 -05:00
Spencer McIntyre
c78eb1d785 Remove an accidential change from debugging 2017-02-14 13:28:50 -05:00
Spencer McIntyre
85c16b04b3 Fix XOR logic for Python3 compatibility 2017-02-14 13:18:57 -05:00
OJ
6872495da6
Remove Migrate TLVs from php/py, adjust for Java 2017-01-24 07:38:59 +10:00
OJ
7a58d43572
Add response return parameter in fail case
This fixes a small issue where Python meterpreter crashes when MSF
(incorrectly) uses a session type that assumes that Python meterpreter
supports compression when it doesn't. The return value for the function
did not include the response parameter, resulting in Python not being
happy when the function returns as the result was being bound to two
values while only returning one.
2016-11-28 09:04:45 +10:00
Brent Cook
a98d4fbd52 Revert "Fix python meterp xor ordering"
This reverts commit 5c1f729ba3.
2016-11-17 05:56:28 -06:00
OJ
70812fd1ce
Remove core_uuid and add core_set_uuid 2016-10-29 12:42:36 +10:00
OJ
1ebff41fed
Fix python meterp UUID sending 2016-10-27 02:58:54 +10:00
OJ
af106766b8
Add UUID to each message in python meterp 2016-10-14 13:28:19 +10:00
OJ
5c1f729ba3
Fix python meterp xor ordering 2016-10-10 15:06:34 +10:00
root
a26e97b63d Fixed OSX crashes for python meterpreter 2016-05-23 23:00:25 +00:00
krzys-h
cad2ecf2b9 Fixed reconnecting of staged Python meterpreter
See rapid7/metasploit-framework#6842
2016-05-03 14:44:04 +02:00
Spencer McIntyre
c96eaae547 Do not reissue closed channel ids in the pymet 2016-03-01 13:09:16 -05:00
OJ
29f88366ac
Merge branch 'upstream/master' into default-xor 2016-01-13 07:34:40 +10:00
OJ
a8935d8f39 Add XOR to python 2015-12-08 20:29:40 +10:00
Spencer McIntyre
5a785a5e04 Support patching an http transport uri's path 2015-11-28 17:22:09 -05:00
Spencer McIntyre
000eb77f11 Add patch points for stageless python meterpreter 2015-10-21 18:16:19 -04:00
Spencer McIntyre
07dfdd9464 Pymet immediately change transports on tcp failure 2015-07-16 11:00:43 -04:00
Spencer McIntyre
52cf468205 Pymet use incremental backoff for http recv pkt 2015-07-16 10:29:36 -04:00
Spencer McIntyre
3deb273cfa Pymet fix the new transport position 2015-07-15 19:45:34 -04:00