Created
October 26, 2014 12:13
-
-
Save yohanes/03b2f4fed3467726b3c9 to your computer and use it in GitHub Desktop.
pwnium2014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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