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():
|
||||
return [
|
||||
"net user"
|
||||
]
|
||||
return "powershell Get-LocalUser"
|
||||
|
|
|
@ -9,4 +9,4 @@ class AccountDiscovery(PBA):
|
|||
linux_cmds, windows_cmds = get_commands_to_discover_accounts()
|
||||
super().__init__(POST_BREACH_ACCOUNT_DISCOVERY,
|
||||
linux_cmd=' '.join(linux_cmds),
|
||||
windows_cmd=' '.join(windows_cmds))
|
||||
windows_cmd=windows_cmds)
|
||||
|
|
Loading…
Reference in New Issue