Kali Linux is a Debian based penetration testing distribution created by Offensive Security for the purpose of making it easier to carry out penetration tests or security audits by having more than 600 tools easily available.
It is fully customisable and runs on a number of different devices, it was covered in a previous tutorial when I installed it from source in order to get wireless injection working and received a lot of interest.
This team has been around for some time and had previously created and maintained Backtrack Linux, Kali Linux however is a complete overhaul of the OS so that it can run on as many devices as possible and is fully customisable.
Let’s start and get it installed!
Download it from here and take a sneak preview of Kali 2.0 which I am very excited about, I see a sneak preview of the reaver Pixie attack towards the end too which looks fast!
Give your machine a name, select the type ‘Linux’ and the version ‘Linux 2.6 / 3.x (64Bit)’ or the version of your own architecture if it is 32 Bit for example and then click ‘Next’
Allocate a chunk of memory to the system and click ‘Next’, 2 or 3GB’s is fine
Create a virtual hard drive for Kali by clicking ‘Create’
Click ‘Next’ to continue and create a VDI image
Select ‘Dynamically allocated’ and click ‘Next’ to continue
Allocate some hard drive space to Kali and give it a nice chunk as this system may fill up quicker than you expected for some things. Click ‘Create’ to continue
Next navigate to settings and change System first by removing the floppy and moving the CD/DVD to the top and the Hard Disk second from the top
Select the ISO on you hard drive
Now we are going to select NAT and click on ‘OK’ for the initial install so that we can update and upgrade the system to the latest version of everything before changing it into internal only mode for testing in the lab
Now it’s time to startup the machine, select ‘Graphical install’ at the boot menu to continue
Select your language to continue
Select your country
Select your keyboard layout
Wait for the loading to finish
Give your system a name
Leave the domain blank if you don’t have one and click ‘Continue’
Enter in the password you want to use for root
Select ‘Guided – use entire disk’ and continue
Yes you are sure you want to erase everything and continue so just click on ‘Continue’
Select ‘All files in one partition’ and click on ‘Continue’
Click on ‘Continue’ to finish off the partitioning
Once again select ‘Yes’ and click ‘Continue’ to erase and install
Next comes copying files to disk and installing the system once the partitioning has finished
Select ‘No’ to not use a mirror and click ‘Continue’
Wait for a little bit while and then select ‘Yes’ to install the GRUB boot loader to the hard disk
You’re nearly finished
When it’s finished you will see the following screen, select ‘Continue’ to finish the install
Don’t worry if it looks like this for a while
Finally you get to the login screen. Enter the username ‘root’ and your password entered earlier to login.
Now you have probably noticed the screen is not in full screen and you have to move a slider around but we can fix that by installing ‘VirtualBox Guest Additons’ but first we need to update the system first so run the following
apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
The above commands will string together the update and upgrading of the system to the latest version and accept the downloads along the way with a ‘y’ for yes
Let the system work away for a while and let it upgrade the system, feel free to get up and walk around and come back to it again in a bit as this may take some time depending on your Internet speed and memory allocated to the system
Once finished upgrading it will look like the following below without any errors
Next select and install VirtualBox Guest additions by selecting devices from the VirtualBox menu
Next run the following
cp /media/cd-rom/VBoxLinuxAdditions.run /root/
chmod 755 /root/VBoxLinuxAdditions.run
As you can see the above has failed as we need to update the headers to so let’s do that and get full screen!
Open the sources.list file in /etc/apt/
Add in the following line
After saving the file run an update with
Updating the Kali headers works now
apt-get install -y linux-headers-$(uname -r)
And finishes without error
VirtualBox guest additions will now also complete
reboot and then you will get full screen
Full screen is great as it will make your life a lot easier in the long run
Take a look around and see what you can do so far with the lab and remember to put it back into internal NIC mode before you do!