Forums

Nmap

I am unable to install nmap on pythonanywher. Can anyone suggest the right way to do the installation

Same problem here, here's the error log,

2023-10-18 05:39:55,696: Exception on /index1 [POST] Traceback (most recent call last): File "/home/undeadeyes12/.local/lib/python3.10/site-packages/flask/app.py", line 2190, in wsgi_app response = self.full_dispatch_request() File "/home/undeadeyes12/.local/lib/python3.10/site-packages/flask/app.py", line 1486, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/undeadeyes12/.local/lib/python3.10/site-packages/flask/app.py", line 1484, in full_dispatch_request rv = self.dispatch_request() File "/home/undeadeyes12/.local/lib/python3.10/site-packages/flask/app.py", line 1469, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) File "/home/undeadeyes12/mysite/network_scanner1.py", line 83, in index1 vulnerabilities = scan_network(target_ip) File "/home/undeadeyes12/mysite/network_scanner1.py", line 88, in scan_network nm = nmap.PortScanner() File "/home/undeadeyes12/.local/lib/python3.10/site-packages/nmap/nmap.py", line 136, in init raise PortScannerError( nmap.nmap.PortScannerError: 'nmap program was not found in path. PATH is : /home/undeadeyes12/.local/bin:/usr/local/bin:/usr/bin:/bin'

It's not installed on PythonAnywhere.

thats what we are trying to do . can u suggest how to install it in here or how to set its path. we are in dire need of help here. please help us

Unfortunately that's not something we can really help with. It's also worth noting that if you were to run it on PythonAnywhere in a free account you would only be able to scan our local network -- you would not be able to scan other hosts on the Internet.