18 comments on “How to create free pentest lab in VirtualBox.

  1. Pingback: How to enable DHCP server in VirtualBox. | kanishkas how to?

  2. Pingback: Links | Resources for Hacking

  3. Hi there! Good tutorials! Just want to ask if this can be done using a Windows XP virtual machine? Thanks! and More power!

  4. Pingback: How to enable DHCP server in VirtualBox. - Kanishkashowto is now Hackercool

  5. Hi, I did evey step but when I type ping 10.10.10.2 nothing happens. It just says PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data.

      • I dont know if I can. I tried print screen but it wont let me paste it on here. I took a picture on my iphone but I dont know how to put it on here either 🙁 The IP for kali is 10.10.10.1 and for metasploitable is 10.10.10.2

  6. Hi Kanishka,
    Installed Metasploitable and Kali with no problem. It is also setting ip addresses correctly as 10.10.10.2 and 10.10.10.1 with the ifconfig. Kali is however not able to ping Metasploitable and says destination host is unreachable. Not able to figure out the problem. Help?

  7. Hi Kanishka,
    In continuation of my earlier comment regarding inability to ping metasploitable from kali details are as under:
    root@kali:~# ifconfig
    eth0: flags=4099 mtu 1500
    inet 10.10.10.1 netmask 255.0.0.0 broadcast 10.255.255.255
    ether 08:00:27:fa:25:8e txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    lo: flags=73 mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10
    loop txqueuelen 0 (Local Loopback)
    RX packets 37 bytes 2912 (2.8 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 37 bytes 2912 (2.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    root@kali:~# ping 10.10.10.2
    PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data.
    From 10.10.10.1 icmp_seq=1 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=2 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=3 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=4 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=5 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=6 Destination Host Unreachable
    ^C
    — 10.10.10.2 ping statistics —
    7 packets transmitted, 0 received, +6 errors, 100% packet loss, time 6008ms
    pipe 3
    root@kali:~#
    metasploitable ip is correctly set to 10.10.10.2
    help to resolve?

    • @Sankaran, sorry for the delayed response. Change the options of network adapter from “internal network” to “NAT” for both the machines. You don’t need to set the IP address manually. Ping and tell me the result.

  8. Thanks.Sorry for delayed response as well. I kept trying and reinstalled VB and the two VMs.It is working fine with internal network settings. Thanks once again.

  9. hello,
    the above worked very well, I was just wondering if there was a way for it to be persistent? or would i have to retype this in every time i boot up the two machines?
    thanks in advance,
    michael

  10. I have the same problem

    root@kali:~# ping 10.10.10.2
    PING 10.10.10.2 (10.10.10.2) 56(84) bytes of data.
    From 10.10.10.1 icmp_seq=1 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=2 Destination Host Unreachable
    From 10.10.10.1 icmp_seq=3 Destination Host Unreachable
    ^C
    — 10.10.10.2 ping statistics —
    6 packets transmitted, 0 received, +3 errors, 100% packet loss, time 5015ms
    pipe 3

    • Hey Tony, you are getting this error becaus -e KALI could not find the Metasploitable. Are you sure both the machines are on the same network. Check once again. Check the IP add -ress by using ifconfig command. If you have followed the instructions correctly, there shou- ld not be a fuss.

Leave a Reply

Your email address will not be published. Required fields are marked *