Skip to content

Instantly share code, notes, and snippets.

@funrep
Created October 24, 2012 18:55
Show Gist options
  • Save funrep/3948064 to your computer and use it in GitHub Desktop.
Save funrep/3948064 to your computer and use it in GitHub Desktop.
klr@(none):~/tmp $ cat test.c
#include <stdio.h>
main()
{
int c;
while ((c = getchar()) != EOF)
putchar(c);
}
klr@(none):~/tmp $ gcc test.c
klr@(none):~/tmp $ echo "PWNED!" | ./a.out
PWNED!
255|klr@(none):~/tmp $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment