This article is the continuation of Part 1 which is for the virtualbox. In case, you have missed it, here is the link: http://www.anonhack.in/2018/06/finding-the-ip-address-of-your-victim-in-your-hacking-lab-network/.
This article will help you find the IP address if you use VMware instead of VirtualBox. The commands are same and so does everything but just VMware.
Requirements:
- Kali OS [You can have any attacking machine but I am having Kali]
- Vulnerable machine [I am choosing Vulnix]
- VMware [Obviously!]
Let’s get on with it:
Bridged Mode in Vmware:
Before setting up the bridged mode for you Hacking Lab, You need to change the virtual Network Editor settings:
Go to Edit Tab-> Virtual Network Editor -> Click on Bridged mode -> Below select the adapter that you laptop uses and click OK. Like Below:
Then Change the Network Settings as Bridged for your Kali and vulnix as well. Like Below
Now both Kali and Vulnix will be on the same network, so let’s find the IP address of vulnix through Kali:
- Open Terminal
- Type ifconfig
- Now, we know our ip address and subnet that we are in, so we can sweep other machines in the same network using nmap or netdiscover.
- Finding vulnerable machine IP using Netdiscover:
Use the command: netdiscover -r 192.168.0.1/24
Explanation: -r flag is used to define the range that you want to sweep. Here our netmask is 255.255.255.0 and address is 192.168.0.109. So 24 bits are up. So we defined 192.168.0.1/24
- Nmap Command
Use the command: nmap 192.168.0.1/24
Explanation: we are sweeping the 255 hosts.
NAT Mode:
Before setting up the Nat mode for Hacking Lab, You need to change the virtual Network Editor settings:
Go to Edit Tab-> Virtual Network Editor -> Click on Nat mode -> click OK. Like Below:
Then Change the Network Settings as Bridged for your Kali and vulnix as well. Like Below
I have shown you above just for kali but you need to do the same to vulnix or vulnerable machine too.
Once you do this turn on both the machines and let’s find the address of vulnerable machine through kali:
- Open Terminal
- Type ifconfig
The NAT IP address is 192.168.6.128 for kali.
- Netdiscover in Kali
Command: netdiscover -r 192.168.6.1/24
Explanation: -r will define the range. - Nmap in kali
Command: nmap 192.168.6.1/24