Python Forum
Trying to Scan multiple IPs with python-nmap
Thread Rating:
  • 2 Vote(s) - 2.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to Scan multiple IPs with python-nmap
#1
Hello
Im new to this forum and I don't know if I posted this thred on right forum.
Here is my problem:
Im trying to scan multiple IPs with python-nmap but It returns an error: 

Error:
    assert type(hosts) is str, 'Wrong type for [hosts], should be a string [was {0}]'.format(type(hosts))  # noqa AssertionError: Wrong type for [hosts], should be a string [was <class 'list'>]
Error related to this part:
ns.scan(['192.168.1.1', '4.2.2.4'], port_input, '-sV')
Help me if u can <3 thanks

And Sry for bad English
Reply


Messages In This Thread
Trying to Scan multiple IPs with python-nmap - by DarkSuniuM - Apr-07-2017, 09:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  scapy wifi scan to get payload \ data korenron 0 2,249 Nov-16-2021, 01:47 PM
Last Post: korenron
  can I set scan interval for scapy? korenron 0 2,420 Dec-31-2020, 01:43 PM
Last Post: korenron
  nmap sagpal 2 2,545 Jun-04-2020, 05:20 PM
Last Post: sagpal
  FIN scan with scapy peterkl 0 5,449 Feb-13-2017, 09:10 PM
Last Post: peterkl

Forum Jump:

User Panel Messages

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