Skip to content
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

Get secrets via PXE media certificates #28

Merged
merged 2 commits into from
May 18, 2023
Merged

Get secrets via PXE media certificates #28

merged 2 commits into from
May 18, 2023

Conversation

csandker
Copy link
Contributor

Description

Added functionality to get secrets based on the work of PXEThief to harvest secrets using PXE boot media certificates. These allow for collection of additional secrets, which are contained in TaskSequences scoped to "Unknown Devices" (used for PXE boots).
An example of how this might be used in an attack can be seen on the last screenshot of this page.

Additionally added code to decrypt secrets on the fly and decompress XML structures to enrich the output of get secrets.

Type of Change

  • 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)

Testing

Used the forked version, with all changes in my Lab to run attacks against my SCCM setup.
Amongst others, ran the following commands to ensure non-breaking changes:

.\SharpSCCM.exe local secrets -m disk
.\SharpSCCM.exe local secrets -m wmi
.\SharpSCCM.exe get secrets

Bonus Points:

Copy link
Owner

@Mayyhem Mayyhem left a comment

Choose a reason for hiding this comment

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

Looks great, thanks so much for the contribution!

@Mayyhem Mayyhem merged commit 9c4ff43 into Mayyhem:main May 18, 2023
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants