Skip to content

Small example of how to hook into another process's memory and overwrite it on macOS.

License

Notifications You must be signed in to change notification settings

kernel-dev/osx-mem-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

macOS Memory Hook

This is just a small project that I decided to make to get myself into a bit of reverse engineering, and understanding the ecosystem of macOS.

Running the project

First, compile and run dummy_process.c:

clang src/dummy_process.c -o dummy && ./dummy

Afterwards, compile the injector:

clang -Iinc -lm src/main.c src/hook/hook.c -o hook

Now, after running dummy, you run hook. The Hello World string should now be changed to All your code are belong to us! in the runtime.

About

Small example of how to hook into another process's memory and overwrite it on macOS.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages