-
-
Save Rajchowdhury420/8f6e84c7e5bbcf7e0e81f2c2afc60f58 to your computer and use it in GitHub Desktop.
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
int64_t ipl() | |
{ | |
void* fsbase; | |
int64_t rax = *(fsbase + 0x28); | |
puts("What is your favourite IPL team:…"); | |
void var_58; | |
gets(&var_58); | |
printf(&var_58); | |
puts(&data_40202a); | |
puts("Second favourite: "); | |
gets(&var_58); | |
int64_t rax_6 = (rax ^ *(fsbase + 0x28)); | |
if (rax_6 == 0) | |
{ | |
return rax_6; | |
} | |
__stack_chk_fail(); | |
/* no return */ | |
} | |
int32_t main() | |
{ | |
ipl(); | |
return 0; | |
} | |
int64_t win() | |
{ | |
puts("Congratulations! You've won the …"); | |
FILE* fp = fopen("flag.txt", &data_402066); | |
int64_t rax; | |
if (fp == 0) | |
{ | |
rax = perror("Flag not found! Please contact a…"); | |
} | |
else | |
{ | |
while (true) | |
{ | |
char rax_3 = fgetc(fp); | |
if (rax_3 == 0xff) | |
{ | |
break; | |
} | |
putchar(rax_3); | |
} | |
rax = fclose(fp); | |
} | |
return rax; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment