fixes an issue where the options would not pass to nmap

This commit is contained in:
ekultek 2017-11-25 20:12:53 -06:00
parent c91e4ab69c
commit 0ae36e2489
2 changed files with 3 additions and 1 deletions

View file

@ -65,7 +65,7 @@ d41d8cd98f00b204e9800998ecf8427e ./lib/attacks/__init__.py
d2846e039fefee741db24dd64f7bd50e ./lib/attacks/whois_lookup/whois.py
d2846e039fefee741db24dd64f7bd50e ./lib/attacks/admin_panel_finder/__init__.py
b5cd5e913cc62112776153bdf0f60fa4 ./lib/attacks/xss_scan/__init__.py
fa40d9681c7c3024bd50ad12ef231d6d ./lib/attacks/nmap_scan/__init__.py
63c45495ec1ed2e98946bef514d8805e ./lib/attacks/nmap_scan/__init__.py
216999fa0e84866d5c1d96d5676034e4 ./lib/attacks/nmap_scan/nmap_opts.py
e11185d7dd3d6c94d7f4ddbcfd1d26cc ./lib/header_check/__init__.py
45fc5f5847a3a9909cbd5e0add7b4586 ./lib/core/common.py

View file

@ -30,6 +30,8 @@ class NmapHook(object):
"""
get all the information from the scan
"""
if isinstance(self.opts, (list, tuple)):
self.opts = ""
scanned_data = self.NM.scan(self.ip, arguments=self.opts)
if self.pretty:
scanned_data = json.dumps(scanned_data, indent=4, sort_keys=True)