iT邦幫忙

0

資安學習路上-picoCTF 解題(General) 2

  • 分享至 

  • xImage
  •  

4. flag_shop

這題主要考C的整數溢位觀念。
https://ithelp.ithome.com.tw/upload/images/20220512/20148431tQ79hDYeS4.png

檔案載下來發現是個c檔案
https://ithelp.ithome.com.tw/upload/images/20220512/20148431fV4mRhbPYo.png

打開後看一下程式碼,發現應該會有整數溢位問題
https://ithelp.ithome.com.tw/upload/images/20220512/20148431JwFa1aOBtN.png

上網搜尋C整數的range
https://ithelp.ithome.com.tw/upload/images/20220512/20148431UCdfQ9z8Hk.png

在互動一下,發現這裡應該會有機會可以鑽過去https://ithelp.ithome.com.tw/upload/images/20220512/20148431GqSEMkEYxY.png

用計算機算一下至少要多大才能讓他整數溢位(大於2,386,092)
https://ithelp.ithome.com.tw/upload/images/20220512/20148431PK9XuS4Zaj.png

發現金額變大惹
https://ithelp.ithome.com.tw/upload/images/20220512/20148431Md9dZgtXSK.png

再回去重買一次,成功
https://ithelp.ithome.com.tw/upload/images/20220512/20148431gfgqCkHDl6.png

5. mus1c:歌詞是rockstar程式語言的程式碼

歌詞是rockstar程式語言的程式碼
https://ithelp.ithome.com.tw/upload/images/20220512/20148431FYoyFeFckF.png

其實一開始看完歌詞後,完全沒頭緒@@
https://ithelp.ithome.com.tw/upload/images/20220512/20148431U7gJE3jyW5.png

上網查一下關鍵字"shout","put"
https://ithelp.ithome.com.tw/upload/images/20220512/20148431WfzV8rz3FQ.png

點進去網站後,編譯那首歌變成一堆十進制編碼
https://ithelp.ithome.com.tw/upload/images/20220512/20148431JDf8TlBUzK.png

進行解碼得到解答picoCTF{rrrocknrn0113r}
https://ithelp.ithome.com.tw/upload/images/20220512/20148431uUWwhPJ8u2.png

General題目推薦工具蒐整

  1. ASCII to hex https://www.asciitohex.com/
  2. 8位元轉ASCII https://onlineasciitools.com/convert-octal-to-ascii
  3. hex edit https://hexed.it/(線上)、https://mh-nexus.de/en/hxd/(需安裝)
  4. crack hash https://crackstation.net/

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言