Fix, forgot to include the configuration of whether we're pulling the banner from victims.
This commit is contained in:
parent
7c6c153733
commit
41de1a86e0
|
@ -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] = {}
|
||||||
|
|
Loading…
Reference in New Issue