forked from p15670423/monkey
Remove `None` values from list of TCP ports
This commit is contained in:
parent
20fff43fa9
commit
16b2b87adc
|
@ -31,6 +31,7 @@ class TcpScanner(HostScanner, HostFinger):
|
||||||
|
|
||||||
# maybe hide under really bad detection systems
|
# maybe hide under really bad detection systems
|
||||||
target_ports = self._config.tcp_target_ports[:]
|
target_ports = self._config.tcp_target_ports[:]
|
||||||
|
target_ports = list(filter(None, target_ports)) # remove None values
|
||||||
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,
|
||||||
|
|
Loading…
Reference in New Issue