forked from p34709852/monkey
BB: Add new EtE test that reuses stolen ssh key to exploit a machine
Island --(password)--> A --(password)--> B --(A's SSH key)--> C
This commit is contained in:
parent
c13dcf464c
commit
6c11eb2a6b
|
@ -10,6 +10,7 @@ from envs.monkey_zoo.blackbox.island_client.monkey_island_client import MonkeyIs
|
||||||
from envs.monkey_zoo.blackbox.island_client.test_configuration_parser import get_target_ips
|
from envs.monkey_zoo.blackbox.island_client.test_configuration_parser import get_target_ips
|
||||||
from envs.monkey_zoo.blackbox.log_handlers.test_logs_handler import TestLogsHandler
|
from envs.monkey_zoo.blackbox.log_handlers.test_logs_handler import TestLogsHandler
|
||||||
from envs.monkey_zoo.blackbox.test_configurations import (
|
from envs.monkey_zoo.blackbox.test_configurations import (
|
||||||
|
credential_reuse_ssh_key_test_configuration,
|
||||||
depth_1_a_test_configuration,
|
depth_1_a_test_configuration,
|
||||||
depth_2_a_test_configuration,
|
depth_2_a_test_configuration,
|
||||||
depth_3_a_test_configuration,
|
depth_3_a_test_configuration,
|
||||||
|
@ -163,6 +164,11 @@ class TestMonkeyBlackbox:
|
||||||
log_handler=log_handler,
|
log_handler=log_handler,
|
||||||
).run()
|
).run()
|
||||||
|
|
||||||
|
def test_credentials_reuse_ssh_key(self, island_client):
|
||||||
|
TestMonkeyBlackbox.run_exploitation_test(
|
||||||
|
island_client, credential_reuse_ssh_key_test_configuration, "Credentials_Reuse_SSH_Key"
|
||||||
|
)
|
||||||
|
|
||||||
# Not grouped because conflicts with SMB.
|
# Not grouped because conflicts with SMB.
|
||||||
# Consider grouping when more depth 1 exploiters collide with group depth_1_a
|
# Consider grouping when more depth 1 exploiters collide with group depth_1_a
|
||||||
def test_wmi_and_mimikatz_exploiters(self, island_client):
|
def test_wmi_and_mimikatz_exploiters(self, island_client):
|
||||||
|
|
Loading…
Reference in New Issue