Advertisement
gauravssnl

saveIP to file.py

Mar 16th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. # saveIP.py by gauravssnl
  2.  
  3. file = "c:\\saveip.txt"
  4. f = open(file , "w" )
  5.  
  6. for i in xrange(1000) :
  7.     for j in xrange(1000) :
  8.         for k in xrange(1000) :
  9.             f.write( "192.%s.%s.%s\n"%(  i , j , k ) )
  10.  
  11. f.close()
  12. print("IP saved to file")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement