@@ -9,7 +9,6 @@ def add_exploiters(
9
9
agent_configuration : AgentConfiguration ,
10
10
exploiters : Optional [Dict [str , Mapping ]],
11
11
) -> AgentConfiguration :
12
-
13
12
agent_configuration_copy = agent_configuration .copy (deep = True )
14
13
if not exploiters :
15
14
exploiters = {}
@@ -21,7 +20,6 @@ def add_exploiters(
21
20
def add_fingerprinters (
22
21
agent_configuration : AgentConfiguration , fingerprinters : Sequence [PluginConfiguration ]
23
22
) -> AgentConfiguration :
24
-
25
23
agent_configuration_copy = agent_configuration .copy (deep = True )
26
24
agent_configuration_copy .propagation .network_scan .fingerprinters = fingerprinters
27
25
@@ -31,7 +29,6 @@ def add_fingerprinters(
31
29
def add_tcp_ports (
32
30
agent_configuration : AgentConfiguration , tcp_ports : Sequence [int ]
33
31
) -> AgentConfiguration :
34
-
35
32
agent_configuration_copy = agent_configuration .copy (deep = True )
36
33
agent_configuration_copy .propagation .network_scan .tcp .ports = tuple (tcp_ports )
37
34
@@ -41,27 +38,24 @@ def add_tcp_ports(
41
38
def add_subnets (
42
39
agent_configuration : AgentConfiguration , subnets : Sequence [str ]
43
40
) -> AgentConfiguration :
44
-
45
41
agent_configuration_copy = agent_configuration .copy (deep = True )
46
42
agent_configuration_copy .propagation .network_scan .targets .subnets = subnets
47
43
48
44
return agent_configuration_copy
49
45
50
46
51
- def add_credential_collectors (
52
- agent_configuration : AgentConfiguration , credential_collectors : Sequence [PluginConfiguration ]
47
+ def add_credentials_collectors (
48
+ agent_configuration : AgentConfiguration , credentials_collectors : Sequence [PluginConfiguration ]
53
49
) -> AgentConfiguration :
54
-
55
50
agent_configuration_copy = agent_configuration .copy (deep = True )
56
- agent_configuration_copy .credential_collectors = tuple (credential_collectors )
51
+ agent_configuration_copy .credentials_collectors = tuple (credentials_collectors )
57
52
58
53
return agent_configuration_copy
59
54
60
55
61
56
def add_http_ports (
62
57
agent_configuration : AgentConfiguration , http_ports : Sequence [int ]
63
58
) -> AgentConfiguration :
64
-
65
59
agent_configuration_copy = agent_configuration .copy (deep = True )
66
60
agent_configuration_copy .propagation .exploitation .options .http_ports = http_ports
67
61
@@ -71,7 +65,6 @@ def add_http_ports(
71
65
def set_keep_tunnel_open_time (
72
66
agent_configuration : AgentConfiguration , keep_tunnel_open_time : int
73
67
) -> AgentConfiguration :
74
-
75
68
agent_configuration_copy = agent_configuration .copy (deep = True )
76
69
agent_configuration_copy .keep_tunnel_open_time = keep_tunnel_open_time
77
70
@@ -81,7 +74,6 @@ def set_keep_tunnel_open_time(
81
74
def set_maximum_depth (
82
75
agent_configuration : AgentConfiguration , maximum_depth : int
83
76
) -> AgentConfiguration :
84
-
85
77
agent_configuration_copy = agent_configuration .copy (deep = True )
86
78
agent_configuration_copy .propagation .maximum_depth = maximum_depth
87
79
0 commit comments