susi.py 391 B

123456789101112131415161718
  1. from random import randint
  2. import os
  3. while(True):
  4. a = randint(0,255)
  5. b = randint(0,255)
  6. c = randint(0,255)
  7. d = randint(0,255)
  8. ip = str(str(a)+"."+str(b)+"."+str(c)+"."+str(d)) #ip-gen
  9. print("Scaning:" + ip)
  10. os.system("nmap -p- --open "+ ip)
  11. if(ip == str("127.0.0."+ str(d)) or ip == str("192.168." + str(c) + "." + str(d))): #локальные ip
  12. continue