新年快乐-WP
首先放入ExeinfoPE,查出来是UPX的壳
放入kali脱壳
upx -d 1.exe
脱壳后扔入IDA
__main();
strcpy(Str2, "HappyNewYear!");
Str1 = 0;
memset(v6, 0, sizeof(v6));
printf("please input the true flag:");
scanf("%s", &Str1);
if ( !strncmp((const char *)&Str1, Str2, strlen(Str2)) )
result = puts("this is true flag!");
else
result = puts("wrong!");
return result;
通过源码看出,flag是flag{HappyNewYear!}