Skip to content

Commit

Permalink
hook roadmap
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanSh committed Mar 2, 2023
1 parent c604664 commit feaa07e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ In macOS for a memory region to have RWX (read write execute) permission.
The originated binary must have the JIT entitlement.
The mini loader relocates the shellcode.
To relocate the shellcode it writes read and execute memory,
to bypass this entitlement we can create a pre_relocate_write_hook and a pre_relocate_execute hook
to bypass this entitlement we can create a pre_relocate_write_hook and a pre_relocate_execute_hook
then change the memory permissions accordingly.
The reason we use hooks instead of implementing this logic inside the loader
is because this project is intended to support large variety of operating systems
Expand Down Expand Up @@ -62,7 +62,9 @@ class SimpleSayHiHook(ShelfStartupHook):
Currently, the following hook types are supported:

* startup_hooks - Hooks that run upon mini_loader initialize

* pre_relocate_write_hook - WIP
* pre_relocate_execute_hook - WIP
* pre_calling_shellcode_main - WIP
#### Usage

```bash
Expand Down

0 comments on commit feaa07e

Please sign in to comment.