Allow for specifying specific users to kerberoast#831
Allow for specifying specific users to kerberoast#831Marshall-Hallenbeck wants to merge 32 commits intomainfrom
Conversation
|
What do you think about adding a universal --users flag that could be used across For example:
|
|
I think that might be confusing with the |
Signed-off-by: Marshall Hallenbeck <Marshall.Hallenbeck@gmail.com>
I mentioned --user because in SMB we already use it for --ntds. The main point is just to have a universal targeting flag, whatever the final name is, it could very well be --target or something similar |
There was a problem hiding this comment.
Pull Request Overview
This PR adds functionality to allow users to specify specific users for kerberoasting attacks, rather than targeting all available users. The implementation allows users to provide a list of usernames either directly via command line arguments or through a text file.
- Adds
--kerberoast-usersargument to specify target users for kerberoasting - Refactors duplicate
get_conditional_actionfunction to a shared location - Implements conditional argument requirement where
--kerberoast-usersrequires--kerberoasting
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| nxc/helpers/args.py | Adds shared get_conditional_action function for argument dependencies |
| nxc/protocols/ldap/proto_args.py | Adds --kerberoast-users argument with conditional requirement on --kerberoasting |
| nxc/protocols/ldap.py | Implements logic to filter kerberoast targets based on specified users |
| nxc/protocols/ssh/proto_args.py | Removes duplicate get_conditional_action function |
| nxc/protocols/smb/proto_args.py | Removes duplicate get_conditional_action function |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Marshall Hallenbeck <Marshall.Hallenbeck@gmail.com>
Changed context.log.fail to context.log.highlight when if tampered = true
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Marshall Hallenbeck <Marshall.Hallenbeck@gmail.com>
|
uhh what happened here? Why is the commit history so messed up? |
I have no idea. I'll have to fix it. |
|
Nuking this PR, the branch got entirely feffed. |
Description
Allows users to specify a list of users to Kerberoast via the command line or text file.
Type of change
Insert an "x" inside the brackets for relevant items (do not delete options)
Setup guide for the review
Shouldn't need anything other than kerberoastable users in your lab - just define them via
--kerberoast-usersand list them either by--kerberoast-users user1 user2 user3or--kerberoast-users kerb-users.txtScreenshots (if appropriate):
I can provide some if needed
Checklist:
Insert an "x" inside the brackets for completed and relevant items (do not delete options)
poetry run python -m ruff check . --preview, use--fixto automatically fix what it can)tests/e2e_commands.txtfile if necessary (new modules or features are required to be added to the e2e tests)