impacket
impacket copied to clipboard
Update: example/lookupsid.py with Kerberos auth option
Tested on HTB Scrambled
python examples/lookupsid.py 'scrm.local/[email protected]' -no-pass --use-kerberos
Impacket v0.11.0 - Copyright 2023 Fortra
[*] Brute forcing SIDs at dc1.scrm.local
[*] StringBinding ncacn_np:dc1.scrm.local[\pipe\lsarpc]
[*] Domain SID is: S-1-5-21-2743207045-1827831105-2542523200
<SNIP>...
python examples/lookupsid.py 'scrm.local/[email protected]' -no-pass
Impacket v0.11.0 - Copyright 2023 Fortra
[*] Brute forcing SIDs at dc1.scrm.local
[*] StringBinding ncacn_np:dc1.scrm.local[\pipe\lsarpc]
[-] SMB SessionError: STATUS_NOT_SUPPORTED(The request is not supported.)
python examples/lookupsid.py 'scrm.local/[email protected]'
Impacket v0.11.0 - Copyright 2023 Fortra
Password:
Just a nit-pick but I believe most of the other examples use -k as the argument for using kerberos authentication. It should probably stay uniform.
no problem, @mubix
Updated to -k by copying the help message from others too.