Skip to content

Instantly share code, notes, and snippets.

@segfo
Created July 6, 2014 00:41
Show Gist options
  • Save segfo/a189b3383379cc5106d7 to your computer and use it in GitHub Desktop.
Save segfo/a189b3383379cc5106d7 to your computer and use it in GitHub Desktop.
#include<stdio.h>
char flag[]={"Itofrjxb2`..c.2.6031]g6b1gg0^)b11cb^^-]z"};
int main(){
int eax,edx,ecx;
int tick=0;
int i;
for(tick=0;tick<3;){ // IRQ 0 interrupt.
eax=tick;
edx=eax+1;
tick=edx;
printf("tick:%d\n",eax);
ecx=tick;
for(eax=0;eax!=0x28;eax++){ // decode flag.
edx=flag[eax]^tick;
edx++;
printf("%c",edx);
flag[eax]=(char)edx;
}
printf("\n",flag);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment