Sunday, February 4, 2007

Netstat with GREP in Windows !!

Netstat with GREP in Windows !!

Hi Folks,

Many times we use The most powerful command in MS Windows,

But we miss the GREP functionality in Windows,
which we use with most Debian/Linux/Unixes OS.

So here it is how we can get the GREP functionality within Windows.

here we go.

netstat -an | find "ESTAB"

netstat -an | find "LIST"

netstat -an | find "FIN_WAIT"

netstat -an | find "SYN_SENT"


Note:

ESTAB=Established sessions
LIST=Listening sessions
FIN_WAIT=Killing the session in process / Terminating in session
SYN_SENT=Normally when just opening a new session


Enjoy!

Nitin Kushwaha
CHFI.CEH.NSA.SCSCA.CIW-SA.ITIL.MCSE.MCSA

No comments: