Skip to content

Update getST.py to support S4U2Proxy with U2U - #2324

Open
1hunio wants to merge 2 commits into
fortra:masterfrom
1hunio:master
Open

1hunio wants to merge 2 commits into
fortra:masterfrom
1hunio:master

Conversation

@1hunio

@1hunio 1hunio commented Oct 8, 2026

Copy link
Copy Markdown

Modified GetST.py to support performing an S4U2Proxy with U2U. This is necessary to abuse a newly discovered Kerberos delegation path, Constrained Delegation without Protocol Transition against accounts that do not have SPNs.

During the reflective RBCD section, an S4U2Proxy with U2U is needed to obtain a forwardable service ticket. Requires -nospn to specify the service without an SPN, and -tgt for the destination service so the KDC can extract the session key.

Example usage:

getST.py -u2u -impersonate 'Administrator' -nospn 'LAMB' -tgt './LAMB.ccache' -dc-ip 10.0.1.40 'secure.local/LAMBPC$:Password123!'

References:

@1hunio 1hunio changed the title Update getST.py to support S4U2Proxy with U2U - #1 Update getST.py to support S4U2Proxy with U2U Oct 8, 2026
@anadrianmanrique anadrianmanrique added the high High priority item label Oct 14, 2026
@alexisbalbachan

Copy link
Copy Markdown
Collaborator

Hi, i've been reviewing and testing this PR and it is almost ready to merge, there's just a couple of flag interactions that need fixing:

  • Using -nospn without -impersonate should be rejected just like it happens without either -tgt or -u2u.
  • -additional-ticket is overriding -nospn, i think we should just reject this combination as well.

@alexisbalbachan alexisbalbachan added the waiting for response Further information is needed from people who opened the issue or pull request label Oct 28, 2026

@alexisbalbachan alexisbalbachan left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See previous comment

@1hunio

1hunio commented Oct 28, 2026

Copy link
Copy Markdown
Author

sounds great! just added the checks. -nospn should now require -impersonate, and -additional-ticket should be rejected when used with -nospn

godylockz pushed a commit to godylockz/impacket that referenced this pull request Nov 11, 2026
@1hunio

1hunio commented Nov 18, 2026

Copy link
Copy Markdown
Author

Hey @alexisbalbachan, thanks for all of the help on this! I did notice the changes were pushed via force-push, which didn't seem to link my profile on the contributors page. Is there a way to attribute the contribution? I'm happy to update or help with anything, just let me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

high High priority item waiting for response Further information is needed from people who opened the issue or pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants