impacket icon indicating copy to clipboard operation
impacket copied to clipboard

Update: example/lookupsid.py with Kerberos auth option

Open A1vinSmith opened this issue 2 years ago • 2 comments

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:

A1vinSmith avatar Nov 27 '23 09:11 A1vinSmith

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.

mubix avatar Nov 27 '23 14:11 mubix

no problem, @mubix

Updated to -k by copying the help message from others too.

A1vinSmith avatar Nov 27 '23 20:11 A1vinSmith