Refactor #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Multiple things are currently sub-optimal
Newer bootloaders configure the CPU to reject unaligned memory access it seems. As such using unaligned chunks to overwrite the reset function pointer fails.done inFortunately newer bootloaders store the saved link register right after the packet buffer which is exploitable.
As such we should support multiple methods, either explicitly (like
method=rptr) or implicitly (soreset_handler_ptr_ptr=12345678implies the same) (related: #3)d0c50daa9eThis could go in a separate branch, though not necessarily.
Aside from the revision check, newer bootloaders implement even more checks on boot images, like the eng/usr one on SM-S367VL.What these two checks have in common is a non-zero kernel type (used for custom images) being set skips these. The shellcode should probably set said type instead of just patching the rev check (related: #3)
changing the boot image type writes it to storage, which is even more trouble to patch out, so nevermind