Hacker News new | ask | show | jobs
by nathancahill 3988 days ago

  #ifdef GAPING_SECURITY_HOLE
3 comments

    holler ("Preposterous fd value %d", fd);
(I just had to debug a descriptor mess and this style of freewheeling 90’s-style documentation rejuvenated me w/r/t all of that, hah)
In fact, Windows builds with -DGAPING_SECURITY_HOLE is pretty much the reason why Windows virus scanners detect nc.exe. (The #define enables the -e flag, which starts processes with stdio redirected over the network when the connection succeeds.)
My favorite function names: gethostpoop and getportpoop, hailing from the get*poop family.