iT邦幫忙

2024 iThome 鐵人賽

DAY 3
0
佛心分享-刷題不只是刷題

CTF 刷題系列 第 3

CTF Day 3 Reverse (ARMssembly 0)

  • 分享至 

  • xImage
  •  

今天也來解Reverse的題目

題目 ARMssembly 0

https://ithelp.ithome.com.tw/upload/images/20240917/20155574n3FBXltZIG.png

方法1

直接用ARM編譯器來解,再轉為hex即可
https://ithelp.ithome.com.tw/upload/images/20240917/20155574XNcmZ4YAmd.png

方法2

在assembly code的main當中,值得注意的有48行跳到func1
https://ithelp.ithome.com.tw/upload/images/20240917/20155574ryZXYQpW9m.png

func1
https://ithelp.ithome.com.tw/upload/images/20240917/20155574IOV4Fu4sLW.png
看起來像是

if(w1<=w0){
    return w0
}else{
    return w1
}

簡單來說就是print較大的數
並把其轉成hex即可


上一篇
CTF Day 2 Reverse (vault-door-training & Transformation)
下一篇
CTF Day 4 Reverse (Bit-O-Asm-4)
系列文
CTF 刷題19
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言