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

[samedit.py] Added example script to edit local SAM hashes #1761

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Iorpim
Copy link

@Iorpim Iorpim commented Jun 9, 2024

I recently encountered a scenario in which I needed to replace the hash of a local user in another machine and all usual solutions were either incomplete or outdated. After noticing secretsdump.py had all the necessary logic to parse user account structs inside the SAM hive it seemed like a simple change to allow it to modify the user data as well.

The winregistry package has been slightly modified to allow the writing of registry keys as well. Currently, the writing capabilities are quite limited and can only rewrite key values with the same length, which is enough for the working of the new script but could be expanded to provide a more generalized feature.

@Iorpim Iorpim force-pushed the edit-dev branch 2 times, most recently from 5ff83af to ce927ae Compare June 11, 2024 13:04
@Iorpim
Copy link
Author

Iorpim commented Jun 11, 2024

Just did some minor cleanup of previous leftover commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Examples in review This issue or pull request is being analyzed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants