MyKings / python-masscan

python-masscan is a python library which helps in using masscan port scanner.
https://pypi.org/project/python-masscan/
GNU General Public License v3.0
281 stars 60 forks source link

Incorrect json format #27

Closed HdbKing closed 4 years ago

HdbKing commented 4 years ago

json must use " instead ' related to "def analyse_masscan_xml_scan"

scan_result['masscan'] = { 'command_line': self._args, 'scanstats': { 'timestr': dom.find("runstats/finished").get('timestr'), 'elapsed': dom.find("runstats/finished").get('elapsed'), 'uphosts': dom.find("runstats/hosts").get('up'), 'downhosts': dom.find("runstats/hosts").get('down'), 'totalhosts': dom.find("runstats/hosts").get('total')} }

scan_result['masscan'] = { "command_line": self._args, "scanstats": { .............. }