1. 11

  2. 1

    Quick clarification: this is about hooking c functions (or even more pedantically rewriting calls to shared libraries which is supported by both Linux and mac in different ways).

    Only pointing that out because I’ve been looking for an easy way to actually hook system calls for golang connect() calls and go skips libc and goes straight to syscalls.

    1. 3

      Most everything that isn’t a Go binary or statically linked Linux application will shim into libc first. It’s pretty much convention or mandated by the platform anyways.