SlideShare uma empresa Scribd logo
1 de 14
Baixar para ler offline
CODEGATE2012
YUT Challenge
Preliminary Match
M I S C      # 3
                       2012/06/25
        第9回 ネットワークパケットを読む会(仮)
                       @togakushi
お前誰よ
► なまえ:togakushi
► でどころ:sutegoma2
CODEGATEとは
► 韓国で2008年から毎年開かれているセキュリ
  韓国で     から毎年開かれているセキュリ
            毎年開かれている
  ティカンファレンス
► YUT Challengeはその中で開催されている
                 はその中 開催されている
  CTF
► 事前に予選が行われ、上位チームがカンファレ
  事前に予選が われ、上位チーム         チームが
  ンス内      われる決勝戦 出場できる
                 決勝戦に
  ンス内で行われる決勝戦に出場できる
► 予選開催日 : 2012. 2. 24(Fri) 21:00 ~
  2. 26(Sun) 09:00 (36Hrs) (GMT +9)
CTFとは
► CaptureThe Flagと呼ばれる競技
► Flag(旗)となるキーワードやパスワードを配布
  されるファイルやWebサイトから探す
   配布されるファイルの形式
   Diskイメージ(ファイルシステム問わず、時には
   RAID0の半分だけとか)/実行ファイル(形式問わ
   ず)/パケットダンプ/その他いろいろ
MISC #3
You spied to find “Secret of Joseon which is
  previous dynasty of Korea”.
You got all main pages information to manage
  unrevealed secret of Joseon through network
  sniffing.
Open the file contained the secret of Joseon.

Answer : strupr(md5(password))

Download : 56C5A2B69084AEC379406CEB42CEC70C
これがなんなのか調べる
► ファイルをダウンロードしてお決まりのチェック

> md5sum 56C5A2B69084AEC379406CEB42CEC70C
56c5a2b69084aec379406ceb42cec70c
56C5A2B69084AEC379406CEB42CEC70C

> file 56C5A2B69084AEC379406CEB42CEC70C
56C5A2B69084AEC379406CEB42CEC70C: tcpdump capture
file (little-endian) - version 2.4 (Ethernet,
capture length 32767)
Wiresharkで眺めてみる
ストーリー(仮説)を考える
► ほとんどがHTTPの通信
► 問題文から秘密のファイルがやり取りされてる
  はず
► 秘密のファイルを開ければよさそう
秘密のファイルを探す
► HTTP通信で流れてるファイルはオブジェクトダ
  ンプで一括で抽出できる
► ファイル
  →エクスポート
   →オブジェクト
    →HTTP
途中経過



> ls
01.jpg                                     bg-headliner-top-shadow.jpg     index(2).html
300px-Korean_celestial_globe.jpg           bg-navigation.gif               index.html
300px-Korean_Waterclock.jpg                bg-navigation-left-curve.gif    King_Sejong_en
300px-Seoul-Gyeongbokgung-Sundial-02.jpg   bg-navigation-right-curve.gif   korean_secret
about.html                                 carterone-webfont(1).woff       reference.html
andika-r-webfont(1).woff                   carterone-webfont.woff          register.html
andika-r-webfont.woff                      celestial.html                  separator-navigation.gif
bg-body.gif                                civil_service.html              sprites-buttons.gif
bg-featured.gif                            contact.html                    sprites-icon.gif
bg-featured.jpg                            cp0421034001_00001              sprites-inputs.gif
bg-footer.gif                              css                             style(1).css
bg-header.gif                              fonts                           style.css
bg-headliner-bottom-shadow.jpg             hack                            sundial.html
bg-headliner.gif                           images                          waterclock.html
bg-headliner-image-shadow.jpg              index(1).html
パスワード付きPDFを発見
► 「korean_secret」というあからさまなファイル名
  のPDFがあり、パスワードで保護されている
► パスワードは何か?
  4人くらいで挑戦
  朝鮮王を調べてそれっぽいキーワードで試す
  Webのアドレスや電話番号などパスワードにしそう
  なもので試す
  ブルートフォースアタックを試す
パケットの中にパスワードあるかも
► ダンプファイルから辞書を作ってそれでやって
みる

> strings 56C5A2B69084AEC379406CEB42CEC70C ¥
  | sed 's/[ ¥t]/¥n/g' | sort -u > dic.txt

> wc dic.txt
 42633 42632 282744 dic.txt
回答
► ツールを使って辞書攻撃
% pdfcrack -o -w dic.txt korean_secret
PDF version 1.6
Security Handler: Standard
V: 4
R: 4
P: -3904
Length: 128
Encrypted Metadata: True
FileID: 3f96dd275a3a594b9699307df9117b5f
U: 774e894ba5544df616025fe657b3ac4e00000000000000000000000000000000
O: 215c67bf60b941032efc5e200d906082a394cad728608cad8aea351adaaa2718
found owner-password: ‘28-letter’
found user-password: ‘28-letter’

   パスワードを問題文に掲載されてる形式に変換したものが答え
おしまい

Mais conteúdo relacionado

Destaque

楽天Edyオンライン 記者説明会資料
楽天Edyオンライン 記者説明会資料楽天Edyオンライン 記者説明会資料
楽天Edyオンライン 記者説明会資料
Kei Wada
 
Cooking for Solutions Japan 2nd 20130905 Saury
Cooking for Solutions Japan 2nd 20130905 SauryCooking for Solutions Japan 2nd 20130905 Saury
Cooking for Solutions Japan 2nd 20130905 Saury
Tomoyuki Yanagimoto
 

Destaque (15)

KVM+cgroup
KVM+cgroupKVM+cgroup
KVM+cgroup
 
output activity
output activityoutput activity
output activity
 
SmartFutureCity-KesenArtProject
SmartFutureCity-KesenArtProjectSmartFutureCity-KesenArtProject
SmartFutureCity-KesenArtProject
 
楽天Edyオンライン 記者説明会資料
楽天Edyオンライン 記者説明会資料楽天Edyオンライン 記者説明会資料
楽天Edyオンライン 記者説明会資料
 
Acceleration Brochure Japanese
Acceleration Brochure JapaneseAcceleration Brochure Japanese
Acceleration Brochure Japanese
 
Genki 18
Genki 18Genki 18
Genki 18
 
Cooking for Solutions Japan 2nd 20130905 Saury
Cooking for Solutions Japan 2nd 20130905 SauryCooking for Solutions Japan 2nd 20130905 Saury
Cooking for Solutions Japan 2nd 20130905 Saury
 
No Monitoring, No Life on AWS
No Monitoring, No Life on AWSNo Monitoring, No Life on AWS
No Monitoring, No Life on AWS
 
14 tips to market your restaurant, eatery or cafe
14 tips to market your restaurant, eatery or cafe14 tips to market your restaurant, eatery or cafe
14 tips to market your restaurant, eatery or cafe
 
8 Tips for Scaling Mobile Users in China by Edith Yeung
8 Tips for Scaling Mobile Users in China by Edith Yeung8 Tips for Scaling Mobile Users in China by Edith Yeung
8 Tips for Scaling Mobile Users in China by Edith Yeung
 
Case Study: Mastering digital disruption in retail
Case Study: Mastering digital disruption in retailCase Study: Mastering digital disruption in retail
Case Study: Mastering digital disruption in retail
 
Creative Traction Methodology - For Early Stage Startups
Creative Traction Methodology - For Early Stage StartupsCreative Traction Methodology - For Early Stage Startups
Creative Traction Methodology - For Early Stage Startups
 
Network Effects
Network EffectsNetwork Effects
Network Effects
 
The Physical Interface
The Physical InterfaceThe Physical Interface
The Physical Interface
 
Mobile Is Eating the World (2016)
Mobile Is Eating the World (2016)Mobile Is Eating the World (2016)
Mobile Is Eating the World (2016)
 

Semelhante a Pakena #9

C83 λカ娘の販促にやってきました
C83 λカ娘の販促にやってきましたC83 λカ娘の販促にやってきました
C83 λカ娘の販促にやってきました
Kiwamu Okabe
 
How to debug a perl script using gdb
How to debug a perl script using gdbHow to debug a perl script using gdb
How to debug a perl script using gdb
akirahiguchi
 
Linux Kernel Seminar in tripodworks
Linux Kernel Seminar in tripodworksLinux Kernel Seminar in tripodworks
Linux Kernel Seminar in tripodworks
tripodworks
 

Semelhante a Pakena #9 (20)

2012/06/28 #ssmjp
2012/06/28 #ssmjp2012/06/28 #ssmjp
2012/06/28 #ssmjp
 
Node予備校 vol.1 名古屋
Node予備校 vol.1 名古屋Node予備校 vol.1 名古屋
Node予備校 vol.1 名古屋
 
C83 λカ娘の販促にやってきました
C83 λカ娘の販促にやってきましたC83 λカ娘の販促にやってきました
C83 λカ娘の販促にやってきました
 
Ruby4Ctf
Ruby4CtfRuby4Ctf
Ruby4Ctf
 
Ingress on GKE/GCE
Ingress on GKE/GCEIngress on GKE/GCE
Ingress on GKE/GCE
 
C++でNVMeと(*´Д`)ハァハァ 戯れていたら一年経ってた。
C++でNVMeと(*´Д`)ハァハァ 戯れていたら一年経ってた。C++でNVMeと(*´Д`)ハァハァ 戯れていたら一年経ってた。
C++でNVMeと(*´Д`)ハァハァ 戯れていたら一年経ってた。
 
Prosym2012
Prosym2012Prosym2012
Prosym2012
 
⑯jQueryをおぼえよう!その2
⑯jQueryをおぼえよう!その2⑯jQueryをおぼえよう!その2
⑯jQueryをおぼえよう!その2
 
CRF を使った Web 本文抽出 for WebDB Forum 2011
CRF を使った Web 本文抽出 for WebDB Forum 2011CRF を使った Web 本文抽出 for WebDB Forum 2011
CRF を使った Web 本文抽出 for WebDB Forum 2011
 
Sourcecode Reading Workshop2010
Sourcecode Reading Workshop2010Sourcecode Reading Workshop2010
Sourcecode Reading Workshop2010
 
バイナリ駄洒落コンテスト
バイナリ駄洒落コンテストバイナリ駄洒落コンテスト
バイナリ駄洒落コンテスト
 
How to debug a perl script using gdb
How to debug a perl script using gdbHow to debug a perl script using gdb
How to debug a perl script using gdb
 
Java Script4
Java Script4Java Script4
Java Script4
 
Process hollowing
Process hollowingProcess hollowing
Process hollowing
 
PHPでのSWF編集とその応用
PHPでのSWF編集とその応用PHPでのSWF編集とその応用
PHPでのSWF編集とその応用
 
CTF(Capture the Flag)って何?
CTF(Capture the Flag)って何?CTF(Capture the Flag)って何?
CTF(Capture the Flag)って何?
 
Open VZ
Open VZOpen VZ
Open VZ
 
Linux Kernel Seminar in tripodworks
Linux Kernel Seminar in tripodworksLinux Kernel Seminar in tripodworks
Linux Kernel Seminar in tripodworks
 
Azure de debian
Azure de debianAzure de debian
Azure de debian
 
コンテナセキュリティにおける権限制御(OCHaCafe5 #3 Kubernetes のセキュリティ 発表資料)
コンテナセキュリティにおける権限制御(OCHaCafe5 #3 Kubernetes のセキュリティ 発表資料)コンテナセキュリティにおける権限制御(OCHaCafe5 #3 Kubernetes のセキュリティ 発表資料)
コンテナセキュリティにおける権限制御(OCHaCafe5 #3 Kubernetes のセキュリティ 発表資料)
 

Mais de (^-^) togakushi (14)

ささみ麻雀部の紹介
ささみ麻雀部の紹介ささみ麻雀部の紹介
ささみ麻雀部の紹介
 
ファイナル・ファンタジー2のデータを解析してみる
ファイナル・ファンタジー2のデータを解析してみるファイナル・ファンタジー2のデータを解析してみる
ファイナル・ファンタジー2のデータを解析してみる
 
手順書の話 Ver.0.3.0
手順書の話 Ver.0.3.0手順書の話 Ver.0.3.0
手順書の話 Ver.0.3.0
 
仕事の捉え方の話 #ssmjp
仕事の捉え方の話 #ssmjp仕事の捉え方の話 #ssmjp
仕事の捉え方の話 #ssmjp
 
OpenSSH User EnumerationTime-Based Attack と Python-paramiko
OpenSSH User EnumerationTime-Based Attack と Python-paramikoOpenSSH User EnumerationTime-Based Attack と Python-paramiko
OpenSSH User EnumerationTime-Based Attack と Python-paramiko
 
Janog33.5
Janog33.5Janog33.5
Janog33.5
 
現場で役に立たないsudoの使い方
現場で役に立たないsudoの使い方現場で役に立たないsudoの使い方
現場で役に立たないsudoの使い方
 
sshdのお話
sshdのお話sshdのお話
sshdのお話
 
tcpdumpとtcpreplayとtcprewriteと他。
tcpdumpとtcpreplayとtcprewriteと他。tcpdumpとtcpreplayとtcprewriteと他。
tcpdumpとtcpreplayとtcprewriteと他。
 
SSH力をつかおう
SSH力をつかおうSSH力をつかおう
SSH力をつかおう
 
jenkinsで遊ぶ
jenkinsで遊ぶjenkinsで遊ぶ
jenkinsで遊ぶ
 
SSH力をつけよう
SSH力をつけようSSH力をつけよう
SSH力をつけよう
 
Sfstudy #2
Sfstudy #2Sfstudy #2
Sfstudy #2
 
ひとりsphinx
ひとりsphinxひとりsphinx
ひとりsphinx
 

Último

Último (11)

Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その32024/04/26の勉強会で発表されたものです。
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
Amazon SES を勉強してみる その22024/04/26の勉強会で発表されたものです。
 
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
Observabilityは従来型の監視と何が違うのか(キンドリルジャパン社内勉強会:2022年10月27日発表)
 
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
論文紹介: The Surprising Effectiveness of PPO in Cooperative Multi-Agent Games
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
論文紹介:Video-GroundingDINO: Towards Open-Vocabulary Spatio-Temporal Video Groun...
 
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
論文紹介:Selective Structured State-Spaces for Long-Form Video Understanding
 
新人研修 後半 2024/04/26の勉強会で発表されたものです。
新人研修 後半        2024/04/26の勉強会で発表されたものです。新人研修 後半        2024/04/26の勉強会で発表されたものです。
新人研修 後半 2024/04/26の勉強会で発表されたものです。
 
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
LoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイスLoRaWANスマート距離検出センサー  DS20L  カタログ  LiDARデバイス
LoRaWANスマート距離検出センサー DS20L カタログ LiDARデバイス
 
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアルLoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
LoRaWAN スマート距離検出デバイスDS20L日本語マニュアル
 

Pakena #9