|
@@ -36,8 +36,8 @@ dns = {
|
|
|
|
|
|
config = {
|
|
config = {
|
|
'dns':dns['google_b'],
|
|
'dns':dns['google_b'],
|
|
-'infile':'hosts',
|
|
|
|
-'outfile':'hosts.out',
|
|
|
|
|
|
+'infile':'',
|
|
|
|
+'outfile':'',
|
|
'querytype':'aaaa',
|
|
'querytype':'aaaa',
|
|
'threadnum':10
|
|
'threadnum':10
|
|
}
|
|
}
|
|
@@ -196,13 +196,6 @@ def get_config():
|
|
sys.exit(1)
|
|
sys.exit(1)
|
|
|
|
|
|
global config
|
|
global config
|
|
- if len(args) != 1:
|
|
|
|
- print "You must specify the input hosts file (only one)."
|
|
|
|
- sys.exit(1)
|
|
|
|
-
|
|
|
|
- config['infile'] = args[0]
|
|
|
|
- config['outfile'] = args[0] + '.out'
|
|
|
|
-
|
|
|
|
for key, value in optlist:
|
|
for key, value in optlist:
|
|
if key == '-s':
|
|
if key == '-s':
|
|
config['dns'] = value
|
|
config['dns'] = value
|
|
@@ -218,6 +211,14 @@ def get_config():
|
|
print_help()
|
|
print_help()
|
|
sys.exit(0)
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
+ if len(args) != 1:
|
|
|
|
+ print "You must specify the input hosts file (only one)."
|
|
|
|
+ sys.exit(1)
|
|
|
|
+
|
|
|
|
+ config['infile'] = args[0]
|
|
|
|
+ if config['outfile'] == '':
|
|
|
|
+ config['outfile'] = config['infile'] + '.out'
|
|
|
|
+
|
|
def main():
|
|
def main():
|
|
get_config()
|
|
get_config()
|
|
|
|
|