discovered 03 Aug 2026
graftcp
→ View on GitHub`graftcp` is a Linux tool designed to redirect TCP connections from any process to SOCKS5 or HTTP proxies by tracing socket syscalls using `ptrace(2)`. It supports the redirection of UDP/53 DNS queries to an embedded DNS-over-TCP forwarder and allows for proxying generic UDP traffic through either SOCKS5 or direct connections. Notable features include the ability to trace statically linked binaries without relying on `LD_PRELOAD`, and a single command structure that simplifies usage compared to previous versions.