Skip to main content
1 de 3
zara
  • 1
  • 1

AttributeError: module 'nmap' has no attribute 'PortScanner' tengo este problema

tengo este problema al usar namp ya instale python-namp y desintale nmap y aun sigue dando ese error, si me pudieran ayudar se los agradesco

logger.debug("Scanning machines on the same network with port 22 open.")


logger.debug("Gateway: " + gateway)

port_scanner = nmap.PortScanner()
port_scanner.scan(gateway + "/24", arguments='-p 22 --open')

all_hosts = port_scanner.all_hosts()

logger.debug("Hosts: " + str(all_hosts))
return all_hosts
zara
  • 1
  • 1