diff --git a/silver.py b/silver.py index 9e9e662..75b01fd 100644 --- a/silver.py +++ b/silver.py @@ -43,7 +43,10 @@ hostfile = '' if not host: + host = ' ' hostfile = '-iL ' + input_file +else: + host = ' %s ' % host use_cpe = True if method == 'software': @@ -67,6 +70,7 @@ exclude = ' --exclude ' + ','.join(exclude) + ' ' else: exclude = '' + os.system('masscan %s -p%s --rate 10000 -oG %s %s%s>/dev/null 2>&1' % (host, ports_to_scan, savefile, hostfile, exclude)) master_db = parse_masscan(savefile) for host in masscan_saved: