Help us understand the problem. What is going on with this article?

vagrant で KaliLinuxを使ってみる

More than 5 years have passed since last update.

vagrant で KaliLinuxを使ってみる

ペネトレーションテスト用のOSのKaliLinuxをvagrantで起動できるようにして
テストする時だけ利用する

まずはvagrantのboxを追加する

$ vagrant box add kali http://ftp.sliim-projects.eu/boxes/kali-linux-1.0-amd64.box
Downloading box from URL: http://ftp.sliim-projects.eu/boxes/kali-linux-1.0-amd64.box
Extracting box...te: 1848k/s, Estimated time remaining: 0:00:01)
Successfully added box 'kali' with provider 'virtualbox'!

適当なディレクトリを作成してそこで初期化してVagrantfileを作る

$ mkdir kali
$ cd kali
$ vagrant init kali
A `Vagrantfile` has been placed in this directory. You are now
ready to `vagrant up` your first virtual environment! Please read
the comments in the Vagrantfile as well as documentation on
`vagrantup.com` for more information on using Vagrant.

*ここでvagrant upしてvagrant ssh しようとしましたが、passwordがわかりませんでした。

Vagrantfileを修正してGUIで起動する
(以下の設定のコメントを外す)

 config.vm.provider :virtualbox do |vb|
   # Don't boot with headless mode
   vb.gui = true

   # Use VBoxManage to customize the VM. For example to change memory:
   vb.customize ["modifyvm", :id, "--memory", "1024"]
 end

vagrant upしてvirturlboxのGUIからrootでログイン
(初期パスワードは「toor」)

※初期のキーボードレイアウトがフランスになっていたので、
英語に変更してvagrantユーザのパスワードを変更しました。

# passwd vagrant

これでとりあえず使えるようになりましたので

$ sudo apt-get update
$ sudo apt-get upgrade 

アップデートを実施しておきます。

FSMS
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした