1
mirror of https://github.com/rapid7/metasploit-payloads synced 2024-11-26 17:41:08 +01:00
Commit Graph

341 Commits

Author SHA1 Message Date
Spencer McIntyre
174ae1ab09 Reuse mimikatz RPRN definitions 2022-01-14 15:19:20 -05:00
Ashley Donaldson
0c0001b134
Implementing a 5th getsystem mechanism: print spooler.
Leverages the SeImpersonatePrivilege with the Print Spooler primitive.
2021-11-19 20:12:19 +11:00
Spencer McIntyre
5b9ad76be7 Disable C4756 in mimikatz\modules\sqlite3.c
Warning C4756 (overflow in constant arithmetic) is causing build
failures. Disable it for this one file.
2021-06-11 16:11:32 -04:00
Spencer McIntyre
50aac33fe6 Update mimikatz (the kiwi extension) 2021-06-11 14:22:55 -04:00
Tim W
e31371c813 add debug option 2020-12-20 15:47:39 +00:00
Spencer McIntyre
f9e62ba042 Add a Debug configuration to include debug logs 2020-12-18 16:07:04 -05:00
William Vu
8e3933bed7 Revert "Undo commit for #441"
This reverts commit 8361d5367a, reversing
changes made to db3d5f0896.
2020-10-11 20:49:06 -05:00
William Vu
8c5ab95cd2 Revert "Land #441 - Fix missing TLV migration from string to int"
This reverts commit eb1d51b94e, reversing
changes made to b6ce0dff18.
2020-10-11 20:08:15 -05:00
Spencer McIntyre
666ee4f57e Cleanup the ext_server_priv.vcxproj file 2020-08-19 12:05:53 -04:00
Spencer McIntyre
ce7dd3f699 Clean up the namedpipe_rpcss code 2020-08-19 11:54:21 -04:00
Spencer McIntyre
7967fd569d x64 version is working 2020-08-18 15:41:42 -04:00
OJ
9f859fe208
Make sure output folder exists 2020-06-27 08:32:37 +10:00
OJ
0c9e909a2f
Remove reference to Mimikatz from cmake 2020-06-25 10:56:01 +10:00
OJ
325048a5e6
Fix build, remove metsrv warning 2020-06-25 10:41:29 +10:00
OJ
9dc7a32d6a
Add peinjector cross compile 2020-06-25 10:32:45 +10:00
OJ
c36e5274b8
Finalise kiwi support fix up Makefiles some more 2020-06-25 10:32:37 +10:00
OJ
7fab0b200a
Building, but not working yet
Got an issue where certain functions aren't being resolved and hence are
null when being invoked. Need to debug the loading of the DLL to see why
this is the case.
2020-06-25 10:32:32 +10:00
OJ
f4dd751b23
Add libs to linker input for VS project 2020-06-25 10:31:56 +10:00
OJ
37fb807a95
Get extapi compiling under mingw 2020-06-25 10:31:53 +10:00
OJ
b55b186e79
Final pass of working stuff for the day 2020-06-25 10:31:45 +10:00
OJ
98598720c9
Stupid typo fixed 2020-06-25 10:31:12 +10:00
OJ
e60dd12092
Remove dup 2020-06-25 10:31:08 +10:00
OJ
205405effe
Final winpmem changes.. I think 2020-06-25 10:31:05 +10:00
OJ
fdb785dcee
Few more build fix ups and removal of warnings 2020-06-25 10:30:53 +10:00
OJ
effe6b9827
Lots of changes + stdapi support 2020-06-25 10:30:49 +10:00
OJ
d820fb6458
Get x86 working for metsrv 2020-06-25 10:29:54 +10:00
OJ
aa3b58628f
Get rid of the clang noise 2020-06-25 10:29:51 +10:00
OJ
060feece01
Kinda almost sorta working for metsrv 2020-06-25 10:29:48 +10:00
OJ
e6441ad2fa
Remove DLL exports from Meterpreter
Add support for loading RDI-related stuff using ordinals instead of
function names. Remove exports from the extensions/etc. This is another
step in the direction to make the DLLs less obvious.

Extensions no longer have their own name in the library metadata.
They're all "extension.dll". Metsrv is now "server.dll" and the two
non-extensions are "plugin.dll". I was going for something a little less
obvious.

This required changes to the RDI functionality.
2020-06-25 10:28:36 +10:00
OJ
ab36130546
Fix Release build def files 2020-06-22 08:25:49 +10:00
OJ
c9ca614313
Remove DLL exports from Meterpreter
Add support for loading RDI-related stuff using ordinals instead of
function names. Remove exports from the extensions/etc. This is another
step in the direction to make the DLLs less obvious.

Extensions no longer have their own name in the library metadata.
They're all "extension.dll". Metsrv is now "server.dll" and the two
non-extensions are "plugin.dll". I was going for something a little less
obvious.

This required changes to the RDI functionality.
2020-06-22 08:25:30 +10:00
OJ
c5f8f893ac
Remove the mimikatz extension
Also turn off PDB generation for the sniffer extension.
2020-06-11 08:34:17 +10:00
OJ
c7f7bc2fc0
Remove method strings from TLV packets
We now use ints, and hopefully this means we don't have as much obvious
stuff in the binaries!

```
$ # Before:
$ strings metsrv.x86.dll | grep core_ | wc -l
46
$ # After:
$ strings metsrv.x86.dll | grep core_ | wc -l
0
```
Big win, and it's even bigger for the likes of stdapi.

Had to fix a bunch of other stuff along the way, including a subtle
issue with the Powershell Meterp bindings.
2020-04-28 23:41:06 +10:00
OJ
e0645a8d39
Include comsuppw change for mimikatz
This was required to support upstream changes that cause clean builds
for mimikatz now.
2020-04-24 13:40:19 +10:00
OJ
f54c8e2ccb
Make script tweaks, adjustments to doxygen config 2020-04-24 13:31:34 +10:00
OJ
3dbff1e401
Clean and working builds with CMake 2020-04-24 13:31:34 +10:00
OJ
0e9a231e8a
First pass of CMake support (MSVC specific ATM)
This commit includes a bunch of changes that are working towards being
able to build the Meterpreter source from CMake. Changes include:

* Updated `make.bat` which does the stuff that we need.
* Removed a bunch of stuff from the python extension source tree so that
  CMake generator would not include them.
* Moved a few things around in the priv extension.
* Created `CMakeFileLists.txt` for all the projects.

There are a few hacks required in things like stdapi and kiwi to ignore
files that are on disk but shouldn't be included in the build.

Initial testing indicates that sessions run, extensions load, but some
things don't work as intended. It's a start! Still much to do.
2020-04-24 13:31:16 +10:00
OJ
57eda40fc7
Fix mimikatz to build clean again
I am sad. Like.. really sad. I'm sad for so many reasons. For nearly
7 years I've worked on this god forsaken source, and for many of those
7 years I have had the ext_server_mimikatz project configured to have
warning level 3, and warnings as errors. While making changes to the
build systems in the last week or so, I've even rebuilt this on updated
toolsets on multiple platforms.

Despite all this, one thing slipped through the cracks. I have NO idea
why this warning wasn't shown in th past. Also.. how did this ever
work!? Why is it that it's only rearing its ugly head now? I honestly
don't know. Based on the code that I've had to fix in this PR, there's
no reason why this should build without warnings on any machine. Yet, it
does. It builds clean on my Windows 10 desktop with VS2013/2017/2019.
Same on most of my other virtual machines. For some reason it only
failed on this one VM after I had to fight to reproduce it when Brent
hand an issue.

The issue here was that a `string` type was being constructed from an
iterator over a `wstring` type, and hence there was an implicit
character conversion from `wchar_t` to `char`. This SHOULD be a warning,
because clearly that's not a good thing. BUT HERE WE ARE.

Anyway, we're proxying via the `_bstr_t` type now to avoid having to do
horrible manual character conversions. Given that we're in C++ land
already there's no point in working any harder. Also, this extension is
probably going to go away soon anyway, so a temporary fix that does the
job is good enough.

RIP my morning. I won't be getting that back.
2020-04-24 12:35:40 +10:00
OJ
24e6067b51
Update RDI, remove metsrv references/libs from extensions 2020-04-22 13:13:56 +10:00
OJ
64f6062d8b
Remove unused crap from espia
The video and audio capture things didn't do anything other than leave
artifacts on disk. So this commit removes the code that does that,
resulting in just one feature being available for this extension. Might
be worth ditching it entirely?
2020-04-22 13:06:49 +10:00
OJ
eb81e43b03
Remove the common vcxproj and all references to it 2020-04-22 13:06:49 +10:00
OJ
c8aa435b3c
Finally removed delay loading from the last extension: extapi 2020-04-22 13:06:49 +10:00
OJ
4cd3a29319
Remove delay loading from the kiwi extension 2020-04-22 13:06:48 +10:00
OJ
f4f6bb01d8
Remove delay loading from mimikatz 2020-04-22 13:06:48 +10:00
OJ
472a6b1f9e
Move incognito to no more delay loading 2020-04-22 13:06:48 +10:00
OJ
86a4763164
Update powershell extension to avoid delay loading 2020-04-22 13:06:48 +10:00
OJ
05d5a16fe5
Get the python extension working without delay loading 2020-04-22 13:06:47 +10:00
OJ
ce8544bd2d
Move sniffer over to metserv api 2020-04-22 13:06:47 +10:00
OJ
8565f9967e
Update lanattacks to not use delay loading of metsrv 2020-04-22 13:06:47 +10:00
OJ
f7b50df020
Update peinjectory to avoid delay loading
Also added the GetExtensionName function.
2020-04-22 13:06:47 +10:00