buuctf reverse [UTCTF2020]babymips

Posted HHHH_ui

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了buuctf reverse [UTCTF2020]babymips相关的知识,希望对你有一定的参考价值。

die 查看发现是mips的指令集,无壳,直接拖进ida

初看逻辑应该比较简单,跟进函数。

这个函数里面是程序的主要逻辑,可以看到一个异或的操作,之前在上面可以找到一串密文。

猜测逻辑是,将flag的每一个字符与23加一开始进行异或。

str = [0x62,0x6C,0x7F,0x76,0x7A,0x7B,0x66,0x73,0x76,0x50,0x52,0x7D,0x40,0x54,0x55,0x79,0x40,0x49,0x47,0x4D,0x74,0x19,0x7B,0x6A,0x42,0x0A,0x4F,0x52,0x7D,0x69,0x4F,0x53,0x0C,0x64,0x10,0x0F,0x1E,0x4A,0x67,0x03,0x7C,0x67,0x02,0x6A,0x31,0x67,0x61,0x37,0x7A,0x62,0x2C,0x2C,0x0F,0x6E,0x17,0x00,0x16,0x0F,0x16,0x0A,0x6D,0x62,0x73,0x25,0x39,0x76,0x2E,0x1C,0x63,0x78,0x2B,0x74,0x32,0x16,0x20,0x22,0x44,0x19]
flag = \'\'
for i in range(len(str)):
    flag+=chr(str[i] ^ (23+i))
print(flag)

utflag{mips_cpp_gang_5VDm:~`N]ze;\\)5%vZ=C\'C(r#$q=*efD"ZNY_GX>6&sn.wF8$v*mvA@\'}

os:这flag看着跟假的一样

以上是关于buuctf reverse [UTCTF2020]babymips的主要内容,如果未能解决你的问题,请参考以下文章

BUUCTF MISC刷题笔记

BUUCTF MISC刷题笔记

BUUCTF reverse题解汇总

Buuctf-Reverse(逆向) 网鼎杯 2020 青龙组-singal Write up

Buuctf-Reverse(逆向) Zer0pts2020-easy strcmp Write up

BUU-MISC-[UTCTF2020]fileheader