Python Forum
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
all_protocols() empty
#1
Hi Folks

I have looked around the forum but not seen this issue here, so can someone have a look at this and let me know what I am doing wrong, please?

I have python3.6 running on my linux box and am using the nmap library to call nmap from python.

From the python prompt I run the usual code:
>>> import nmap
>>> nm = nmap.PortScanner()
>>> nm.scan('127.0.0.1', '22-433')
>>> nm.scaninfo()
{'tcp':{'services': '22-443', 'method': 'syn'}}
>>> nm['127.0.0.1'].all_protocols()
[]
My problem is that the all_protocols should have returned ['tcp'] but it is empty.

Any ideas what I am doing wrong? I am aware it is very likely user error and I am being a muppet, but all help gratefully recieved.

Regards
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020