Merge pull request #240 from guardicore/bugfix/use_tcp_scan_interval

Sleep between scans
This commit is contained in:
Daniel Goldberg 2018-12-31 17:52:14 +02:00 committed by GitHub
commit d1cb72afee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -193,7 +193,7 @@ class Configuration(object):
9200] 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 = 200 tcp_scan_interval = 0
tcp_scan_get_banner = True tcp_scan_get_banner = True
# Ping Scanner # Ping Scanner

View File

@ -79,7 +79,7 @@
"sambacry_shares_not_to_check": ["IPC$", "print$"], "sambacry_shares_not_to_check": ["IPC$", "print$"],
"local_network_scan": false, "local_network_scan": false,
"tcp_scan_get_banner": true, "tcp_scan_get_banner": true,
"tcp_scan_interval": 200, "tcp_scan_interval": 0,
"tcp_scan_timeout": 10000, "tcp_scan_timeout": 10000,
"tcp_target_ports": [ "tcp_target_ports": [
22, 22,

View File

@ -106,8 +106,8 @@ class NetworkScanner(object):
break break
if SCAN_DELAY: if WormConfiguration.tcp_scan_interval:
time.sleep(SCAN_DELAY) time.sleep(WormConfiguration.tcp_scan_interval)
@staticmethod @staticmethod
def _is_any_ip_in_subnet(ip_addresses, subnet_str): def _is_any_ip_in_subnet(ip_addresses, subnet_str):

View File

@ -817,7 +817,7 @@ SCHEMA = {
"tcp_scan_interval": { "tcp_scan_interval": {
"title": "TCP scan interval", "title": "TCP scan interval",
"type": "integer", "type": "integer",
"default": 200, "default": 0,
"description": "Time to sleep (in milliseconds) between scans" "description": "Time to sleep (in milliseconds) between scans"
}, },
"tcp_scan_timeout": { "tcp_scan_timeout": {