Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #just a basic Script to scan all alive host with FIN Flag
- #you can use other Flags like URG flag or any other flag to perform a scan (possibilities with these are endless)
- responsedHost = []
- for i in range(1,255):
- ip = "192.168.0"
- ip = ip + '.' + str(i)
- command = "hping3 -c 3 -F "
- command += ip
- print("checking host = " + ip)
- res = os.system(command)
- if res is 0:
- print("Host :" + ip + " Responded\n\n")
- responsedHost.append(ip)
- os.system("clear")
- else:
- pass
- os.system("clear")
- print("Host that Responded are:")
- for host in responsedHost:
- print(host)
Add Comment
Please, Sign In to add comment