-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[tgssub.py] New example script: adding tgssub for SPN-jacking and manual sname manipulation #1256
base: master
Are you sure you want to change the base?
Conversation
there is some problem when I integrate this PR to getST |
Can you give more details (debug print, screenshot) of what you're trying to do? |
If you're referring to https://github.com/SecureAuthCorp/impacket/pull/1256/files#diff-6282295c24020ba24be7e2a8a1133327088ab06cd43bded706a193ec283ea1e7R49, as you can see this line is in an "if/else" statement checking the presence of "/" in the original ticket's sname. Have you even tried before pointing this out? |
sorry, maybe I changed your code by accident |
turns out my code of your tgssub.py is outdated |
…t/cccache credentials Co-authored-by: wqreytuk <wochinijiamile@qq.com>
Worked with @wqreytuk, this feature needs further testing, but it now works on our end. The substitution wasn't complete. The information in the ticket wasn't replaced. Only the information in the credential object was. This is now fixed. |
just finished testing to this commit, it works fine |
fortra#1256 new tgssub example script
Example script to allow for SPN-jacking and manual manipulation of tickets to edit the sname (i.e. SPN) the ticket is issued for.
Python equivalent to
Rubeus tgssub
command (https://github.com/GhostPack/Rubeus#tgssub)This can be done because the service name is not in the encrypted part of the ticket (cf. Wagging the Dog).
This is already done in Impacket internals with the AnySPN technique but now, attackers can use this standalone script, along with
describeTicket.py
from #1201 to manipulate (Rubeus tgssub
) and inspect tickets (Rubeus describe
) manually.References