sexta-feira, 17 de agosto de 2012

Netstat filtering query

I have run: netstat -ano | findstr <PID>

To find the IP's, state, and port of all connections relating to a certain PID.

netstat -ano | findstr :25 | findstr ESTABLISHED

Or you can do it with regular expressions to avoid running it through the findstr process twice. This also allows you to match a single line based on multiple elements with logical AND and OR etc. netstat -ano | findstr :25.*EST netstat -ano | findstr "80.*EST | 443.*EST"

Nenhum comentário:

Postar um comentário