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

gsn casino games gsn casino games gsn casino slots | https://casinorealmoney2018.us.org/ - play casino

online casino games gsn casino slots online casino bonus https://casinoslotsy.us.org/ - online casino games

real money casino slots for real money casino play | https://casinorealmoney2018.us.org/ - betfair online casino

play casino casino blackjack casino slots | https://onlinecasinowus.com/ - online casino gambling

online casino games play casino gsn casino games https://onlinecasinormoney.com/ - casino slots

Здравствуйте! Класный у вас сайт!
Что скажете по поводу этих новостей?: http://inosmip.ru/news/10139-svodka-sobytiy-v-sirii-za-27-dekabrya-2014-... Сводка событий в Сирии за 27 декабря 2014 года
Надуманные и реальные проблемы Крыма
http://inosmip.ru/news/1524-pomoschnik-obamy-peredal-vladimiru-putinu-li...
Ещё много всего по теме нашел тут: днр 24 11 2014 http://inosmip.ru/

online gambling online casinos mgm online casino | https://onlinecasinovus.com/ - online casino bonus

casino games online casinos online casino real money | https://onlinecasinozonee.com/ - online casinos

casino blackjack online casino real money casino play https://onlinecasinormoney.com/ - online casino slots

casino blackjack casino online online casino slots https://onlinecasinoster.us.org/ - mgm online casino

play casino casino slots betfair online casino https://onlinecasinorealmoney.us.org/ - mgm online casino

gsn casino slots online casino gambling online casino gambling | https://onlinecasinozeus24.com/ - betfair online casino

casino play gsn casino real money casino https://onlinecasinog24.com/ - best online casinos

casino real money casino online free online casino slots https://onlinecasinolo.com/ - casino slots

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

play casino casino play free online casino slots https://onlinecasinoster.us.org/ - online casino

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

online casino games online casino games online casino gambling | https://onlinecasinowus.com/ - best online casino

mgm online casino online casinos mgm online casino | [url=https://onlinecasinowus.com/]online casinos[/url]

online casino gambling best online casino casino slots | https://onlinecasinovus.com/ - bovada casino

online casino games casino slots best online casino | https://onlinecasinovus.com/ - online casino slots

casino blackjack play casino online casinos for us players | https://onlinecasinovus.com/ - casino bonus

casino slots casino slots mgm online casino | https://onlinecasinovus.com/ - gsn casino games

casino blackjack online casinos casino slots https://onlinecasinolc.com/ - best online casinos

betfair online casino real money casino gsn casino games https://onlinecasinogamestt.us.org/ - online casino games

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

slots for real money casino play online casinos for us players https://onlinecasinogamesnt.us.org/ - online casinos

casino games casino play online casino bonus https://onlinecasinogamestt.us.org/ - online casino games

real money casino betfair online casino best online casino https://onlinecasinolc.com/ - online casinos for us players

casino play casino slots gsn casino | https://onlinecasinozonee.com/ - online gambling

casino play real money casino online casino games | https://onlinecasinozonee.com/ - betfair online casino

free online casino slots casino games gambling sites https://onlinecasinogamesnt.us.org/ - usa online casino

gambling sites online gambling casino games https://onlinecasinormoney.com/ - mgm online casino

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

betfair online casino casino slots gsn casino https://onlinecasinolc.com/ - casino blackjack

gsn casino games best online casinos online gambling | https://onlinecasinozonee.com/ - online gambling

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

free online casino slots best online casino casino blackjack https://casinoslotssy.us.org/ - casino online

online casino games best online casino play casino https://onlinecasinoslotsparty.com/ - online casino

casino real money best online casinos mgm online casino https://casinoslotsy.us.org/ - bovada casino

gsn casino online casino online casino https://casinoslotssy.us.org/ - mgm online casino

casino bonus online casino gambling online casino gambling https://onlinecasinoslotsparty.com/ - betfair online casino

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

online gambling online gambling online casinos | https://onlinecasinoppl.com/ - real money casino

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

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.