VirtualBox

All posts tagged VirtualBox

NOTE : Kali Linux Rolling 2016.2 has been released. This guide works even for that too.

Good evening friends. I have seen that most of the people are still facing many problems while installing Kali Linux in Virtualbox. So today i brought the easiest method to install Kali linux in Virtualbox. It doesn’t involve  typing of any lengthy  commands. For this howto, I am installing Kali Linux v2.0 Sana in virtualbox version 5. This howto works for any host OS, from Windows XP to Windows 10. Just install the latest Virtualbox version for that operating system.

The makers of Kali Linux are providing prebuilt virtualbox images which are available for download here. First download the image.  It would be a compressed image. Now extract the contents of  the file at any location of your choice.

kaliv1

It would be a ova extension file as shown below.

kaliv2

Now open Virtualbox. Go to “File” and choose option “Import appliance”. Click on it.

kaliv3

As soon as you click on it, the below window will open.

kaliv4

Now, browse to the location of the OVA file we just downloaded. Click on “Next”.

kaliv5

You will see the below window.  Check out all the options shown. Change any options if required.

kaliv6

Make sure that the location where you are creating disk has enough space. Click on Import.

kaliv7

The process of importing will start as shown below.

kaliv8

It will take some time to process.  Just wait. As soon as the importing is over you will see the virtual machine  as shown below.

kaliv9

Power On the virtual machine.  After some system processes, you will be asked for the username. The username is “root”.

kaliv10

Next you will be prompted for password. The default password is “toor”.

kaliv11

If everything went well, you should see the interface as shown below. Go to full screen to see if its working. You are all good to go. See, this is the easiest way to install Kali Linux in virtualbox. Hope it was helpful. Please comment if you encounter any problem. I would be happy to solve it.

kaliv12

Hi everybody, the much awaited Kali Linux V2.0 Sana has been released. It can be downloaded from here. Another good news is there is a new version of Oracle VirtualBox named version 5.o available for download here. So let us see how to install Kali Linux V2.o Sana in Virtualbox 5.0.

Open VirtualBox and click on New virtual machine wizard. The below window will open. Give the name you like for the virtual machine. Assign type as “Linux” and version as “Debian(32-bit)”. Assign memory size of atleast 768MB and select the option “Create a virtual hard disk now”. Click on “Create”.

sana1

Choose the location where you want your virtual machine to be located. Keep the file size atleast 15GB. If you prefer to use your virtual machine in any other virtualization software like Vmware(VMDK) or others, choose appropriately else select VDI. Leave the storage to be “Dynamically allocated”. Click on “Create”.

sana2

Now go to Virtual machine settings, click on “system settings”, on the “processor” tab check the option “Enable PAE/NX” and click on “OK”.

sana2a

Now power on the virtual machine and browse to  the iso file you downloaded from the website. Click on “Start”.

sana3

When the Boot menu appears, select “Install”.

sana4

Select the language you prefer for installation process using “space” bar and hit on “Enter” after selecting.

sana5

Select your appropriate location.

sana6

Select the keymap you prefer.

sana7

Enter the hostname for your system. I named it as Kali. Hit on “Continue”.

sana8

Assign a domain name if you want. You can leave it blank if you want. Click on “Continue”.

sana9

Assign the password for root account.

sana10

Confirm the root password.

sana11

Select the partitioning option you prefer. If you are a newbie, select the first option as shown below.

sana12

Select the disk to format. Obviously you will have only one disk to format.

sana13

Select the partitioning scheme you prefer. If you are a new user, select the first option as recommended.

sana14

A summary of your selections is listed. Proceed to finish partitioning and write changes to the disk as shown below.

sana15

Select “Yes” to write changes to disk.

sana16

Select a network mirror if you want otherwise select “no”.

sana17

If you get stuck on a blue screen for a bit long time as shown below, don’t panic. Just wait for the system to finish its job.

sana18

Next, install the Grub bootloader when prompted to install.

sana19

Select the hard disk on which to install GRUB bootloader. Since we have not partitioned our hard disk, that would be second choice as shown below.

sana20

The system will start installing. Once the installation is finished as shown below, click on “Continue” to restart the system.

sana21

Once system reboots, enter username. The default username is “root”. Click on “Next”.

sana22

Next, enter the password. That would be the password you configured above. Hope you have not forgotten it.

sana23

The new Kali Linux V2.0 Sana will look like below. Congrats, you have successfully installed Kali Linux in virtualbox.  Next, let’s install Virtualbox guest additions.

sana24

Go to Devices and click on “Insert Guest Additions CD image” as shown below.

sana25

You will see a CD image on the Desktop as shown below. The system will automatically prompt you to run the CD.

sana26

But when you click on “Run”, you will get the error as shown below.

sana27

Now open a teminal. Type command “cd /media“. Next type “ls“. type “cd cdrom” and type “ls” once again as shown below.  The guest addition CD is mounted at the location cdrom and we just navigated to that location. Copy the highlighted file as shown below to the root directory by using command “cp VBoxLinuxAdditions.run /root”.

sana28

Now navigate to the root directory by typing command “cd /root” and type ls to see if the file has been successfully copied to the directory. Now change the permissions of the file by using command “chmod 755 VBoxLinuxAdditions.run” . Now let us execute the file by typing “./VBoxLinuxAdditions.run

sana29

The file will start executing as shown below. Once it finishes execution, restart the system.

sana30

If everything goes well, guest additions will be installed successfully.

sana31

If you face any  problem, please leave comments below.

Here’s a video  version  how to install Kali Linux V2.0 Sana in virtualbox.


Matriux Krypton is a pen testing distribution based on Debian. It consists of almost 300 security tools for ethical hacking categorized as arsenals. It has a category for data recovery which is not prevalent in other penetration testing distros. Today we are going to see how to install Matriux Krypton Ec-Centric in Oracle Virtual box. It can be downloaded from here. Open Virtualbox and click on “New virtual machine”. On the popup window, give the name as Matriux ( in fact any name you like ). Select operating system as “Linux” and version as “Ubuntu”. Click on “Next”.

matriux1

 

Select the appropriate memory you want to assign to the virtual machine and click on “Next”.

matriux2

 

Select the option “create a virtual hard drive file” and click on “Create”.

matriux3

 

Select Hard drive file type as VDI. Click on “Next”.

matriux4

 

Choose appropriate storage option and click on “Next”.

matriux5

 

Set your virtual hard disk size appropriately but I suggest you to keep it above 8 GB. Click on “Create”.

matriux6

 

Select the location of the iso file and click on “Start”.

matriux7

Select the option “Live”  and hit Enter.

matriux8

Log into account matriux. The default password is  “toor“.

matriux9

 If everything went well, your system should look like this.

matriux10

 Before running the Matriux disk Installer, we need to perform some operations. Go to “System>Administration>Gparted” as shown below.

matriux11

 Enter the administrative password as “toor”. Click on “OK”.

matriux12

 In the gparted window, click on “Create Partition table”.

matriux13

 When a warning is shown, click on “Apply”.

matriux14

 Right click on the unallocated hard disk and select “New” as shown below.

matriux15

 Change the file system  to ext3 and click on “Add”.

matriux16

We can see our “New Partition” ready to be created. Click on the “tick mark with blue background”.

matriux17

 We can see our partition created as below.

matriux18

 Close the window and click on “Matriux Disk Installer” we saw above. When the window opens as below, click on “Yes”.

matriux19

 Choose the partition we created( i.e /dev/sda1) and click on “OK”.

matriux20

Click on “OK”.

matriux21

Click on “OK”.

matriux22

Create a personal account login name.

matriux23

Choose the password for you personal account. Click on “OK”.

matriux24

Choose the root account password. Click on “OK”.

matriux25

Select the appropriate locale as en_US. Click on “OK”.

matriux26

If everything goes well, we will get a window as shown below. Click on “Yes”.

matriux27

 We will get the below message after successful installation.  Click on “Yes” to reboot your system and you are ready to go.

matriux28

matriux29

Hope this was helpful.

Good evening friends. We have seen how to create a virtual pentest lab both in Oracle VirtualBox (see here) and Vmware Workstation(see here). Although both penetration testing labs  were almost similar, there is a small difference between them . As the title of this howto already implies it is the absence of DHCP server in the pentest lab we created using Virtualbox. VirtualBox provides a DHCP server but it can’t be turned on using the GUI feature unlike Vmware Workstation. So let’s see how to enable DHCP server in Virtualbox networks. I am going to assign DHCP server to my pentest lab I created above. I will assume that  virtualbox is installed on Windows. Open CMD and navigate to the directory where  Virtualbox is installed. By default it will be “C:Program Files OracleVirtualBox”. Type the command “vboxmanage dhcpserver add –ip 10.10.10.1 –netmask 255.0.0.0 –lowerip 10.10.10.2 –upperip 10.10.10.10 –netname pentestlab”. Hit Enter.

vd1

 

In the above command, “vboxmanage dhcpserver  add –ip 10.10.10.1” starts a DHCP server with IP address 10.10.10.1 . The “–netmask 255.0.0.0″ assigns subnet mask for the network. The “–lowerip” and “–upperip” options assign a lower ip address and upper ip address respectively.   The “–enable” option enables the DHCP server we just created. The “–netname” option assigns a name to the network. Now we have successfully created an internal network named pentestlab with its own DHCP server. Now change the network adapter settings of the attacker machine ( Kali Linux ) to pentestlab.

vd2

 

Similarly change the network settings of the victim machine.

vd3

 

Now start the attacker machine (Kali Linux) to see if the IP address is automatically assigned. If the IP address has not been assigned, disable the adapter using command “ifdown eth0″ and re enable it by typing command “ifup eth0″. Now check if the IP address has been assigned or not by typing command “ifconfig”.

vd4

 

Similarly check on the victim machine.

vd5

 

We can see that the IP addresses have been automatically assigned successfully starting from the range of 10.10.10.2. Hope this was helpful.

Good evening everybody. Sometime back, I wrote an article on how to set up a virtual penetration testing lab using Vmware Workstation. But Vmware Workstation is a commercial product.

Today I am going to show you how to create a pentest lab in VirtualBox absolutely free of cost. I hope this tutorial will be helpful for many beginners into cyber security domain.

What do we need?

1. Oracle VirtualBox. (Download)

2. Kali Linux. (Download)

3. Metasploitable 2. (Download)

Oracle VirtualBox is the virtualization software we will be using to create our lab. We will be using Kali Linux as the attacker machine and Metasploitable 2 as the victim machine. Install Kali Linux and Metasploitable 2 in VirtualBox.

See how to install Kali Linux in VirtualBox.

See how to install Metasploitable in VirtualBox.

pentestlab1

 

Select Kali Linux, Go to settings > network. Enable “network adapter 1″. Set the “Attached to” option to “internal network”. Set the name of the network adapter to “intnet”. Click on “OK” to save the settings.

pentestlab2

 

Do the same for Metasploitable virtual machine.

pentestlab3

 

Power on the metasploitable VM. Log into the system. Default username and password are “msfadmin”.

pentestlab4

 

Type the command “ifconfig” to see the IP addresses of interfaces.

pentestlab5

 

The ‘lo’ interface is the loopback. Now we are going to set the IP address on the interface “eth0”. Type the command “sudo ifconfig eth0 10.10.10.2 netmask 255.0.0.0 up”. The sudo password is “msfadmin. Verify that the IP address is set by typing command “ifconfig”.

pentestlab6

 

Power on Kali Linux. In the terminal, type command “ifconfig eth0 10.10.10.1 netmask 255.0.0.0 up”. Verify if the IP address is set by typing command “ifconfig”.

pentestlab7

 

Test whether this system can communicate with victim system by pinging the victim machine as shown below.

pentestlab8

 

The connection is successful. Our penetration testing lab is ready. Happy practising.


Today I’m gonna show you how to install metasploitable in VirtualBox. Metasploitable is a Linux virtual machine made vulnerable intentionally for testing purposes. This virtual machine can be used to conduct security training, test security tools, and practice common penetration testing techniques.  For this i am going to use Metasploitable 2 which can be downloaded from here. After downloading the zip archive, extract the files into a folder. The file contents look like below.

metasploitable1

Open VirtualBox and click on “New Virtual machine wizard”. Type the name of your choice. I am using ‘Metasploitable-2‘. Choose ‘Type’ as Linux and ‘version’ as Ubuntu. Click on “Next”.

metasploitable2

Choose the memory size appropriate to the availability of RAM on your host machine although 512MB is more than enough. Click on “Next”.

metasploitable3

In the hard drive creation window, select option “Use an existing virtual hard drive”, browse to the folder where we have extracted our zip files and select the ‘vmdk’ file available. Click on “Create”.

metasploitable4

Then you are automatically booted into the metasploitable OS. The default username and password are “msfadmin”.

metasploitable5

NOTE : Kali Linux version 2017.1 has been released and I decided to update this howto. Ofcourse,  this guide also works with previous releases of Kali Linux. 

Hi Friends. as you already know, the latest version of Kali, Kali rolling edition 2017.1 has been released. The rolling edition of Kali Linux gives users the best of all worlds – the stability of Debian, together with the latest versions of the many outstanding penetration testing tools created and shared by the information security community. The best feature I like in this version is constantly updated tools. Now let us see how to install this latest version of Kali linux in virtualbox and I assure you, this will be the easiest guide.

For this howto, I am using the latest version of Oracle Virtualbox, i.e version 5.1.22. Ever since Sana has been released, the makers of Kali Linux have also released Pre-built virtual images for virtualbox and Vmware. We will use that virtualbox image in this howto. Go here and download the Pre-built virtualbox image. They are as shown below (Download the latest version).

sanarvb0

This howto is using the Kali Linux 32bit VBox PAE . Your downloaded contents should look like below. As you can see, we have an ova file.

 

Now open Virtualbox and click on File>Import Appliance as shown below.

sanarvb3

A window like below will open.

sanarvb4

Now browse to the location of the ova file we just downloaded as shown below and  click on Next.

 

The system will present you a summary of settings used for  thsi VM. If you want to make any changes, change and click on Import.

The importing process will start as shown below. It will take some time, but it will be worth the wait.

 

After import is completed, a new virtual machine is automatically created as shown below.

 

Power on the machine. As the virtual machine powers up, it will prompt for username and password. The default username is “root” and password is “toor”.

Given below is our Kali Linux rolling 2017.1 successfully installed in Virtualbox. No need of installing guest additions. If you face any problems during installation, please comment. I will be happy to help you.

sanarvb12

 

 

 

One day, I was intently searching for a method to emulate a router or switch in Oracle VirtualBox  After a long search, I didn’t find a method but I found  another virtualizing software called GNS3.  GNS3 is a network emulation software which can be really helpful to someone preparing for CCNA,CCNP,CCIE,JNCIA,JNCIS and JNCIE. It can emulate  Cisco IOS’s, Junos routers and also  complex networks functioning as close as possible to the real networks without needing the network hardware like routers and switches. The best part of it is that it is open source. However we will have to download Cisco IOS and Junos separately.

GNS3 is available for Windows,Linux and MacOS X. In this article, I am going to show you how to install GNS3 in Windows step by step.

Download the software suitable for your Windows from here. The all-in-one download is recommended.

Click on the executable file downloaded. The welcome message pops up.Click on “Next”.

w1

Then the License Agreement is displayed.Click on “I Agree”.

w2

 

Then you are asked to choose the start menu folder in which your  program’s shortcuts will be stored. If you choose the default folder, click “Next”. You can also create a new folder if you want.

w3

 

Then you can choose which components you want to install from the components shown. I suggest you to choose all the options. Click on “Next”.

w4

 

Then you are asked to choose where you want to install your program. you can choose a different folder if you want but the default folder should be OK. Click on “Install”.

w5

 

Then the WinPcap installation wizard starts. WinPcap is an opensource library for packet capture and network analysis for Win32 platforms. Click on “Next”.

w6

 

Click on “Next”.

w7

 

On the WinPcap License Agreement, click on “I Agree”.

w8

 

On the review WinPcap installation options, Click on “Install”.

w9

 

The installation starts.

w10

 

After the installation is finished, Click on “Finish”.

w11

 

Then the  Wireshark installation wizard” opens (only if you selected the component for installation above). Wireshark is a network sniffer. Click on “Next”.

w12

 

You are shown the License Agreement of Wireshark. Click on “I Agree”.

w13

 

Then you are prompted to select the components of Wireshark you want to install. Choose all and Click on “Next”.

w14

 

Then you are prompted to select which shortcuts you want to create. The choice is yours. Click on “Next”.

w15

 

 

Then choose the directory in which you want to install Wireshark and click on “Next”.

w16

 

Then Wireshark starts installing.

w17

 

After the installation is completed, Click on “Next”.

w18

 

Then Completion of Wireshark installation Wizard appears. You are prompted to choose if you want to run Wireshark. Don’t make any selection. Click on “Finish”.

w19

 

Then the installation of GNS3 starts.

w20

 

After the installation is completed, click on “Next”.

w21

 

Completion of GNS3 wizard appears. Click on “Finish”.

w22

 

Start GNS3. The following window appears when we start GNS3 for the first time. Click on 1(the space enclosed in a red box).

w23

 

This is to check whether path to Dynamips and the path to its working directory are valid or not. Dynamips is the core program that allows IOS simulation.Click “OK”.

w24

 

Let’s go to Step 2. Here we configure path to our IOS image directory.We have to store all our images in this directory.Make changes to the path if you want otherwise click on “OK”.

w25

 

Step 3: In this step, we will add one or more uncompressed IOS images of a router or switch. As already said, IOS images should be downloaded separately due to license agreements.

w26

Browse to the folder where your IOS image is.I am adding a CISCO c3700 router for example. Click on Save and your window should like this.

w27

 

Click on “Close” and your GNS3  windows appears.

w28

 

In the Node Types section, click on C700 (the type we just added)  and drag it to the right to see if our router has been added or not. If it is like below, then your installation is success. Happy practising.

w29