forked from p34709852/monkey
Use `Get-LocalUser` for Windows PBA instead of `net user`
This commit is contained in:
parent
f3924ebb43
commit
61d2528291
|
@ -1,4 +1,2 @@
|
||||||
def get_windows_commands_to_discover_accounts():
|
def get_windows_commands_to_discover_accounts():
|
||||||
return [
|
return "powershell Get-LocalUser"
|
||||||
"net user"
|
|
||||||
]
|
|
||||||
|
|
|
@ -9,4 +9,4 @@ class AccountDiscovery(PBA):
|
||||||
linux_cmds, windows_cmds = get_commands_to_discover_accounts()
|
linux_cmds, windows_cmds = get_commands_to_discover_accounts()
|
||||||
super().__init__(POST_BREACH_ACCOUNT_DISCOVERY,
|
super().__init__(POST_BREACH_ACCOUNT_DISCOVERY,
|
||||||
linux_cmd=' '.join(linux_cmds),
|
linux_cmd=' '.join(linux_cmds),
|
||||||
windows_cmd=' '.join(windows_cmds))
|
windows_cmd=windows_cmds)
|
||||||
|
|
Loading…
Reference in New Issue