123456789101112131415161718 |
- from random import randint
- import os
- while(True):
- a = randint(0,255)
- b = randint(0,255)
- c = randint(0,255)
- d = randint(0,255)
- ip = str(str(a)+"."+str(b)+"."+str(c)+"."+str(d)) #ip-gen
- print("Scaning:" + ip)
- os.system("nmap -p- --open "+ ip)
-
- if(ip == str("127.0.0."+ str(d)) or ip == str("192.168." + str(c) + "." + str(d))): #локальные ip
- continue
|