File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,11 @@ def _generate_all_actions(self)-> list:
5050 # Collect all data from all hosts
5151 for data in self ._data .values ():
5252 all_data .update (data )
53+
54+ # sort all components to have a consistent order
55+ all_ips = sorted (list (all_ips ))
56+ all_networks = sorted (list (all_networks ))
57+ all_data = sorted (list (all_data ))
5358
5459 # Network Scans
5560 for source_host , target_network in itertools .product (all_ips , all_networks ):
@@ -71,7 +76,7 @@ def _generate_all_actions(self)-> list:
7176 }
7277 ))
7378 # Service Exploits
74- for source_host , target_host in itertools .product (all_ips , ip_with_services .keys ()):
79+ for source_host , target_host in itertools .product (all_ips , sorted ( ip_with_services .keys () )):
7580 for service in ip_with_services [target_host ]:
7681 actions .append (Action (
7782 ActionType .ExploitService ,
You can’t perform that action at this time.
0 commit comments