HITcon 2009 WasGame 解題分享

這次很開心跟 Dark, H4K, TW1943 一起組隊玩 wargame.
當初預定拿 200 分的目標有達到, 雖然沒拿第一名不過重點是培養了團隊默契, 感覺真的很棒.
回想起四五年前和 devil2k 一起 team hacking 德國佬網站的日子, 到現在已經很久沒有這種感覺了.
謝謝你, 2963. 啊不是, 我是說, 謝謝你們, Zuso Security 的朋友們.

其實應該可以再拿 80 分的... 因為
guestbook 在最後十分鐘 admin 沒進來, 所以沒拿到 session.
有兩題 windows 題在時間結束後十分鐘內解出來

此次 windows 題都是 Dark 跟 H4K 解的, 我只能分享 Unix 跟 Misc.

此次大多用 Perl, Firefox + Firebug + LiveHttpHeaders, telnel, strings, VirtualBox + XP 等工具解題

Unix1: 看 source code 後, 把參數準備好餵進去就行了. 在 PATH_INFO 卡一陣, 後來 h4k 找到了.

Unix2: 用黑刀 dezend 在 winxp 解出 source code, 再讀一讀就出來了.

Unix3: dump, gdb 都沒用. 會後才看 timhsu 的 DefCon 分享找出 kill -11 core dump + strings, 好像解出來了.

Unix4: 第一天 guest password 被改掉, 第二天連不上, 殘念...

Misc1: hack the _ 用 google 就行. 不過題目是五個底線, 我就找五個字母的不過都不對.....答案確是六個字母....這有點誤導不太好 Orz

Misc2: 卡了一陣,用 Perl 將亂碼的每一個 char 分開用 ord() 印出, 會發現 2xx 2xx 2xx 160 2xx 2xx 2xx 160 ..., 用 hex, 重組等方式試了好久沒結果. 後來想說 160 應該是分隔號, 用 space 代進找出 shift 數目, 處理完後用 chr() 印出就成了!

Misc3: 也卡好久, 又是找浮水印又是做圖形處理的. 後來 TW1943 在 google 提示找到特殊字行比對就成功了 XD

Misc4: git 的, 沒解出來. 因為不熟 git, 偶爾用的 github config 是 git://xxxxxx/xx/xx.git, 也不合. 會後才知道 git://xxxxx/ 也可以... Orz

Misc5: D311 網站, 改了 post data 又追 html 又追 javascript, 還找到 order -> backet -> backetsubmit -> score -> backet 和 admin.js 等等的流程, 想說這會不會是很大的題目所以追了整個 .150 的 pages... 結果 TW1943 用 input value 猜一猜試到規則...評直覺 1500 下去就過了....繞了那麼大一圈, 想當初我還猜了 1699 為什麼沒過, 1699 才是 D311 的價錢吧! XD

Misc6: 這是 timhsu 的題目....用 hexdump 跟 gdb 都沒用. 會後聽 tim 提示他的 defcon 分享看了一下才知道用 kill -11, 再把 core strings, 好像解出來了.

Misc7: 又是 git... .git 裡的 index 跟 pack 又不 match. 後來搞好久又 rebuild index 又 unpack .pack 都 error, 就在失望之際用 git gui 看了一下... 耶?! 我已經救回來啦?! XD 看 history/diff 就有 key 了 :P

Misc8: guestbook. 解 javascript 解完, 是過濾 input 的...但是這題到底要我們幹嘛? 到最後才想到是要 XSS 偷 admin cookie / php session id, 可是結束前十分鐘關主就休息沒登入了...所以沒偷到, 慚念.

Misc9: python 2.6 reverse engineering... 去年也有, 看到有點火. 這是 language specific 的東西, 跟 .git 一樣都是綁定的, 有點不是很開心. 這題試了好些 decompile tool 都沒啥用, 不然就是看不懂結果. 有參賽者把它轉成 2.5 的解開了.

Misc10: packet.pcap. 看到是 802.11 WEP encrypted, 用 aircrack 一下就成了.

Misc11: 一堆正妹圖... 又是 strings, 圖片資訊等等的都找過一次都不對, 然後又觀察圖片上有些字糊掉變型去猜, 也不對. 會後關主說是每一個 file 裡都有 gps 座標, 全連起來後一堆點點會拼成 "32E" 的字....而且說所有圖的主角都是 32E!! XDDD

Misc12: 一開始看到 cookie 改了下拿到 key, 可是 upload 後確是 error! 搞一陣 Misc13 開了, 才發現那是 Misc13 的 key XD 晚上跟 Orange 交換心得時經提示後試了下, 這題是 parent dir 有 indexing enabled, 找 config 再登入就能拿到 key.

Misc13: 參見 Misc12....是改 cookie

Misc14: 又是 python. hate.

會後,
約好名年 Zuso 要 BF 一隊, 咱四個一隊, 攻下第一二名 XD

(TBC)

Comments

casino play online casino gambling mgm online casino | https://onlinecasinoppl.com/ - best online casino

gambling sites online casino slots mgm online casino https://onlinecasinoslotsnow.com/ - online casinos

online casino real money online gambling casino casino online https://onlinecasinoslotsparty.com/ - online casino real money

casino play online casino games mgm online casino https://casinoslotsy.us.org/ - gsn casino

buy painkillers online overnight tramadol 100mg buy tramadol online | https://buytramadol.us.org/ - tramadol hcl

online casino bonus online casino slots bovada casino https://casinoslotssy.us.org/ - casino games

casino slots online casino real money online casinos https://onlinecasinoslotsnow.com/ - betfair online casino

tramadol acetaminophen tramadol 100 mg buy tramadol | https://buytramadol.us.org/ - tramadol 50 mg

best online casinos bovada casino online casino slots https://onlinecasinoslotsparty.com/ - online casino games

real money casino gambling sites slots for real money | https://onlinecasinoss.us.org/ - online casinos

betfair online casino real money casino usa online casino https://casinoslotssy.us.org/ - gsn casino slots

online casino games online casino games online casino games https://casinoslotsy.us.org/ - online casinos for us players

ultram buy painkillers online overnight tramadol hcl 50 mg tablet | https://buytramadol.us.org/ - tramadol 100 mg

online gambling casino casino real money usa online casino https://onlinecasinolc.com/ - online casinos

gsn casino games betfair online casino online casino games https://onlinecasinoster.us.org/ - online casinos

casino play online casino games mgm online casino https://onlinecasinormoney.com/ - best online casino

mgm online casino casino play gsn casino https://onlinecasinorealmoney.us.org/ - casino bonus

online casinos gambling sites online casino games | https://onlinecasinoss.us.org/ - slots for real money

slots for real money casino real money online casino real money https://onlinecasinolc.com/ - best online casinos

gsn casino games best online casinos usa online casino https://onlinecasinoster.us.org/ - online casinos

casino games casino online online casinos https://onlinecasinormoney.com/ - best online casino

online casino gambling slots for real money usa online casino https://onlinecasinorealmoney.us.org/ - online casino

tramadol generic tramadol acetaminophen tramadol opioid | https://buytramadol.us.org/ - tramadol hcl 50 mg

online casino bonus best online casinos casino online https://onlinecasinolc.com/ - play casino

free online casino slots gambling sites online casinos for us players https://onlinecasinorealmoney.us.org/ - online casino gambling

best online casinos gsn casino games online casino real money https://onlinecasinolc.com/ - online casino real money

slots for real money casino play casino blackjack https://onlinecasinoster.us.org/ - online casino bonus

online casinos for us players best online casinos casino play https://onlinecasinolc.com/ - usa online casino

ultram 50 mg tramadol hcl 50 mg tablet tramadol hcl 50mg | https://buytramadol.us.org/ - tramadol hydrochloride

gsn casino casino blackjack gsn casino games https://onlinecasinoslotsnow.com/ - betfair online casino

online casinos online gambling casino mgm online casino | https://online-casinoss.us.org/ - gsn casino games

online casino games online casino games gsn casino | https://online-casinoss.us.org/ - casino real money

online casino real money casino slots online casino gambling https://onlinecasinoslotsnow.com/ - gsn casino

betfair online casino online casino bonus free online casino slots https://onlinecasinogamesnt.us.org/ - online gambling casino

gsn casino gambling sites best online casinos https://onlinecasinoslotsnow.com/ - gsn casino

online casinos for us players online casino slots online casino https://onlinecasinoslotsparty.com/ - gsn casino games

slots for real money casino online online casinos https://onlinecasinoslotsnow.com/ - casino games

free online casino slots online casinos casino online https://onlinecasinogamesnt.us.org/ - online casinos for us players

online casino gambling online casino games bovada casino https://onlinecasinoslotsnow.com/ - usa online casino

online casino real money free online casino slots gambling sites https://onlinecasinogamestt.us.org/ - gambling sites

online casino bonus gsn casino gsn casino games https://onlinecasinoslotsnow.com/ - casino slots

casino slots usa online casino casino blackjack https://onlinecasinogamestt.us.org/ - slots for real money

free online casino slots mgm online casino casino real money | https://onlinecasinomaniaa.com/ - gsn casino slots

casino online mongoose casino casino online | https://au-onlinecasinogames.com/ - casino online

casino slots betfair online casino free online casino slots https://onlinecasinoslotsnow.com/ - best online casino

wrest point casino crown casino melbourne mongoose casino | https://australiaonlinecasinol24.com/ - treasury casino

Pages

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.