forked from p15670423/monkey
Add pass-the-hash for sambacry
This commit is contained in:
parent
fe77fc833c
commit
7e3f420fe0
|
@ -161,13 +161,14 @@ class SambaCryExploiter(HostExploiter):
|
||||||
return writable_shares_creds_dict
|
return writable_shares_creds_dict
|
||||||
|
|
||||||
def get_credentials_list(self):
|
def get_credentials_list(self):
|
||||||
user_password_pairs = self._config.get_exploit_user_password_pairs()
|
creds = self._config.get_exploit_user_password_or_hash_product()
|
||||||
|
|
||||||
# Add empty credentials for anonymous shares.
|
# Add empty credentials for anonymous shares.
|
||||||
credentials_list = [{'username': '', 'password': '', 'lm_hash': '', 'ntlm_hash': ''}]
|
credentials_list = [{'username': '', 'password': '', 'lm_hash': '', 'ntlm_hash': ''}]
|
||||||
|
|
||||||
for user, password in user_password_pairs:
|
for user, password, lm_hash, ntlm_hash in creds:
|
||||||
credentials_list.append({'username': user, 'password': password, 'lm_hash': '', 'ntlm_hash': ''})
|
credentials_list.append(
|
||||||
|
{'username': user, 'password': password, 'lm_hash': lm_hash, 'ntlm_hash': ntlm_hash})
|
||||||
|
|
||||||
return credentials_list
|
return credentials_list
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue