Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 607 Bytes

README.md

File metadata and controls

22 lines (15 loc) · 607 Bytes

Python module for returning netstat like results

import netstat

netstat.netstat()
netstat.only_listening()

There is also a graphing tool that can graph inbound and outbound connections

# python graph-netstat.py

After running the above command, look for the nmap.png file.

Other Notes

Currently the formatting for IPv6 addresses is not displaying correctly

The original source code is from http://voorloopnul.com/blog/a-python-netstat-in-less-than-100-lines-of-code/

Modifications have been made to add support for TCP6 and filtering. More to be added in the future