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

tool to inject a shell script into legacy shims #118

Open
wants to merge 3 commits into
base: beautifulworld
Choose a base branch
from

Conversation

redcathode
Copy link

@redcathode redcathode commented Feb 23, 2024

Was working on a writeup on how to better mitigate the v114+ hardware write protect block, and ended up adding this to make things easier:

sudo ./wax/inject_preseed.sh -s <path/to/legacy_shim.bin> -p <path/to/preseed/file.sh>

It lets you modify the factory_install.sh of an injected legacy shim to source another shell script before the menu opens.
Still have a few things to do/test before merging, mostly:

  • error out on modern and raw shims
  • test WP check/unenroll script

@redcathode redcathode changed the title Allow injecting a shell script into legacy shims to run on boot instead of the sh1mmer menu tool to inject a shell script into legacy shims Feb 23, 2024
@velzie
Copy link
Member

velzie commented Apr 11, 2024

you should really be using recomod for that

@redcathode
Copy link
Author

redcathode commented Apr 17, 2024

yeah i kinda gave up on this lol

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.

2 participants