Advertisement
R0lf_R1s1k0

PypScan

Nov 11th, 2016
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. #!/usr/bin/env python
  2.  
  3. #To change the scanned ports, change the value of x and y
  4.  
  5. import os
  6. import sys
  7.  
  8. y = 1
  9. x = 1024
  10.  
  11. params = len(sys.argv)
  12. if params < 1:
  13.     print("No arguments (Hosts) given..")
  14.     exit
  15. host = str(sys.argv[1])
  16. ncstr = "nc -w 1 %s " % host
  17.  
  18. for i in range(y,x):
  19.     os.system(str(ncstr) + str(i))
  20.     print(ncstr, i)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement