16 Win priv. esc. Hidden In plain view Flashcards

1
Q

How use PS to find .txt, .ini file in a specific folder (such web server) (C:\xampp)

A

Get-ChildItem -Path C:\xampp -Include .txt,.ini -File -Recurse -ErrorAction SilentlyContinue

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

How use PS to find keepass file ?

A

Get-ChildItem -Path C:\ -Include *.kdbx -File -Recurse -ErrorAction SilentlyContinue

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

How use PS to search for all interesting none ciphered file ? (List common ext (6))

A

Get-ChildItem -Path C:\Users\dave\ -Include .txt,.pdf,.xls,.xlsx,.doc,.docx -File -Recurse -ErrorAction SilentlyContinue

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

How get Local groups of the current users is member of ?

A

whoami

net user <user></user>

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

From information retrievied via membership of local group, how run a command as other user ?

A

runas /user:backupadmin cmd

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