Merge pull request #240 from guardicore/bugfix/use_tcp_scan_interval
Sleep between scans
This commit is contained in:
commit
d1cb72afee
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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):
|
||||||
|
|
|
@ -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": {
|
||||||
|
|
Loading…
Reference in New Issue