Skip to content

Instantly share code, notes, and snippets.

@gjpower
Created February 19, 2013 17:06
Show Gist options
  • Save gjpower/4987789 to your computer and use it in GitHub Desktop.
Save gjpower/4987789 to your computer and use it in GitHub Desktop.
Troll Packet Creator
#include "stdio.h"
#define DLE 0x10
int main (int argc, char** argv) {
FILE *output;
output = fopen("troll.data","w");
if (output==NULL) {
return -1;
}
int i;
for( i=0; i<1000; i++) {
fputc(DLE, output);
}
fclose(output);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment