Friday 26 April 2013

Python port scanner

So I've been playing with Python sockets and the easiest thing I could think of doing was to create a port scanner. Don't get me wrong this isn't a replacement for the mighty Nmap.

Port Scanner

Only takes the IP address as input at present, so if you want to add more ports you'll need to add them to the code. As I've said before, I don't code, so please be nice ;-)

Use it like this:

python portscanner.py 192.168.0.4
Scanning :  192.168.0.4
Port 80 is open
Port 515 is open
Port 9100 is open