在virtualbox使用metasploitable

So this is not a typical Back Track post, but one on converting the Metasploitable VMware image to one that will work with Virtualbox. There are other ways of converting .vmdk files to .vdi ones but none of them seemed to work for me. This was all done on an Ubuntu machine. You could do the same on others though. If you don’t have or know about metasploitable check the above link. So grab a copy here and then extract the zip archive.

Go to a shell and then grab qemu, this is another virtualization product but we don’t care about it, once we are done you can remove it.

———————————–CODE—————————————

———————————–CODE—————————————

Once this is done run the following commands.
NOTE: This may take some time to complete.

———————————–CODE—————————————

———————————–CODE————————————-

This will convert the .vmdk to a binary then we will convert the .bin to a Virtualbox .vdi file.

———————————–CODE————————————-

Sun VirtualBox Command Line Management Interface Version 3.0.14
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
Converting from raw image file=”Metasploitable.bin” to file=”Metasploitable.vdi”…
Creating dynamic image with size 8589934592 bytes (8192MB)…
———————————–CODE————————————-

Once this is finished you are now ready to use Metasploitable in Virtualbox.

So go ahead and set up a new machine. You can find many guides on doing this on the net.
But basically you just need to point Virtualbox to the newly created Metasploitable.vdi file.

From Virtual Box Metasploitable

You may want to edit some of the settings. For my setup I had to ensure that the Extended Features Enable PAE/NX box was checked. This is located under Settings>System>Processor. The first time I booted without this it did not work.
From Virtual Box Metasploitable
It might also be a good idea to ensure that this machine is configured for “Host Only” networking so that it is not facing the internet.

So there you have it.

From Virtual Box Metasploitable
That’s pretty much it. Have fun.

成功图:

link:http://archangelamael.blogspot.com/2010/07/converting-metasploitable-for.html

91ri.org:我自己也是亲自动手做的,感觉不错,有同样需求的也一起动手做一个吧。对了 记得要起用虚拟机设置中 设置-系统-处理器-拓展特性的 PAE/NX 选项

提供一个视频:http://www.youtube.com/watch?v=jyybuIJd5wc 自己翻 你懂得

本文由网络安全攻防研究室(www.91ri.org)信息安全小组收集整理。