Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

" Cannot Import name "PortScanner" from 'nmao' " #28

Open
brandontict opened this issue Jul 18, 2022 · 1 comment
Open

" Cannot Import name "PortScanner" from 'nmao' " #28

brandontict opened this issue Jul 18, 2022 · 1 comment

Comments

@brandontict
Copy link

brandontict commented Jul 18, 2022

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 .

@Majboor
Copy link

Majboor commented Apr 23, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants