From b0f27f7c9dd7cd0a7cc0ff07620ac725494ce8d5 Mon Sep 17 00:00:00 2001 From: InfoSec <1241112575@qq.com> Date: Tue, 2 Aug 2016 17:24:07 +0800 Subject: [PATCH] Add files via upload --- scripts/ipreverse.py | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 scripts/ipreverse.py diff --git a/scripts/ipreverse.py b/scripts/ipreverse.py new file mode 100644 index 0000000..28808bf --- /dev/null +++ b/scripts/ipreverse.py @@ -0,0 +1,37 @@ +#!/usr/bin/python +#-*- coding:utf-8 -*- +######################################################################################################## +#ipreverse.py - v0.0.1 20160402 +######################################################################################################## +#this is a simply methods to produce ip list with python +#maybe I would add more functions into in it +######################################################################################################## +### +######################################################################################################## +#python ipreverse.py >> ips2.txt +print """ +this script wouldn products a series of ip depending on your choices +press ' Ctrl + C ' to stop the process +如果想把 结果输出到文件中,可以使用如下命令: +python ipreverse.py >> ips.txt +""" +############################################################################# +import sys +#origin = sys.stdout +#ips = open('ips.txt','w+') +#sys.stdout = ips + + +for a in range (0,255): + for b in range (0,255): + for c in range (0,255): + for d in range (0,255): + print str(a) +"." + str(b) + "." + str(c) + "." + str(d) + +#sys.stdout = origin +#ips.close() + + + +if __name__ == "__main__": + main()