-
-
Save shba24/2bff118975253c1bee25 to your computer and use it in GitHub Desktop.
Kernel Land - Pwnium CTF 2014
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> | |
int main() | |
{ | |
char encoded_flag[]={"Itofrjxb2`..c.2.6031]g6b1gg0^)b11cb^^-]z"},ch; | |
int tick,x; | |
for(tick=1;tick<256;tick++) | |
{ | |
printf("tick:%d\n",tick-1); | |
int i = 0; | |
for(i=0;i<0x28;i++) | |
{ | |
x = encoded_flag[i]^tick ; | |
x++; | |
encoded_flag[i]=(char )x; | |
} | |
puts(encoded_flag); | |
} | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment