看雪.京东 2018ctf helloctf

https://kabeor.cn/https://kabeor.cn/https://kabeor.cn/https://kabeor.cn/https://kabeor.cn/IDA打开
mark

F5之后
mark

do…while循环就是核心算法
自己提取出来
mark

意思就很明显了,需要注意的就是asc_408044内是字符串%x,也就是16进制,sprintf是字符串类型格式化,很显然这里就是将输入字符串转换为16进制,strcat为将后一字符串加到前一字符串尾部,这里很显然就是32位0再加437261636b4d654a757374466f7246756e

所以我们只需要将其进行16进制转字符串即可(多个0可省略,只需补齐位数为偶数)
mark

mark