forked from p15670423/monkey
Agent: Simplify generate_username_password_or_ntlm_hash_combinations()
This commit is contained in:
parent
b7c7650f49
commit
5c872a67c3
|
@ -1,4 +1,4 @@
|
||||||
from itertools import product
|
from itertools import chain, product
|
||||||
from typing import Any, Iterable, Tuple
|
from typing import Any, Iterable, Tuple
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,11 +18,8 @@ def generate_username_password_or_ntlm_hash_combinations(
|
||||||
Returns all combinations of the configurations users and passwords or lm/ntlm hashes
|
Returns all combinations of the configurations users and passwords or lm/ntlm hashes
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
cred_list = []
|
return chain(
|
||||||
for cred in product(usernames, passwords, [""], [""]):
|
product(usernames, passwords, [""], [""]),
|
||||||
cred_list.append(cred)
|
product(usernames, [""], lm_hashes, [""]),
|
||||||
for cred in product(usernames, [""], lm_hashes, [""]):
|
product(usernames, [""], [""], nt_hashes),
|
||||||
cred_list.append(cred)
|
)
|
||||||
for cred in product(usernames, [""], [""], nt_hashes):
|
|
||||||
cred_list.append(cred)
|
|
||||||
return cred_list
|
|
||||||
|
|
Loading…
Reference in New Issue