Top Banner
Rolling
12

9447 writeup reverse_rolling

Apr 15, 2017

Download

Technology

Pu Lee
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 9447 writeup reverse_rolling

Rolling

Page 2: 9447 writeup reverse_rolling

• Windows 8.1• IDA 6.6

• Kali Linux adm64• EDB ( 動態調適器 )

Page 3: 9447 writeup reverse_rolling

Libc 6 required• To solve it, add the following line to the sources.list:• deb http://ftp.debian.org/debian sid main

• Then install a new linbc:• apt-get update• apt-get -t sid install libc6-dev

Page 4: 9447 writeup reverse_rolling

main

Page 5: 9447 writeup reverse_rolling

4006c7

Page 6: 9447 writeup reverse_rolling

Call rax?• 轉動態調適• 過 4006c7 直接 F7 進 call rax

• 觀察 1• 參數給 test

Page 7: 9447 writeup reverse_rolling

• "57 102 108 97 103 115 115 116 97 114 116 119 105 116 104 57", • which is "9flagsstartwith9"

Page 8: 9447 writeup reverse_rolling

• 觀察二• Start with 9: 參數給 “ 9abc123”• rax 指向另一檢查 function

Page 9: 9447 writeup reverse_rolling
Page 10: 9447 writeup reverse_rolling
Page 11: 9447 writeup reverse_rolling

結論• 開頭是 9447• 接下來 ith char 都 relate 到 (i-4)th char• 用 (i-4)th char + {offset}• Offsets: +57 +59 +56 +53 -9 -1 -5 -3 +10 -8 +14 +5• => flag is: “9447{9447rollingisfun}”