From cd04661d34c633042868ffd84bf6062283c99b66 Mon Sep 17 00:00:00 2001 From: Somdev Sangwan Date: Wed, 18 Dec 2019 09:09:34 +0530 Subject: [PATCH] Resolves #1 --- silver.py | 4 ++++ 1 file changed, 4 insertions(+) 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: