Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added -principal option to getTGT.py #1748

Closed
wants to merge 5 commits into from
Closed

Conversation

ar0x4
Copy link

@ar0x4 ar0x4 commented May 25, 2024

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

@anadrianmanrique anadrianmanrique added the in review This issue or pull request is being analyzed label Jun 27, 2024
@anadrianmanrique anadrianmanrique self-assigned this Jul 25, 2024
@anadrianmanrique
Copy link
Contributor

closing this one as #1749 got integrated. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in review This issue or pull request is being analyzed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants