Closed FuckAllWorld closed 4 years ago
@FuckAllWorld
Can you execute the masscan -oX - x.x.x.x/24 -p 22 --max-rate 1000
command and see the results?
yeah,but sometime:masscan.masscan.NetworkConnectionError: network is unreachable.i don't know why
This error is that the masscan
scan failed and no results were returned.
I'sure is my network problem.
[DEBUG] [masscan.py 10 line] Scan parameters: "masscan -oX - x.x.x.x/24 -p 22 --max-rate 1000" Traceback (most recent call last): File "/usr/local/lib/python3.5/dist-packages/masscan/masscan.py", line 384, in analyse_masscan_xml_scan dom = ET.fromstring(self._masscan_last_output) File "/usr/lib/python3.5/xml/etree/ElementTree.py", line 1334, in XML return parser.close() xml.etree.ElementTree.ParseError: no element found: line 1, column 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "ppp.py", line 6, in
mas.scan(i.rstrip(), ports='22', arguments='--max-rate 1000')
File "/usr/local/lib/python3.5/dist-packages/masscan/masscan.py", line 329, in scan
masscan_warn_keep_trace=masscan_warn_keep_trace
File "/usr/local/lib/python3.5/dist-packages/masscan/masscan.py", line 387, in analyse_masscan_xml_scan
raise NetworkConnectionError("network is unreachable.")
masscan.masscan.NetworkConnectionError: network is unreachable.
if i set two port,everything is normal
[DEBUG] [masscan.py 10 line] Scan parameters: "masscan -oX - x.x.x.x/24 -p 22,80 --max-rate 1000" {'masscan': {'scanstats': {'..............