Tags: pwn bof
Rating: 5.0
buffer overflow - overwrite variable in stack then pass the check
void vulnerable(void){
char local_30 [16];
int local_20;
int local_1c;
int local_18;
int local_14;
int local_10;
puts("Hey I heard you are searching for flags! Well I\'ve got one. :)");
puts("Here you can have part of it!");
puts("auctf{");
puts("\nSorry that\'s all I got!\n");
local_10 = 0;
local_14 = 10;
local_18 = 0x14;
local_1c = 0x14;
local_20 = 2;
fgets(local_30,0x24,stdin);
if ((((local_10 == 0x1337) && (local_14 < -0x14)) && (local_1c != 0x14)) &&
((local_18 == 0x667463 && (local_20 == 0x2a)))) {
print_flag();
}
return;
}