SlideShare a Scribd company logo
1 of 22
Download to read offline
仮想化ゆとり教育の教え
! ! ! ! ! ! ! ! ! from 黒林檎
プロフィール
Twitter:r00tapple(あーるぜろぜろてぃあっぷる)!
Facebook:村島正浩!
What’s is Vagrant ?
同じ仮想環境をほぼ自動的に生成してくれる

同一構成のマシンを簡単に作成可能


[利点]

·一貫性

·再利用性

·プロビジョン
[構成]

vagrant

+

virtualbox!
今回はHoneypot
dionaea_vagrantという便利なvagrantの.boxがあ
る。



作成は至って簡単…

$git clone https://git….dionaea_vagrant

$vagrant up

$vagrant ssh
dionaeaって有名
マルウェア捕獲用ハニーポットとして有名!
マルウェアの保存先

/*マルウェア保存先*/

/opt/dionaea/var/dionaea/binaries

/*その他ログ等*/

/ope/dionaea/var/dionaea/..
vagrant無しでdionaeaを使うには..
$ cd ~/temp!
$ git clone git://git.carnivore.it/dionaea.git dionaea!
$ cd dionaea!
$ autoreconf -vi!
$ ./configure --with-lcfg-include=/opt/dionaea/include/ !
--with-lcfg-lib=/opt/dionaea/lib/ !
--with-python=/opt/dionaea/bin/python3.2 !
--with-cython-dir=/opt/dionaea/bin !
--with-emu-include=/opt/dionaea/include/ !
--with-emu-lib=/opt/dionaea/lib/ !
--with-gc-include=/usr/include/gc !
--with-ev-include=/opt/dionaea/include !
--with-ev-lib=/opt/dionaea/lib !
--with-curl-config=/usr/bin/ !
--with-ppcap-include=/opt/dionaea/include !
--with-pcap-lib=/opt/dionaea/lib/ !
vagrantはどれぐらい楽?
$ cd ~/temp$
$ git clone git://git.carnivore.it/dionaea.git dionaea$
$ cd dionaea$
$ autoreconf -vi$
$ ./configure --with-lcfg-include=/opt/dionaea/include/ $
--with-lcfg-lib=/opt/dionaea/lib/ $
--with-python=/opt/dionaea/bin/python3.2 $
--with-cython-dir=/opt/dionaea/bin $
--with-emu-include=/opt/dionaea/include/ $
--with-emu-lib=/opt/dionaea/lib/ $
--with-gc-include=/usr/include/gc $
--with-ev-include=/opt/dionaea/include $
--with-ev-lib=/opt/dionaea/lib $
--with-curl-config=/usr/bin/ $
--with-ppcap-include=/opt/dionaea/include $
--with-pcap-lib=/opt/dionaea/lib/ $
--with-glib=/opt/dionaea/ $
--with-ssl-lib=/opt/dionaea/lib/$
$ make$
$ sudo make install$
!
!
!
右の操作が..

$vagrant up

で可能
要するに?
$vagrant upを打てれば誰でも始めれるハニポ生活



マルコレっぽい(小並み)

[comment].

vagrantコレクションって
いう想像した言葉が頭の片
隅にありまして、君だけの
オリジナルboxを育てて(ryっ
ていう..はい..すいません…。
$vagrant up
サーバー環境どない∼
恩恵が見えない感じの人
正直、利点が環境構築の自動化以外見えないの
で辛い感じなのですが..。!
sandbox化して、”もしも”に対して対策出来る。

逆に、仮想環境なので削除が容易(..。)!
解析中にうっかり攻撃コードを実行しちゃう感じの貴方におすすめ!!
Sandbox化させる
Pluginのインストール

[コマンド] $vagrant plugin install <name>!
$vagrant plugin install sahara 

$vagrant sandbox on //sandbox起動(sandbox off で停止)

$vagrant sandbox commit //変更決定

$vagrant sandbox rollback//変更破棄

$vagrant sandbox status

どうせUbuntuならX使いたい(よね?)
甘えるな
いや
少年よ、FreeBSDを使え
Hypervisor世代でこそjailを使うんだ!!(当てつけ)!
jailを使う理由

       面白い
/jail/<name>






cp -Rp /bin /dev /etc /lib /libexec /sbin /usr! /var /jail/<フォルダ名>/
~/dev
$mkdir /jail/<フォルダ名>

$mount -t devfs devfs /jail/user4/dev
これで一応jailの起動自体は可能
$jail -c name=user1 path=/jail/user1 command=/bin/sh
でも…
jlsで起動中のjailを確認してみる.

$jls









IPアドレスもhostnameも無いので人生が駄目
rc.conf
$vi /etc/rc.conf
jlsで再び
IPとhostnameが割り当てられ与謝野晶子
最後に
最後に課題としてjailで最適なセキュア環境をど
ない構築するかとか考えると楽しいですね。

下記画像の様な操作しかした事が無い方は是非


More Related Content

More from 黒 林檎

実践IoTペンテスト
実践IoTペンテスト 実践IoTペンテスト
実践IoTペンテスト 黒 林檎
 
総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~
総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~
総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~黒 林檎
 
IoTSecJP(公開版)
IoTSecJP(公開版)IoTSecJP(公開版)
IoTSecJP(公開版)黒 林檎
 
自動販売機ハッキングLt
自動販売機ハッキングLt自動販売機ハッキングLt
自動販売機ハッキングLt黒 林檎
 
黒林檎春休み妄想日記[不正送金編]
黒林檎春休み妄想日記[不正送金編]黒林檎春休み妄想日記[不正送金編]
黒林檎春休み妄想日記[不正送金編]黒 林檎
 
ウイルス検知プログラミング
ウイルス検知プログラミングウイルス検知プログラミング
ウイルス検知プログラミング黒 林檎
 
[春期]私立プログラミングキャンプ
[春期]私立プログラミングキャンプ[春期]私立プログラミングキャンプ
[春期]私立プログラミングキャンプ黒 林檎
 
Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]
Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]
Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]黒 林檎
 
Virtual rootkit
Virtual rootkitVirtual rootkit
Virtual rootkit黒 林檎
 
スライド
スライドスライド
スライド黒 林檎
 

More from 黒 林檎 (11)

実践IoTペンテスト
実践IoTペンテスト 実践IoTペンテスト
実践IoTペンテスト
 
IoTSecJP
IoTSecJPIoTSecJP
IoTSecJP
 
総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~
総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~
総サイバーセキュリティザックさんの代打~ネットワークカメラのハック~
 
IoTSecJP(公開版)
IoTSecJP(公開版)IoTSecJP(公開版)
IoTSecJP(公開版)
 
自動販売機ハッキングLt
自動販売機ハッキングLt自動販売機ハッキングLt
自動販売機ハッキングLt
 
黒林檎春休み妄想日記[不正送金編]
黒林檎春休み妄想日記[不正送金編]黒林檎春休み妄想日記[不正送金編]
黒林檎春休み妄想日記[不正送金編]
 
ウイルス検知プログラミング
ウイルス検知プログラミングウイルス検知プログラミング
ウイルス検知プログラミング
 
[春期]私立プログラミングキャンプ
[春期]私立プログラミングキャンプ[春期]私立プログラミングキャンプ
[春期]私立プログラミングキャンプ
 
Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]
Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]
Searching for Black Spots in the Great Big Onion [Avkansai特別プレゼン]
 
Virtual rootkit
Virtual rootkitVirtual rootkit
Virtual rootkit
 
スライド
スライドスライド
スライド
 

Vagrant(私立キャンプlt)