Hi Alls,
I'm trying to figure out how can I scan a class C ip range; For example a user provide by cmd line to my script : python script.py 192.168.0.0/24 (OR 192.168.0.1-255)
Let's figure my script does only a tcp connect action:
import socket, sys
host = sys.argv[1],65535
s = socket(AF_INET, SOCK_STREAM)
s.connect(host)
s.send("helloworld")
Do i really need to do a "for x in ip range" ?!? Or a build in module can do that ?
Thanks !