2007年5月10日木曜日

Find all the listening or open ports on my computer

Dùng lệnh sau để xem những port đang được open trên Window:

netstat -an
netstat -ao

Export to file :

netstat -an |find /i "listening" > c:\ports.txt

You can then use PULIST with the FIND command:

C:\WINDOWS>pulist |find /i "1536"

To see all open, established, closing and other used ports type:

C:\WINDOWS>netstat -a