MAC-OSX Hooking (intermediate way)

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat


Meme Tier VIP
Jul 6, 2013
Hello, since i broke my PC i'm forced to use my mac, so I started looking around how to hook OpenGL.
I doubt there are many people around here that use a mac (especially for gaming), but for the ones that do, or for people that are interested in ABI's this is might be interesting for you :D
There are three ways (that i know of) to hook library calls, the first one is using LD_PRELOAD, which, works perfectly, and is very simple to use.
The second method is what i will be explaining here, and the third one is pretty hard, if anyone is interested in it look up mach_star (mach_override).

The whole idea is basically changing the address in the jump table of the file format that MAC uses, Mach-O. (PE/COFF on Windows).
This, however, is slightly harder than on Windows. Since it is too long to write down here i wrote a pdf.
I hope you enjoy reading it, here it is.

PS: This is very very similar to the ELF format for Linux, so if you are using Linux this is definitely useful for you too.

Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods