Reputation: 11
I'm trying to hook the fopen syscall in linux using Go.
Normally I would use C for something like this (Example: https://stackoverflow.com/a/880278/5572976) but the CTF states that the solution needs to be written in Go.
I've looked at the syscall package and basically what I'm looking for is using the following in Go.
dlsym(RTLD_NEXT, "open");
EDIT: That's open, not fopen.
Upvotes: 1
Views: 1019
Reputation: 41
try this Runtime dynamic library loader (dlopen / dlsym) for Go (golang)
Upvotes: 1