This example doesn't do anything that couldn't have been done
with normal ptrace, as far as I can tell.
And the whole approach is total madness. Why not just steal the
connection by passing the socket fd to the new target and closing
it in the original task? For that you only need to inject a couple
of system calls, with less disruptive data injections. No need to
muck around in TCP states, netfilter and all that other madness.
Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds