BUUCTF Reverse/[GUET-CTF2019]number_game
先看文件信息
IDA64位打开
unsigned __int64 __fastcall main(int a1, char **a2, char **a3)
{
__int64 v4; // [rsp+8h] [rbp-38h]
__int64 v5; // [rsp+10h] [rbp-30h] BYREF
__int16 v6; // [rsp+18h] [rbp-28h]
__int64 v7; // [rsp+20h] [rbp-20h] BYREF
__int16 v8; // [rsp+28h] [rbp-18h]
char v9; // [rsp+2Ah] [rbp-16h]
unsigned __int64 v10; // [rsp+38h] [rbp-8h]
v10 = __readfsqword(0x28u);
v5 = 0LL;
v6 = 0;
v7 = 0LL;
v8 = 0;
v9 = 0;
__isoc99_scanf("%s", &v5);
if ( (unsigned int)sub_4006D6(&v5) ) //检测是否字符是否符合要求
{
v4 = sub_400758(&v5, 0LL, 10LL); //构建二叉树
sub_400807(v4, &v7); //中序遍历
v9 = 0;
sub_400881(&v7); //将遍历的结果插入数组中
if ( (unsigned int)sub_400917() )
{
puts("TQL!");
printf("flag{"