Working with Network Sockets and Connections Flashcards

1
Q

How to check listening and established connections that would also include PID from PowerShell and CMD?

A

netstat -ano

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

Which command displays the name of the executable involved in creating each connection?

A

-b

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

In PowerShell, how can you list all established connections?

A

Get-NetTCPConnection -State Established

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

In PowerShell, how can you list connections on a specific local port?

A

Get-NetTCPConnection -LocalPort {port}

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

In PowerShell, how can you list connections owned by a specific process?

A

Get-NetTCPConnection -OwningProcess {PID}

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