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

Update MgmtPointMessaging.cs #59

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

HexRav3n
Copy link

Description

Fixes an issue with "get secrets" in which the provided mediaGUID displays incorrect password due to the formatting stripping off the last character and keeping the "{" in the front of the parameter. Found from copying over pxethiefy output to sharpsccm to extract secrets from policies.

Type of Change

  • [ X ] Bug fix (non-breaking change which fixes an issue)

Testing

This changes the substring value from 0 to 1 to prevent cutting off the password to decrypt the hex encoded certificate

download https://github.com/csandker/pxethiefy
python3 pxethiefy.py explore -i eth0 -a 10.0.0.5

copy and paste output to SharpSCCM.exe

SharpSCCM.exe get secrets -i "" -m "" -c "" -sc "" -mp ""

The -m parameter will be truncated properly to allow for certificate decryption

Bonus Points:

  • [ X ] This changes a single value from 0 to 1

Fixes an issue with "get secrets" in which the provided mediaGUID displays incorrect password due to the formatting stripping off the last character and keeping the "{" in the front of the parameter. Found from copying over pxethiefy output to sharpsccm to extract secrets from policies.
@HexRav3n HexRav3n marked this pull request as ready for review December 30, 2024 18:44
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.

1 participant