-
Notifications
You must be signed in to change notification settings - Fork 10
/
run.py
36 lines (29 loc) · 1.31 KB
/
run.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#coding:utf-8
import sys
reload(sys)
sys.setdefaultencoding('utf8')
from core.config import version,author,init_option
from core.dnsfind import DnsFind
from optparse import OptionParser
if __name__ == '__main__':
usage = '''
____ _______ __
/ __ \____ _____/ ____(_)___ ____/ /
/ / / / __ \/ ___/ /_ / / __ \/ __ /
/ /_/ / / / (__ ) __/ / / / / / /_/ /
/_____/_/ /_/____/_/ /_/_/ /_/\__,_/
Author: %s && Ver: %s
''' % (author,version)
print usage
parser = OptionParser()
parser.add_option("-u", "--target", dest="target", default='baidu.com', help="set domain.(simple: baidu.com)")
parser.add_option("-t", "--threads", dest="threads_count", default=10, help="threads count.(default 10)")
parser.add_option("-s", "--timeout", dest="timeout", default=5, help="set timeout of requests.(default 5s)")
parser.add_option("-d", "--dictname", dest="dictname", default=None, help="choice dicts.(default All)")
parser.add_option("-f", "--finger", dest="finger", default=False, action="store_true",help= "choice finger on/off.(default False)")
parser.add_option("-k", "--keywords", dest="keywords", default=None, help="set keywords.(default None)")
(options, args) = parser.parse_args()
try:
DnsFind(init_option(options)).run()
except KeyboardInterrupt, e:
sys.exit(1)