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

Command for reading/writing to MSR registers #2118

Open
disconnect3d opened this issue Apr 18, 2024 · 2 comments
Open

Command for reading/writing to MSR registers #2118

disconnect3d opened this issue Apr 18, 2024 · 2 comments
Labels
feature For new features

Comments

@disconnect3d
Copy link
Member

TL;DR: I want us to have a msr command for reading/writing to model specific registers.

This should work by assembling and executing rdmsr/wrmsr instrucitons in the kernel and should only work/make sense in a qemu kernel context, since userspace can't rdmsr/wdmsr.

@disconnect3d disconnect3d added the feature For new features label Apr 18, 2024
@gsingh93
Copy link
Member

Just leaving this here for reference since it'll help with the ARM implementation for this: androidoffsec/art-kernel-toolkit#5

@disconnect3d
Copy link
Member Author

disconnect3d commented Apr 18, 2024

Fwiw bata24/GEF has sth implemented for this and I used it in the past, but I believe it can be improved.

This may also be helpful: https://gist.github.com/disconnect3d/4fa1972f5b3148bf17995406490c0e70, at least to play with MSRs (skip the exploit part, take the read/write functions or/and constants).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature For new features
Development

No branches or pull requests

2 participants