Bjørg Henderssen
Bjørg Henderssen

Reputation: 11

Hooking syscalls in Go

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

Answers (1)

Related Questions