Agent: Remove tcp scan interval option

This commit is contained in:
Ilija Lazoroski 2021-12-14 11:53:24 +01:00
parent ea08e2c420
commit b9219e3783
3 changed files with 0 additions and 6 deletions

View File

@ -136,7 +136,6 @@ class Configuration(object):
tcp_target_ports = [22, 2222, 445, 135, 3389, 80, 8080, 443, 8008, 3306, 9200] tcp_target_ports = [22, 2222, 445, 135, 3389, 80, 8080, 443, 8008, 3306, 9200]
tcp_target_ports.extend(HTTP_PORTS) tcp_target_ports.extend(HTTP_PORTS)
tcp_scan_timeout = 3000 # 3000 Milliseconds tcp_scan_timeout = 3000 # 3000 Milliseconds
tcp_scan_interval = 0 # in milliseconds
tcp_scan_get_banner = True tcp_scan_get_banner = True
# Ping Scanner # Ping Scanner

View File

@ -57,7 +57,6 @@
"exploit_ssh_keys": [], "exploit_ssh_keys": [],
"local_network_scan": false, "local_network_scan": false,
"tcp_scan_get_banner": true, "tcp_scan_get_banner": true,
"tcp_scan_interval": 0,
"tcp_scan_timeout": 10000, "tcp_scan_timeout": 10000,
"tcp_target_ports": [ "tcp_target_ports": [
22, 22,

View File

@ -1,5 +1,4 @@
import logging import logging
import time
from multiprocessing.dummy import Pool from multiprocessing.dummy import Pool
from common.network.network_range import NetworkRange from common.network.network_range import NetworkRange
@ -108,9 +107,6 @@ class NetworkScanner(object):
if victims_count >= max_find: if victims_count >= max_find:
logger.debug("Found max needed victims (%d), stopping scan", max_find) logger.debug("Found max needed victims (%d), stopping scan", max_find)
return return
if WormConfiguration.tcp_scan_interval:
# time.sleep uses seconds, while config is in milliseconds
time.sleep(WormConfiguration.tcp_scan_interval / float(1000))
@staticmethod @staticmethod
def _is_any_ip_in_subnet(ip_addresses, subnet_str): def _is_any_ip_in_subnet(ip_addresses, subnet_str):