Fix, forgot to include the configuration of whether we're pulling the banner from victims.

This commit is contained in:
Daniel Goldberg 2018-02-06 20:13:27 +02:00
parent 7c6c153733
commit 41de1a86e0
1 changed files with 2 additions and 1 deletions

View File

@ -28,7 +28,8 @@ class TcpScanner(HostScanner, HostFinger):
target_ports = self._config.tcp_target_ports[:] target_ports = self._config.tcp_target_ports[:]
shuffle(target_ports) shuffle(target_ports)
ports, banners = check_tcp_ports(host.ip_addr, target_ports, self._config.tcp_scan_timeout / 1000.0) ports, banners = check_tcp_ports(host.ip_addr, target_ports, self._config.tcp_scan_timeout / 1000.0,
self._config.tcp_scan_get_banner)
for target_port, banner in izip_longest(ports, banners, fillvalue=None): for target_port, banner in izip_longest(ports, banners, fillvalue=None):
service = 'tcp-' + str(target_port) service = 'tcp-' + str(target_port)
host.services[service] = {} host.services[service] = {}