Skip to content

Instantly share code, notes, and snippets.

@mdeous
Created November 25, 2012 17:15
Show Gist options
  • Select an option

  • Save mdeous/4144377 to your computer and use it in GitHub Desktop.

Select an option

Save mdeous/4144377 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
int main(){
long val=0x00000000;
char tab[20];
scanf("%25s",&tab);
printf("buf: %s\n",tab);
printf("val: 0x%08x\n",val);
if(val==0xdeadbeef){
printf("Good !\n");
system("/bin/cat validation/flag");
} else {
printf("Nop\n");
exit(1);
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment