Skip to content

Instantly share code, notes, and snippets.

@yohanes
Created October 26, 2014 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yohanes/03b2f4fed3467726b3c9 to your computer and use it in GitHub Desktop.
Save yohanes/03b2f4fed3467726b3c9 to your computer and use it in GitHub Desktop.
pwnium2014
#include <stdio.h>
#include <stdlib.h>
char flag[] = "Itofrjxb2`..c.2.6031]g6b1gg0^)b11cb^^-]z";
int main()
{
int ilen = strlen(flag);
int cl = 0;
int eax = 0;
for (cl=1; cl<4; cl++) {
int dl;
eax=0;
do {
dl = cl;
dl ^= flag[eax];
dl++;
flag[eax] = dl;
eax++;
if (eax>=0x28)
break;
} while (1);
printf("cl = %d flag = %s\n", cl, flag);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment