SlideShare a Scribd company logo
パケット遊び
初段
国立セキュリティ・キャンプ すらんく
(@slankdev)
Feb27OSC2016Tokyo/Spring
1
みなさんこんにちは
Feb27OSC2016Tokyo/Spring
2
Feb27OSC2016Tokyo/Spring
3
パケット遊びの時間です
Feb27OSC2016Tokyo/Spring
4
パケット遊びとは
Feb27OSC2016Tokyo/Spring
5
パケットを送る
それだけ
Agenda
1. パケットを送って遊ぼう!
2. Wiresharkはすごい!
Feb27OSC2016Tokyo/Spring
6
Feb27OSC2016Tokyo/Spring
7
パケットを送って遊ぼうパケットを送って遊ぼう
パケットを送って遊ぼう
• 必要なもの
– LinuxかBSD系のマシン
– C++11の環境
– LibPGEN (http://libpgen.org)
– Wireshark
– LAN環境
Feb27OSC2016Tokyo/Spring
8
やること
• ARPのパケットを送って遊ぶ。(それだけ)
• 簡単なプログラムを作ってパケットを送っ
てみましょう
Feb27OSC2016Tokyo/Spring
9
ARPとは
• L3のプロトコルのアドレスから、L2のプ
ロトコルのアドレスを取得するためのプロ
トコル
• 実際はIPアドレスからEthernetのMACア
ドレスの情報を得ることが多い
Feb27OSC2016Tokyo/Spring
10
簡単に言うとこんな感じ
Feb27OSC2016Tokyo/Spring
11
実験環境
Feb27OSC2016Tokyo/Spring
12
ソースコード
Feb27OSC2016Tokyo/Spring
13
実行結果
Feb27OSC2016Tokyo/Spring
14
まとめ
• 簡単にARPで遊ぶことができた
• でもこれはウォーミングアップ
Feb27OSC2016Tokyo/Spring
15
Feb27OSC2016Tokyo/Spring
16
楽しい
Feb27OSC2016Tokyo/Spring
17
でもこれはまだ
ウォームアップ
Feb27OSC2016Tokyo/Spring
18
Wiresharkはすごい
Wiresharkはすごい!
• 今回の本題
• 必要なもの
– さっきと同じ
– これは必ず自分のみの閉じられた
ネットワークでやってください
Feb27OSC2016Tokyo/Spring
19
やること
• パケット送信のプログラムを作ってその一
部始終をWiresharkでキャプチャする
• 今回通信する内容はARPスプーフィングの
通信をキャプチャします
Feb27OSC2016Tokyo/Spring
20
ARPスプーフィングとは
• 正規のクライアントからのARP要求に対
して、攻撃者が「不正なARP応答」を送
信することにより、LAN上の通信機器にな
りすます攻撃手法のこと
• (引用:Wikipedia)
Feb27OSC2016Tokyo/Spring
21
簡単に言うとこんな感じ
Feb27OSC2016Tokyo/Spring
22
今回はこの通信を
Wiresharkで
見てみましょう
Feb27OSC2016Tokyo/Spring
23
実験環境
Feb27OSC2016Tokyo/Spring
24
こいつがARPスプーフィング
こいつがARPリクエスト,
ここでパケットキャプチャ
こいつがARPリプライ
ソースコード
Feb27OSC2016Tokyo/Spring
25
実行結果
Feb27OSC2016Tokyo/Spring
26
Feb27OSC2016Tokyo/Spring
27
すごい
まとめ
• 他にも機能が豊富
• パケットで自由に遊べると
ネットワークの勉強になるかもね
Feb27OSC2016Tokyo/Spring
28

More Related Content

What's hot

Kernel vm13lt
Kernel vm13ltKernel vm13lt
Kernel vm13lt
slankdev
 
OSC2017Hokkaido
OSC2017HokkaidoOSC2017Hokkaido
OSC2017Hokkaido
slankdev
 
CSRを自動生成する!
CSRを自動生成する!CSRを自動生成する!
CSRを自動生成する!
Taichi Ishitani
 
Kotlin と Rxjava2
Kotlin と Rxjava2Kotlin と Rxjava2
Kotlin と Rxjava2
Recruit Lifestyle Co., Ltd.
 
RgGen ご紹介
RgGen ご紹介RgGen ご紹介
RgGen ご紹介
Taichi Ishitani
 
Introductionof taskflow
Introductionof taskflowIntroductionof taskflow
Introductionof taskflowharubelle
 
Linuxのユーザーランドをinitから全てまるごとgolangで書く
Linuxのユーザーランドをinitから全てまるごとgolangで書くLinuxのユーザーランドをinitから全てまるごとgolangで書く
Linuxのユーザーランドをinitから全てまるごとgolangで書く
Tetsuyuki Kobayashi
 
最近のrubyのインストール方法
最近のrubyのインストール方法最近のrubyのインストール方法
最近のrubyのインストール方法
Kazuhiro Nishiyama
 
Linux環境でのTracの導入
Linux環境でのTracの導入Linux環境でのTracの導入
Linux環境でのTracの導入
Masaharu IWAI
 
組み込みLinuxでのGolangのススメ
組み込みLinuxでのGolangのススメ組み込みLinuxでのGolangのススメ
組み込みLinuxでのGolangのススメ
Tetsuyuki Kobayashi
 
鹿児島Linux勉強会2016.04
鹿児島Linux勉強会2016.04鹿児島Linux勉強会2016.04
鹿児島Linux勉強会2016.04
Kenichiro MATOHARA
 
20090124shibuya Trac
20090124shibuya Trac20090124shibuya Trac
20090124shibuya Trac
Kazuya Hirobe
 
Trend Micro CTF Asia Pacific & Japan -defensive100-
Trend Micro CTF Asia Pacific & Japan -defensive100-Trend Micro CTF Asia Pacific & Japan -defensive100-
Trend Micro CTF Asia Pacific & Japan -defensive100-
boropon
 
分散バージョン管理システムって何なん 20101218
分散バージョン管理システムって何なん 20101218分散バージョン管理システムって何なん 20101218
分散バージョン管理システムって何なん 20101218
Takashi Okamoto
 
SECCON2014 crypt200
SECCON2014 crypt200SECCON2014 crypt200
SECCON2014 crypt200
boropon
 
LibreOfficeの品質向上活動について
LibreOfficeの品質向上活動についてLibreOfficeの品質向上活動について
LibreOfficeの品質向上活動について
Masataka Kondo
 
Raspberry Pi + Go で IoT した話
Raspberry Pi + Go で IoT した話Raspberry Pi + Go で IoT した話
Raspberry Pi + Go で IoT した話
yaegashi
 
OpenStack Train リリース
OpenStack Train リリースOpenStack Train リリース
OpenStack Train リリース
Akira Yoshiyama
 
OpenStack Trainリリース (Rev.2)
OpenStack Trainリリース (Rev.2)OpenStack Trainリリース (Rev.2)
OpenStack Trainリリース (Rev.2)
Akira Yoshiyama
 

What's hot (20)

Kernel vm13lt
Kernel vm13ltKernel vm13lt
Kernel vm13lt
 
OSC2017Hokkaido
OSC2017HokkaidoOSC2017Hokkaido
OSC2017Hokkaido
 
CSRを自動生成する!
CSRを自動生成する!CSRを自動生成する!
CSRを自動生成する!
 
Kotlin と Rxjava2
Kotlin と Rxjava2Kotlin と Rxjava2
Kotlin と Rxjava2
 
RgGen ご紹介
RgGen ご紹介RgGen ご紹介
RgGen ご紹介
 
Turnip
TurnipTurnip
Turnip
 
Introductionof taskflow
Introductionof taskflowIntroductionof taskflow
Introductionof taskflow
 
Linuxのユーザーランドをinitから全てまるごとgolangで書く
Linuxのユーザーランドをinitから全てまるごとgolangで書くLinuxのユーザーランドをinitから全てまるごとgolangで書く
Linuxのユーザーランドをinitから全てまるごとgolangで書く
 
最近のrubyのインストール方法
最近のrubyのインストール方法最近のrubyのインストール方法
最近のrubyのインストール方法
 
Linux環境でのTracの導入
Linux環境でのTracの導入Linux環境でのTracの導入
Linux環境でのTracの導入
 
組み込みLinuxでのGolangのススメ
組み込みLinuxでのGolangのススメ組み込みLinuxでのGolangのススメ
組み込みLinuxでのGolangのススメ
 
鹿児島Linux勉強会2016.04
鹿児島Linux勉強会2016.04鹿児島Linux勉強会2016.04
鹿児島Linux勉強会2016.04
 
20090124shibuya Trac
20090124shibuya Trac20090124shibuya Trac
20090124shibuya Trac
 
Trend Micro CTF Asia Pacific & Japan -defensive100-
Trend Micro CTF Asia Pacific & Japan -defensive100-Trend Micro CTF Asia Pacific & Japan -defensive100-
Trend Micro CTF Asia Pacific & Japan -defensive100-
 
分散バージョン管理システムって何なん 20101218
分散バージョン管理システムって何なん 20101218分散バージョン管理システムって何なん 20101218
分散バージョン管理システムって何なん 20101218
 
SECCON2014 crypt200
SECCON2014 crypt200SECCON2014 crypt200
SECCON2014 crypt200
 
LibreOfficeの品質向上活動について
LibreOfficeの品質向上活動についてLibreOfficeの品質向上活動について
LibreOfficeの品質向上活動について
 
Raspberry Pi + Go で IoT した話
Raspberry Pi + Go で IoT した話Raspberry Pi + Go で IoT した話
Raspberry Pi + Go で IoT した話
 
OpenStack Train リリース
OpenStack Train リリースOpenStack Train リリース
OpenStack Train リリース
 
OpenStack Trainリリース (Rev.2)
OpenStack Trainリリース (Rev.2)OpenStack Trainリリース (Rev.2)
OpenStack Trainリリース (Rev.2)
 

Viewers also liked

OpenTypeカラーフォントと関連技術の動向
OpenTypeカラーフォントと関連技術の動向OpenTypeカラーフォントと関連技術の動向
OpenTypeカラーフォントと関連技術の動向
Jun Fujisawa
 
OpenTypeカラーフォントの標準化
OpenTypeカラーフォントの標準化OpenTypeカラーフォントの標準化
OpenTypeカラーフォントの標準化
Jun Fujisawa
 
HTTP 2.0のヘッダ圧縮(HPACK)
HTTP 2.0のヘッダ圧縮(HPACK)HTTP 2.0のヘッダ圧縮(HPACK)
HTTP 2.0のヘッダ圧縮(HPACK)Jun Fujisawa
 
High Performance Networking with DPDK & Multi/Many Core
High Performance Networking with DPDK & Multi/Many CoreHigh Performance Networking with DPDK & Multi/Many Core
High Performance Networking with DPDK & Multi/Many Core
slankdev
 
Happy New Year
Happy New Year Happy New Year
Happy New Year
Minh Anh Nguyen
 
モバイルとソーシャルによる「学びの進化」を考える
モバイルとソーシャルによる「学びの進化」を考えるモバイルとソーシャルによる「学びの進化」を考える
モバイルとソーシャルによる「学びの進化」を考える
webcampusschoo
 
這一打‧好貴
這一打‧好貴這一打‧好貴
這一打‧好貴fudy9015
 
Group 2 - Pitch
Group 2 - PitchGroup 2 - Pitch
Group 2 - Pitch
ollieknott
 
World Computer Congress Keynote
World Computer Congress KeynoteWorld Computer Congress Keynote
World Computer Congress Keynote
fabricapo
 
Como realizar un plan de clases
Como realizar un plan de clasesComo realizar un plan de clases
Como realizar un plan de clases
Claudia Gisela Gimenez
 
Ne principles of islam
Ne principles of islamNe principles of islam
Ne principles of islam
Loveofpeople
 
Ylen Suomalaiset verkossa 2010 - tutkimuksen esittely
Ylen Suomalaiset verkossa 2010 - tutkimuksen esittelyYlen Suomalaiset verkossa 2010 - tutkimuksen esittely
Ylen Suomalaiset verkossa 2010 - tutkimuksen esittely
Yle.fi
 
Cognitive Biases: How the Clustering Illusion will impact your pitch
Cognitive Biases:  How the Clustering Illusion will impact your pitchCognitive Biases:  How the Clustering Illusion will impact your pitch
Cognitive Biases: How the Clustering Illusion will impact your pitch
Siamac Rezaiezadeh
 
[KGC 2013] Online Game Security in China
[KGC 2013] Online Game Security in China[KGC 2013] Online Game Security in China
[KGC 2013] Online Game Security in China
Seungmin Shin
 
Carrot City: The impact of food on the design of cities and buildings - Mark ...
Carrot City: The impact of food on the design of cities and buildings - Mark ...Carrot City: The impact of food on the design of cities and buildings - Mark ...
Carrot City: The impact of food on the design of cities and buildings - Mark ...
SBCBreakfastSessions
 
Madagascar analysis
Madagascar analysisMadagascar analysis
Madagascar analysiscroberts100
 
تقرير حول انتهاكات السجون في مصر
تقرير حول انتهاكات السجون في مصر تقرير حول انتهاكات السجون في مصر
تقرير حول انتهاكات السجون في مصر
التنسيقية المصرية للحقوق والحريات
 
anybuild/Hosting casual #1
anybuild/Hosting casual #1anybuild/Hosting casual #1
anybuild/Hosting casual #1Ryo Kuroda
 

Viewers also liked (20)

OpenTypeカラーフォントと関連技術の動向
OpenTypeカラーフォントと関連技術の動向OpenTypeカラーフォントと関連技術の動向
OpenTypeカラーフォントと関連技術の動向
 
OpenTypeカラーフォントの標準化
OpenTypeカラーフォントの標準化OpenTypeカラーフォントの標準化
OpenTypeカラーフォントの標準化
 
HTTP 2.0のヘッダ圧縮(HPACK)
HTTP 2.0のヘッダ圧縮(HPACK)HTTP 2.0のヘッダ圧縮(HPACK)
HTTP 2.0のヘッダ圧縮(HPACK)
 
High Performance Networking with DPDK & Multi/Many Core
High Performance Networking with DPDK & Multi/Many CoreHigh Performance Networking with DPDK & Multi/Many Core
High Performance Networking with DPDK & Multi/Many Core
 
Happy New Year
Happy New Year Happy New Year
Happy New Year
 
モバイルとソーシャルによる「学びの進化」を考える
モバイルとソーシャルによる「学びの進化」を考えるモバイルとソーシャルによる「学びの進化」を考える
モバイルとソーシャルによる「学びの進化」を考える
 
這一打‧好貴
這一打‧好貴這一打‧好貴
這一打‧好貴
 
Group 2 - Pitch
Group 2 - PitchGroup 2 - Pitch
Group 2 - Pitch
 
World Computer Congress Keynote
World Computer Congress KeynoteWorld Computer Congress Keynote
World Computer Congress Keynote
 
Como realizar un plan de clases
Como realizar un plan de clasesComo realizar un plan de clases
Como realizar un plan de clases
 
Ne principles of islam
Ne principles of islamNe principles of islam
Ne principles of islam
 
Ylen Suomalaiset verkossa 2010 - tutkimuksen esittely
Ylen Suomalaiset verkossa 2010 - tutkimuksen esittelyYlen Suomalaiset verkossa 2010 - tutkimuksen esittely
Ylen Suomalaiset verkossa 2010 - tutkimuksen esittely
 
Cognitive Biases: How the Clustering Illusion will impact your pitch
Cognitive Biases:  How the Clustering Illusion will impact your pitchCognitive Biases:  How the Clustering Illusion will impact your pitch
Cognitive Biases: How the Clustering Illusion will impact your pitch
 
[KGC 2013] Online Game Security in China
[KGC 2013] Online Game Security in China[KGC 2013] Online Game Security in China
[KGC 2013] Online Game Security in China
 
I16092.00_E501-E501
I16092.00_E501-E501I16092.00_E501-E501
I16092.00_E501-E501
 
Carrot City: The impact of food on the design of cities and buildings - Mark ...
Carrot City: The impact of food on the design of cities and buildings - Mark ...Carrot City: The impact of food on the design of cities and buildings - Mark ...
Carrot City: The impact of food on the design of cities and buildings - Mark ...
 
Madagascar analysis
Madagascar analysisMadagascar analysis
Madagascar analysis
 
driver
driverdriver
driver
 
تقرير حول انتهاكات السجون في مصر
تقرير حول انتهاكات السجون في مصر تقرير حول انتهاكات السجون في مصر
تقرير حول انتهاكات السجون في مصر
 
anybuild/Hosting casual #1
anybuild/Hosting casual #1anybuild/Hosting casual #1
anybuild/Hosting casual #1
 

OSC2016 Tokyo/Spring LT