Hi
I wonder How I can add version detection to port scanning?
from socket import *
ip = raw_input("Enter IP to scan : ")
start=input("Enter start port number : ")
end=input("Enter end port number : ")
print "Scanning IP: " , ip
for port in range(start,end):
s =socket(AF_INET, SOCK_STREAM)
if(s.connect_ex((ip,port))==0):
print "Port " , port, "is open"
s.close()
print "Port scanning completed now."