Netstat in python. Does it's possible?

billie mlist at fastwebnet.it
Sat Feb 11 08:55:42 EST 2006


Hi all. I don't know if Python is good for this kind of jobs but I'm 
wondering if it's possible emulate the "netstat" command in Python.
I'd need to know if a certain executable opened a socket and, in that case, 
I'd like to know what kind of socket it uses (TCP or UDP), its src/dst PORT, 
and the current STATE of the connection (listening, established, SYN 
sent...).

Thanks in advance. 





More information about the Python-list mailing list