Use `Get-LocalUser` for Windows PBA instead of `net user`

This commit is contained in:
Shreya 2020-08-24 22:23:30 +05:30
parent f3924ebb43
commit 61d2528291
2 changed files with 2 additions and 4 deletions

View File

@ -1,4 +1,2 @@
def get_windows_commands_to_discover_accounts():
return [
"net user"
]
return "powershell Get-LocalUser"

View File

@ -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)