1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-05-06 16:09:38 +02:00

1340 Commits

Author SHA1 Message Date
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
9e3aef62bc
Hack to ignore metsrv.dll stage when connecting to staged listener
The last issue we had in removing the OpenSSL library from Windows
meterp is making it so that reconnects would behave. With a staged
listener, the first thing that gets sent down the wire is metsrv.dll. As
a result, when a fully staged connect comes in (whether it be from
a stageless payload, from a transport switch or from a sleeping session
waking up), Meterpreter needs to handle the case that the data coming
down the wire is no actually a TLV packet, and hence ignore it.

This "hack" abuses the properties of the XOR key for the packet,
relying on the fact that the XOR key will never contain NULl bytes and
that the first 4 bytes from a staged listener starts with the length of
the metsrv DLL, which is small enough to result in a NULL byte in the
MSB position.

If we see a NULL byte in that position, we assume it's the metsrv header
coming in, and we just ignore it and move on. If the XOR key looks
legit, we assume it's a valid TLV packet.

Dirty, but it's quick and it works!
2017-06-16 13:34:46 +10:00
OJ
3554aff9de
Remove SSL from all but the python extension
Re-implement MD5 and SHA1 file hashing using CSP.
2017-06-14 21:40:20 +10:00
Brent Cook
28a9f42e14 more ssl flensing 2017-06-14 04:56:47 -05:00
Brent Cook
36f3d346fe fix line endings 2017-06-14 04:56:47 -05:00
Brent Cook
36771d6309 initial pass at flensing openssl code from reverse_tcp 2017-06-14 04:56:47 -05:00
OJ
5fcff5ea76
Update to Mimikatz 2.1.1 20170608 for changentlm function 2017-06-13 15:29:02 +10:00
Brent Cook
0ba547b360
Land , Add session GUID support 2017-06-09 00:59:37 -05:00
OJ
cf575a05dd
Add session GUID support to Meterpreter payloads 2017-06-06 17:24:36 +10:00
RaMMicHaeL
dd224a91f0 Fixed an elusive bug on AMD CPUs
Details:
http://blog.rewolf.pl/blog/?p=1484
8771485dd3
2017-06-03 11:24:01 +03:00
Brent Cook
0a2d768e77 delete Linux meterpreter support 2017-05-14 02:11:57 -05:00
Brent Cook
dc712150af
Land , Adjust proxy code to support DNS/DHCP resolution 2017-05-08 16:57:08 -05:00
OJ
91558d0c16
Adjust proxy code to support DNS/DHCP resolution
This code is blatantly poached from the blog post locted at
https://medium.com/@br4nsh/a-meterpreter-and-windows-proxy-case-4af2b866f4a1
which was written by Juan. A great deal of time and effort went into
that research and all credit for this work should go to him.
2017-05-05 16:16:54 +10:00
OJ
7c65e621a1
Fix stageless URI redirect parsing
This commit fixes the case where we incorrectly assume that the URIs
used in the transport don't make use of the LURI setting in MSF.

The bug was that the code iterated through the URI string in reverse,
looking for a slash and then using that as the point to patch the new
URI over the existing. This meant that with the LURI parameter used, the
actual LURI field was missed, and the patch would result in the LURI
value appearing again.

The fix put in iterates from the start of the string and looks for the
third instance of the slash. This means that the LURI field is patched
as well as the UUID section.

Fixes 
2017-05-03 10:36:53 +10:00
Brent Cook
995471faad
Land , list all possible privileges with the getprivs command 2017-04-21 14:46:30 -05:00
Brent Cook
37bc1689b2
fix a compiler warning 2017-04-15 05:51:12 -05:00
ouahib-el-hanchi
4f9866d035 Fixed issue 2017-04-15 02:55:00 +01:00
Brent Cook
6e7d55898e
Land , Keyscan system updates 2017-04-14 13:48:32 -05:00
William Webb
8bd164bbbb some minor cleanup 2017-04-12 21:19:45 -05:00
OJ
cdfe1dc5c0
Remove debug project configurations from C windows meterp 2017-04-11 20:29:39 +10:00
OJ
541e879023
Update the kiwi extension source to v2.1.1
This brings the source up to date with the source from the Rapid7 repo
which includes the v2.1.1 source released by Ben.
2017-04-11 20:21:57 +10:00
William Webb
88f240c26c
specify globals in variable names because its 2017 bro 2017-04-10 14:28:22 -05:00
William Webb
017a4e107e
final cleanup and type check 2017-04-10 14:08:46 -05:00
William Webb
3653169513
save wip 2017-04-05 00:18:02 -05:00
William Webb
145285c549
add focused windows enumeration and date/time stamping 2017-04-01 22:21:54 -05:00
William Webb
5d917565c0
add known working keylog code 2017-03-31 13:19:53 -05:00
William Webb
9272af7863
save initial unicode keyscan updates 2017-03-20 21:47:47 -05:00
Jeff Tang
e97b8449c2 Add universal unhooking call to meterpreter server
metsrv will unhook its current process before initializing the
connection
2017-02-27 17:11:18 -05:00
Brent Cook
d840805ad4 end-of-line mismatches in common.h 2017-01-24 18:49:14 -06:00
Brent Cook
f0b9f6b76a replace timestomp code with rewritten versions 2017-01-24 18:49:14 -06:00
OJ
6872495da6
Remove Migrate TLVs from php/py, adjust for Java 2017-01-24 07:38:59 +10:00
Brent Cook
8d84a89c5a
Land , Revamp Kiwi to work off Mimikatz subrepo 2016-12-29 14:31:19 -06:00
Brent Cook
c635df826d
Land , use ctypes to extract Windows sysinfo directly 2016-12-29 14:29:24 -06:00
Brent Cook
8e4af5500a Windows 2016 is released 2016-12-29 13:31:05 -06:00
OJ
a4982ca307
Remove unused kiwi TLVs 2016-12-23 09:58:26 +10:00
OJ
f68bf83fec
Update again to mimikatz subrepo head 2016-12-23 09:50:52 +10:00
OJ
e7bf6adb37
Updated to mimiktaz master 2016-12-23 09:37:20 +10:00
OJ
bc90795ab4
Remove bulk comments, update to latest mimikatz 2016-12-23 08:33:04 +10:00
OJ
3bc2d697a4
Update the mimikatz head 2016-12-20 18:24:32 +10:00
OJ
58cad3a426
Re-add wifi support, and update subrepo 2016-12-10 11:19:30 +10:00
OJ
69d5c98020
Bump submodule to use R7 master for mimikatz 2016-12-09 09:09:45 +10:00
OJ
4f0c9407d2
Adjust TLV lable in POSIX to match updates 2016-12-08 16:46:50 +10:00
OJ
e42ef7a17e
Change PBYTE to LPBYTE to keep POSIX happy 2016-12-08 16:39:38 +10:00
OJ
ff56b36a98
Move migration stub code to MSF
This commit changes the code so that the migration stubs are generated
in MSF and are transport specific (so that we only do the work we need
to).
2016-12-08 16:00:04 +10:00
OJ
4bed8fa179
Update kiwi project to ref new mimikatz files 2016-12-07 17:55:57 +10:00
OJ
752fe2f6f2
Update to latest mimikatz version 2016-12-07 17:27:17 +10:00
OJ
4c5c6e79b1
Mimikatz external deps dancing 2016-12-07 17:22:32 +10:00
OJ
e312cc934f
Add short comment to explain user of powershell function 2016-12-07 14:41:33 +10:00
OJ
ffc9c1d37a
Add mimikatz submodule with MSF changes
This includes a few changes that are in an open branch waiting to be
merged into the mimikatz source.
2016-12-07 14:41:33 +10:00
OJ
a31b16452c
Remove old kiwi code 2016-12-07 14:41:33 +10:00