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
2
Q
Which command displays the name of the executable involved in creating each connection?
A
-b
3
Q
In PowerShell, how can you list all established connections?
A
Get-NetTCPConnection -State Established
4
Q
In PowerShell, how can you list connections on a specific local port?
A
Get-NetTCPConnection -LocalPort {port}
5
Q
In PowerShell, how can you list connections owned by a specific process?
A
Get-NetTCPConnection -OwningProcess {PID}