-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caldera uses an outdated version of Mimikatz which no longer works on Windows 10 #47
Comments
Before swapping out the mimikatz binary it will need to be encoded with https://github.com/mitre/caldera/blob/master/scripts/encode.py . Sorry, for the trouble. We should make sure our docs discuss how to use encode.py, or get rid of it. It's intended to be more of a convenience in case you're trying to run caldera on a system with AV turned on without needing to whitelist the folder (it may be more trouble than it's worth). Assuming, updating mimikatz allows caldera to work on 1803 we can close this once:
|
Hey there, I tried it by running python encode.py -i mimikatz.exe -o mimi64-exe and encode.py -i mimikatz.dll -o mimi64-dll. There is a third sys file which i did not encode but placed it in the same directory. When running the step though caldera threw this: Any idea on what I did wrong? |
@hf-mitre Any progress on this? |
Hi @trallgorm sorry for the delay. |
Hi @hf-mitre I've updated caldera but when it runs mimikatz, it show the following error and can't get the credentials.
I can run latest mimikatz.exe on the same computer (just the exe, I don't use the Invoke-Mimikatz) without problem and get the credentials. Thanks! |
Hi @Mergene , Is that the extent of the error message? Is there anything else after those two lines? I tested this with Server 2016. I'll need to try to reproduce this on 10. |
Hi @hf-mitre , All of the mesage : https://pastebin.com/P4tbw8Kz |
Ah, looks like the fix didn't quite make it into Empire when I pulled EmpireProject/Empire#1193 . I'm guessing using the Invoke-Mimikatz script in this Empire PR will fix this EmpireProject/Empire#1194 . I'll try to take a look at it, try it out and update CALDERA. If you want to test it out yourself you can try updating it on your local version of CALDERA ( https://caldera.readthedocs.io/en/latest/encoding_external_files.html ). |
Downloaded the script from https://github.com/EmpireProject/Empire/blob/7a39a55f127b1aeb951b3d9d80c6dc64500cacb5/data/module_source/credentials/Invoke-Mimikatz.ps1 and encoded it. It worked! Thanks! |
This should finally be fixed in 3bc1637 |
Hey there, me again. Preliminary discussion in #46
Short story is get_creds no longer works on the latest Windows 10 version because the update broke Mimikatz. More information here: EmpireProject/Empire#1147
I've tried changing the following line:
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress')
to
$GetProcAddress = $UnsafeNativeMethods.GetMethod('GetProcAddress', [Type[]]@([System.Runtime.InteropServices.HandleRef], [String]))
In both invoke-reflectivepe-ps1 and invoke-mimi-ps1.
This fixed the immediate issue but showed that Mimikatz is outdated as well as the same error as described here happens:
gentilkiwi/mimikatz#146
I'm not sure how to go about swapping out the mimikatz binary to the new version, I tried just replacing the mimi64-exe file but that didn't work. Please advise.
Thanks!
The text was updated successfully, but these errors were encountered: