Thanks for the tips, I'll give these a try. Much appreciated.
65 karma · joined August 26, 2015
I did try hooking __libc_start_main, but had difficulty using dl.Sym() with it. I wasn't sure if I converted the function signature to Go incorrectly or if it's a limitation of dl.Sym().
This was the error I was hitting: https://github.com/rainycape/dl/blob/484344929c1867aec9517b5...
So I chose a method with a simpler function signature I found using ltrace, just to get it working as an experiment.
I think it also demonstrates how easy it is to write something similar to Telnet in Go.