06
- November
2020
Posted By : Michele Pariani
Efficient Kali and Kioptrix setup on VirtualBox for scanning and enumeration

This blog post shows how to set-up Kali and Kioptrix on VirtualBox for scanning and enumeration. I feel that this post is necessary, because the many how-to instructions on the Internet about this topic either don’t work or are unnecessarily complex.

I assume that you have already:

Create a new virtual machine for Kioptrix Level 1

Open VirtualBox, click New and then Expert Mode.
Enter the VM name, select Linux as Type, 2.2 as Version, and 256 MB for memory size. Select “Use an existing virtual hard disk file” and select the .vmdk file from the folder you unzipped before.
Disable USB controller and audio.
Start the Kioptrix VM and you should see this welcome screen. Now power off this machine before beginning with the next step.

Modify default network settings

Select File > Preferences > Network. Then click on the icon on the right with the green plus in order to add a new NAT Network.
Right click on the new NAT Network. Here I modified the CIDR to 192.168.1.0/24 (default was 10.0.2.0/24). Click OK two times.
Select the Kali VM, click on Settings > Network. Change “Attached to” from “NAT” to “NAT Network”. Under “Name” select the NAT Network that you created in the previous step. Select “Advanced” and under “Promiscuous mode” select “Allow All”.
Select the Kioptrix VM, click on Settings > Network. Change “Attached to” from “NAT” to “NAT Network”. Under “Name” select the NAT Network that you created in the previous step. Select “Advanced” and under “Promiscuous mode” select “Allow All”.
Start both VMs. In Kali, type ifconfig and note down your IPv4. Login into Kioptrix with username=john and password=TwoCows2 and ping 8.8.8.8. The IPv4 for this machine should be different from the one for the Kali machine.

Discover Kioptrix from Kali with netdiscover

Now your Kali VM should be able to discover your Kioptrix machine. Type “netdiscover -r <ip-range>” where <ip-range> is the network CIDR.

I hope you liked this post. If you have any question, feel free to leave a comment in the comment section. Never stop learning!

Leave a Reply