Silly bugfix in scanning

This commit is contained in:
Daniel Goldberg 2019-09-22 16:44:20 +03:00
parent a32a783257
commit c4ec6683a1
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ class NetworkScanner(object):
:return: Victim or None if victim isn't alive :return: Victim or None if victim isn't alive
""" """
LOG.debug("Scanning target address: %r", victim) LOG.debug("Scanning target address: %r", victim)
if any([scanner.is_host_alive(victim.ip_addr) for scanner in self.scanners]): if any([scanner.is_host_alive(victim) for scanner in self.scanners]):
LOG.debug("Found potential target_ip: %r", victim) LOG.debug("Found potential target_ip: %r", victim)
return victim return victim
else: else: