Open damnever opened 4 years ago
For golang(netcgo): echo "hosts: files dns" > /etc/nsswitch.conf ?
echo "hosts: files dns" > /etc/nsswitch.conf
Syscall:
open("/etc/hosts", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=272, ...}) = 0 read(3, "127.0.0.1\tlocalhost\n\n# The follo"..., 4096) = 272 read(3, "", 4096) = 0 close(3)
golang(netcgo) not reading /etc/hosts if I use https://github.com/damnever/hosts-hijacking/blob/feat/hostsfile/hostsfile/hijacking.c
For golang(netcgo):
echo "hosts: files dns" > /etc/nsswitch.conf
?Syscall: