MyKings/python-masscan

masscan json output broken?

Closed this issue · 1 comments

I get my portnumbers as integers and not strings which breaks parsing it as a JSON object.
any workaround for this

Yes this still happen, and would hope that they fix this little bug. :(

Easyiest way to fix it:
nano /usr/local/lib/python3.6/dist-packages/masscan/masscan.py
edit line:
port = int(dport.get('portid'))
to
port = str(dport.get('portid'))