Commit 84e0c5e MemoryForPython
committed
1 parent 9aa2ff9 commit 84e0c5e Copy full SHA for 84e0c5e
File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ #!/usr/bin/python
2
+ #-*- coding:utf-8 -*-
3
+ ########################################################################################################
4
+ #ipreverse.py - v0.0.1 20160402
5
+ ########################################################################################################
6
+ #this is a simply methods to produce ip list with python
7
+ #maybe I would add more functions into in it
8
+ ########################################################################################################
9
+ ###
10
+ ########################################################################################################
11
+ #python ipreverse.py >> ips2.txt
12
+ print """
13
+ this script wouldn products a series of ip depending on your choices
14
+ press ' Ctrl + C ' to stop the process
15
+ 如果想把 结果输出到文件中,可以使用如下命令:
16
+ python ipreverse.py >> ips.txt
17
+ """
18
+ #############################################################################
19
+ import sys
20
+ #origin = sys.stdout
21
+ #ips = open('ips.txt','w+')
22
+ #sys.stdout = ips
23
+
24
+
25
+ for a in range (0 ,255 ):
26
+ for b in range (0 ,255 ):
27
+ for c in range (0 ,255 ):
28
+ for d in range (0 ,255 ):
29
+ print str (a ) + "." + str (b ) + "." + str (c ) + "." + str (d )
30
+
31
+ #sys.stdout = origin
32
+ #ips.close()
33
+
34
+
35
+
36
+ if __name__ == "__main__" :
37
+ main ()
You can’t perform that action at this time.
0 commit comments