Skip to content

Conversation

qu35t-code
Copy link

Description

This PR introduces the shadow-creds module, which leverages modification of the LDAP attribute msDS-CredentialLink on a target user in order to retrieve its authentication PFX certificate.
The module is based on pywhisker by ShutdownRepo (Aka Charlie le king) and comes with options for customizing the PFX password and output directory.

Options

6

Common errors (examples)

  • TARGET is required
2
  • No permissions to modify msDS-KeyCredentialLink on the target (INSUFF_ACCESS_RIGHTS)
1
  • Invalid account in LDAP
5

Valid examples

  • With valid permissions
3
  • Authentication with exported PFX works
4
  • NT_HASH authentication supported
10
  • Custom PFX password
7 8
  • Custom Outdir
9

Type of change

Insert an "x" inside the brackets for relevant items (do not delete options)

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Deprecation of feature or functionality
  • This change requires a documentation update
  • This requires a new third party (pywhisker)

Setup guide for the review

  • MacOS
  • Linux

Checklist:

Insert an "x" inside the brackets for completed and relevant items (do not delete options)

  • I have ran Ruff against my changes (via poetry: poetry run python -m ruff check . --preview, use --fix to automatically fix what it can)
  • I have added or updated the tests/e2e_commands.txt file if necessary (new modules or features are required to be added to the e2e tests)
  • New and existing e2e tests pass locally with my changes
  • If reliant on changes of third party dependencies, such as Impacket, dploot, lsassy, etc, I have linked the relevant PRs in those projects
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (WIP...)

@NeffIsBack
Copy link
Member

Thanks for the PR! Looks cool.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants