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

masscan.masscan.PortScannerError #36

Closed alimoradi2020 closed 2 years ago

alimoradi2020 commented 3 years ago
import masscan

mas = masscan.PortScanner()
mas.scan('172.0.8.78/24', ports='22,80,8080')
print(mas.scan_result)

'masscan program was not found in path. PATH is : {0}'.format(os.getenv('PATH')) masscan.masscan.PortScannerError: 'masscan program was not found in path. PATH is : /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'

what is the problem?! im using python3.6

atsiami commented 3 years ago

same here.

kordup commented 3 years ago

I resolved this issue by downloading masscan.py from this github and importing it directly (instead of through pip).

Andydev503 commented 2 years ago

it still says the same im also on windows 10