forked from p15670423/monkey
Island: Rename count_per_exploit -> num_exploited_per_exploit
This commit is contained in:
parent
4564596cd0
commit
06439d92f9
|
@ -10,7 +10,7 @@ def get_propagation_stats() -> Dict:
|
|||
return {
|
||||
"num_scanned_nodes": len(scanned),
|
||||
"num_exploited_nodes": len(exploited),
|
||||
"count_per_exploit": _get_exploit_counts(exploited),
|
||||
"num_exploited_per_exploit": _get_exploit_counts(exploited),
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -29,9 +29,9 @@ def test_get_propagation_stats__num_exploited():
|
|||
assert stats["num_exploited_nodes"] == 3
|
||||
|
||||
|
||||
def test_get_propagation_stats__count_per_exploit():
|
||||
def test_get_propagation_stats__num_exploited_per_exploit():
|
||||
stats = ransomware_report.get_propagation_stats()
|
||||
|
||||
assert stats["count_per_exploit"]["SSH Exploiter"] == 2
|
||||
assert stats["count_per_exploit"]["SMB Exploiter"] == 1
|
||||
assert stats["count_per_exploit"]["WMI Exploiter"] == 1
|
||||
assert stats["num_exploited_per_exploit"]["SSH Exploiter"] == 2
|
||||
assert stats["num_exploited_per_exploit"]["SMB Exploiter"] == 1
|
||||
assert stats["num_exploited_per_exploit"]["WMI Exploiter"] == 1
|
||||
|
|
Loading…
Reference in New Issue