Fixed credentials in zerologon exploiter to match.

This commit is contained in:
VakarisZ 2021-03-08 12:05:00 +02:00
parent 263fa53ea5
commit 44f6ce36b6
2 changed files with 6 additions and 2 deletions

View File

@ -9,5 +9,7 @@ class ZeroLogon(BaseTemplate):
config_values.update({
"basic.exploiters.exploiter_classes": ["ZerologonExploiter"],
"basic_network.scope.subnet_scan_list": ["10.2.2.25"]
"basic_network.scope.subnet_scan_list": ["10.2.2.25"],
# Empty list to make sure ZeroLogon adds "Administrator" username
"basic.credentials.exploit_user_list": []
})

View File

@ -164,7 +164,9 @@ class TestMonkeyBlackbox:
def test_zerologon_exploiter(self, island_client):
test_name = "ZeroLogon_exploiter"
expected_creds = ["test_username", "test_ntlm_hash"]
expected_creds = ["Administrator",
"aad3b435b51404eeaad3b435b51404ee",
"2864b62ea4496934a5d6e86f50b834a5"]
raw_config = IslandConfigParser.get_raw_config(ZeroLogon, island_client)
analyzer = ZeroLogonAnalyzer(island_client, expected_creds)
log_handler = TestLogsHandler(test_name, island_client, TestMonkeyBlackbox.get_log_dir_path())