Skip to content

Commit 84e0c5e

Browse files
author
MemoryForPython
committed
Added files via upload
1 parent 9aa2ff9 commit 84e0c5e

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

ipreverse.py

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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()

0 commit comments

Comments
 (0)