Skip to content

Instantly share code, notes, and snippets.

@shba24
Created July 6, 2014 14:04
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 shba24/2bff118975253c1bee25 to your computer and use it in GitHub Desktop.
Save shba24/2bff118975253c1bee25 to your computer and use it in GitHub Desktop.
Kernel Land - Pwnium CTF 2014
#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