16 Win priv esc. Situational Awareness Flashcards

1
Q

What are information a pentest should always get in windows system exploit ? (7)

A
  • Username and hostname
  • Group memberships of the current user
  • Existing users and groups
  • Operating system, version and architecture
  • Network information
  • Installed applications
  • Running processes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What command can be used to obtrain username and hostname

A

whoami

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

How get groups user is in ?

A

whoami /groups

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

How get other users and groups on the system.

A

(powershell) Get-LocalUser

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

How to enumerate the existing groups

A

(ps) Get-LocalGroup
(ps) net localgroup

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

let’s review the members of adminteam and Administrators

A

(ps) Get-LocalGroupMember adminteam

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

let’s check the operating system, version, and architecture first

A

(ps) systeminfo

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

To list all network interfaces, we can use ?

A

ipconfig /all.

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

To display the routing table ?

A

route print

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

To list all active network connections we can use netstat ?

A

netstat -ano

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

We’ll check all installed applications, We can query two registry keys.

A

Get-ItemProperty “HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall*” | select displayname

Get-ItemProperty “HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall*” | select displayname

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

Due to an incomplete or flawed installation process. Therefore

A

we should always check 32-bit and 64-bit Program Files directories located in C:.

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

How identify currently running process

A

Get-Process

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

Get currently running process and binary filepath

A

Get-Process | Select-Object Name, Id, @{Name=”Path”;Expression={$_.Path}} | Format-Table -AutoSize

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

Search for keepass db 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
16
Q

What is extension files where password can be found in XAMPP

A

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

17
Q

What are extension of interesting file in windows ?

A

.txt,
.pdf,
.xls,
.xlsx,
.doc
docx

18
Q

How search for interesting file in windows user account ?

A

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

19
Q

How run as another user a cmd in windows ?

A

(ps) runas /user:backupadmin cmd

20
Q
A