PWN IO Buffering

From b01lers

We need to set our IO to non-buffered mode if we want it to work over xinetd and networking because…well, because reasons.

Probably you want to use a template like this:

<syntaxhighlight lang="c">#include <stdio.h>

int main() {

   setvbuf(stdout, NULL, 2, 0);
   setvbuf(stderr, NULL, 2, 0);
   /* challenge code here */

}</syntaxhighlight>