Skip to content

Instantly share code, notes, and snippets.

@chadmando
Created March 19, 2024 15:15
Show Gist options
  • Save chadmando/8da8982e9f64b55bfea7758de71eb8cb to your computer and use it in GitHub Desktop.
Save chadmando/8da8982e9f64b55bfea7758de71eb8cb to your computer and use it in GitHub Desktop.
ns command for UDP connections in powershell
# Full credit for this goes to a SANS ICS diary by Rob Vandenbrink
# https://isc.sans.edu/diary/30532?n
Get-NetUDPEndpoint |
Select-Object LocalAddress,LocalPort,CreationTime,OwningProcess,@{Name="Process";Expression={(Get-Process -Id $_.OwningProcess).ProcessName}} |
Format-Table -auto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment