36772/not-able-to-use-nmap-in-python
I am trying to create a port scanner using python with nmap module. I have imported to nmap module but I am getting error:
>>> nm = nmap.PortScanner() AttributeError: module 'nmap' has no attribute 'PortScanner'
nmap module doesn’t have PortScanner attribute. The module you need to install to use PortScanner is python-nmap.
To install this, you can run the following command in command prompt/terminal:
pip install python-nmap
I'm using Ubuntu win. on python I ...READ MORE
Okay, I understand. To extract structured data ...READ MORE
There is no package called arpspoof. To use the arpspoof command, ...READ MORE
Hi, the webpage nikto-test.com doesn’t exist anymore. ...READ MORE
you want install 1.pip uninstall nmap 2.pip install python-nmap in ...READ MORE
You can also use the random library's ...READ MORE
Syntax : list. count(value) Code: colors = ['red', 'green', ...READ MORE
Enumerate() method adds a counter to an ...READ MORE
Might not be the actual router address. ...READ MORE
When you run a command with sudo, by ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.