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

online casino games best online casinos betfair online casino https://onlinecasinolo.com/ - real money casino

best online casinos real money casino best online casino https://onlinecasino888.us.org/ - online casino real money

best online casino online gambling casino casino online https://onlinecasino888.us.org/ - casino slots

casino blackjack best online casinos online casino bonus | https://online-casinoss.us.org/ - play casino

usa online casino online casinos online casinos https://onlinecasino888.us.org/ - online casino slots

free online casino slots online casino play casino | https://online-casinoss.us.org/ - online casino games

casino australia jupiters casino rich casino | https://au-onlinecasinogames.com/ - rich casino

best online casinos online casino slots casino slots https://onlinecasino888.us.org/ - online casino real money

gambling sites casino games best online casino https://online-casinos.us.org/ - bovada casino

casino bonus gsn casino slots online casino real money [url=https://onlinecasino888.us.org/]usa online casino[/url]

casino bonus online casino bonus casino bonus | https://online-casinoss.us.org/ - online casino games

treasury casino wrest point casino joe fortune casino | [url=https://au-onlinecasinogames.com/]crown casino perth[/url]

online casino games online casino slots casino slots https://online-casinos.us.org/ - best online casino

free online casino slots online gambling online casino bonus https://onlinecasinormoney.com/ - slots for real money

casino play gsn casino best online casinos | https://online-casinoss.us.org/ - casino slots

aol games casino cashman casino casino games | https://au-onlinecasinogames.com/ - casino games

cashman casino jupiters casino casino australia | https://au-onlinecasinogames.com/ - casino online

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

star casino gold coast mongoose casino star casino gold coast | https://au-onlinecasinogames.com/ - cashman casino

casino real money casino blackjack best online casino https://online-casinos.us.org/ - online gambling

tangiers casino star casino sydney aol games casino | https://au-onlinecasinogames.com/ - online casino

real money casino casino games play casino https://onlinecasino888.us.org/ - gsn casino slots

online casino games online casino gambling usa online casino | https://online-casinoss.us.org/ - casino games

online casino bonus gambling sites online casino games https://online-casinos.us.org/ - gsn casino

star casino sydney star casino joe fortune casino | https://au-onlinecasinogames.com/ - tangiers casino

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

usa online casino casino games gambling sites https://online-casinos.us.org/ - online casinos

casino slots online casino slots online casinos for us players | https://online-casinoss.us.org/ - online casino games

black diamond casino star casino gold coast doubledown casino | https://au-onlinecasinogames.com/ - online casino australia

online casino gambling casino real money online casino real money https://online-casinos.us.org/ - online casino bonus

casino real money online casino games online casino bonus https://onlinecasinoplay777.us.org/ - casino real money

slots for real money play casino casino online https://onlinecasinoplay777.us.org/ - online gambling casino

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

casino play gsn casino games gsn casino slots | https://casino-online2018.us.org/ - betfair online casino

best online casino casino online online casinos https://onlinecasinoplay777.us.org/ - online casinos

bovada casino betfair online casino online gambling casino https://onlinecasinoplay777.us.org/ - online casinos for us players

online gambling online casino bonus betfair online casino | https://casino-online2018.us.org/ - best online casino

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

online casino slots best online casinos online casino real money https://onlinecasinoplay777.us.org/ - online casino slots

casino play play casino online casino real money https://onlinecasinoplay777.us.org/ - casino blackjack

online casino slots casino games mgm online casino https://onlinecasinoplay777.us.org/ - online casino real money

online casino slots casino bonus mgm online casino https://onlinecasinog24.com/ - online gambling

usa online casino casino bonus best online casinos https://onlinecasinolo.com/ - online casino slots

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.