fortra / impacket

Impacket is a collection of Python classes for working with network protocols.
https://www.coresecurity.com
Other
12.98k stars 3.49k forks source link

Added -principal option to getTGT.py #1748

Open ar0x4 opened 1 month ago

ar0x4 commented 1 month ago

The current implementation of getTGT.py does not support a user-specified principal type, it is always the default (NT_PRINCIPAL), and in attacks like https://www.pentestpartners.com/security-blog/a-broken-marriage-abusing-mixed-vendor-kerberos-stacks/ the user may need to specify the principal type himself and not use the default principal.

For example: If you need to get a TGT with enterprise principal you can just request it like that

python3 getTGT.py domain.local/user:password -dc-ip 10.10.213.21 -principal NT_ENTERPRISE
Impacket v0.12.0.dev1+20240523.75507.15eff88 - Copyright 2023 Fortra
[*] Saving ticket in leivy.ccache