-
Notifications
You must be signed in to change notification settings - Fork 523
added support for --generate-st
and --delegate-spn
flags
#825
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
base: main
Are you sure you want to change the base?
Conversation
Why not --generate-st as option name ? 😊 |
Thanks for the PR! I will take a look at it when i got some time |
for SPN is it gonna do only cifs/ ? not others ? |
that was a design choice by whomever designed the |
service_types = ["cifs", "host", "http", "ldap", "rpcss", "wsman"]
spns = []
for service in service_types:
spn = Principal(f"{service}/{self.hostname}.{self.domain}", type=PrincipalNameType.NT_SRV_INST.value)
spns.append(spn)
|
if the |
maybe a flag |
this was relatively simple, added it to the original PR since it doesn't affect any existing functionality |
--store-st
flag--generate-st
and --delegate-spn
flags
Description
Adds the
--generate-st
Option to save the kerberos tickets when doing RBCD #809 flag when doing RBCD (or CD) with--delegate
, opted not to use--generate-tgt
as suggested by @NeffIsBack as the resultant ticket is not aTGT
and would probably cause some confusion.Fixed a minor bug in forming the
Principal
object for the delegation, modified to use theFQDN
of the target instead of just the hostname--delegate-spn
flag for abusing delegations to services that are notcifs
.Type of change
Insert an "x" inside the brackets for relevant items (do not delete options)
Setup guide for the review
A machine that is configured with either Constrained Delegation, or Resource-Based Constrained Delegation on another machine.
Screenshots (if appropriate):
FS01$
is allowed to act on behalf of any user toDC02$
on any protocol (RBCD)Update:
--delegate-spn
flag, 28/7/2025FS01$
can delegate toDC02$
on thesnmp/dc02.asia.earth.local
service.When used with the
--generate-st
flag, the resultantCCache
is also updated accordingly.Checklist:
Insert an "x" inside the brackets for completed and relevant items (do not delete options)
poetry run python -m ruff check . --preview
, use--fix
to automatically fix what it can)tests/e2e_commands.txt
file if necessary (new modules or features are required to be added to the e2e tests)