Not able to use nmap in python.

0 votes

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'
Jan 28 in Cyber Security & Ethical Hacking by Pavan
27 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

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
answered Jan 28 by Omkar
• 65,850 points

Related Questions In Cyber Security & Ethical Hacking

0 votes
1 answer

Not able to install arpspoof

There is no package called arpspoof. To use the arpspoof command, ...READ MORE

answered Feb 9 in Cyber Security & Ethical Hacking by Omkar
• 65,850 points
47 views
0 votes
1 answer

Not able to run nikto scan on nikto-test.com

Hi, the webpage nikto-test.com doesn’t exist anymore. ...READ MORE

answered Apr 1 in Cyber Security & Ethical Hacking by Karan

reshown Apr 1 by Omkar 8 views
0 votes
1 answer

Not able to run Nessus Scanner

You have missed out a step. After ...READ MORE

answered Apr 1 in Cyber Security & Ethical Hacking by Lilly
16 views
0 votes
1 answer

How to find IP address of nodes in my network?

The IP address of the nodes connected ...READ MORE

answered Feb 9 in Cyber Security & Ethical Hacking by Omkar
• 65,850 points
23 views
0 votes
1 answer

python nmap can't find PortScanner attribute

As I can see in the error ...READ MORE

answered Jan 30 in Python by Omkar
• 65,850 points
176 views
0 votes
1 answer

how can i count the items in a list?

suppose you have a list a = [0,1,2,3,4,5,6,7,8,9,10] now ...READ MORE

answered May 2 in Python by Mohammad
• 1,400 points
23 views
0 votes
1 answer

Not able to run nmap scan on router.

Might not be the actual router address. ...READ MORE

answered Jan 31 in Cyber Security & Ethical Hacking by Omkar
• 65,850 points
34 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.