Jul-11-2018, 09:24 AM
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:
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
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