EvilURL
EvilURL copied to clipboard
" Cannot Import name "PortScanner" from 'nmao' "
Running latest rolling version of Kali.
Updated as of today .
Followed instructions and used pip to install nmap .
Here is the full output of my issue.
( Nmap Installation )
➜ EvilURL git:(master) pip install python-nmap python-whois Requirement already satisfied: python-nmap in /usr/local/lib/python3.10/dist-packages (0.7.1) Requirement already satisfied: python-whois in /usr/local/lib/python3.10/dist-packages (0.7.3) Requirement already satisfied: future in /usr/lib/python3/dist-packages (from python-whois) (0.18.2) WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
( Running EvilURL )
➜ EvilURL git:(master) python3 evilurl.py Traceback (most recent call last): File "/pentest/phish/EvilURL/evilurl.py", line 10, in <module> from nmap import PortScanner ImportError: cannot import name 'PortScanner' from 'nmap' (/usr/local/lib/python3.10/dist-packages/nmap/__init__.py)
Thank you for sharing this project .
python just has a wrapper. first install the tool nmap itself, if you are on kali nmap should be installed then there must be a problem with the wrapper so you can maybe use this python wrapper instead here, it is quite simple has everything that nmap offers + more tools! https://github.com/Tech-Realm/The-Exploiter