天天看點

Reversing.kr Easy ELF

Reversing.kr Easy ELF

一天一道CTF題目,能多不能少

下載下傳打開檔案~~

ida(32位),檢視main函數:

Reversing.kr Easy ELF

不難看出sub_8048451()是關鍵,進入sub_8048451()檢視:

Reversing.kr Easy ELF

正是如注釋一般,直接進行解碼

注意第四個數是負數,那麼我們就直接取之補碼

右鍵Bitwise negate:

s1 = 0x34 ^ 0x78
s2 = 0x31
s3 = 0x32 ^ 0x7C
s4 = 0xDD ^ 0x88
s5 = 0x58
s6 = 0x0
 
print(chr(s1)+chr(s2)+chr(s3)+chr(s4)+chr(s5)+chr(s6))

           

得到:

Reversing.kr Easy ELF

送出正确~