4 ms·
And the hack fix: /* hnokpre.c: LD_PRELOAD shim to bypass valid hostname checking in glibc gcc -fPIC -shared hnokpre.c -o libhnokpre.so LD_PREL
by gue5t 12y ago
And the hack fix:
/*
hnokpre.c: LD_PRELOAD shim to bypass valid hostname checking in glibc
gcc -fPIC -shared hnokpre.c -o libhnokpre.so
LD_PRELOAD=./libhnokpre.so curl http://mattias-.github.io/
*/
int res_hnok(const char* dn)
{
return 1;
}
int __res_hnok(const char* dn)
{
return 1;
}
- poizan42 12y agoI'm kinda wondering what's the reason for that that check to begin with. Just being pedantic for pedentrys sake?
- deleted 12y ago[deleted]