damnever / hosts-hijacking

[NSFW] Hijack UDP-based(libc recvfrom) DNS A/AAAA response with LD_PRELOAD.
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link
dns hosts ld-preload libc

hosts-hijacking

Hijack UDP-based(libc recvfrom) DNS A/AAAA response with LD_PRELOAD.

# make build

# cat /path/to/hosts
10.8.8.8 google.com

# HOSTS_HIJACKING=/path/to/hosts LD_PRELOAD=$(pwd)/src/hosts-hijacking.so xx-cmd-using-libc-recvfrom

Why

NOTES