as we all know, in order to infiltrate the intranet, you have to be in that intranet.
But when you install Kali in VMware, most users do not choose bridging mode for convenience, but instead choose to use IP networks shared with native
of course, this will be able to surf the Internet, but your virtual machine does not actually get the intranet IP.
If you do not infiltrate the intranet operation, you can ignore this post!
nonsense not much to say, the tutorial begins:
0x00: First you need to be in your nativeipconfigA moment:
<ignore_js_op>
qq:1258496116
As you can see, my subnet Gateway is: 192.168.1.1 (some people are 192.168.0.1)
So that is to say, my intranet IP segment is 192.168.1.1-192.168.1.255 (with the above bracket: Some people are 192.168.0.1-some people are 192.168.0.255)
The subnet mask is: 255.255.255.0 here is very similar.
Say the intranet IP, if your gateway is 192.168.1.1, then your intranet IP is 192.168.1.XXX. The first three like, the last one is different, one machine assigns a number.
remember the three data in the red box above.
0x01: Then kali into the virtual machine.
ifconifg-aView all network cards
<ignore_js_op>
Note here, if your machine does not enter the intranet, then my red circle of the display is not as in 0x00 written in the intranet IP format.
Before I solved it, he showed 192.168.222.1. This is obviously not an intranet IP,
Intranet IP is in your router re-assigned a machine, there must be an independent IP. This is a point of attention. Really do not understand Baidu a bit.
0x02: Formally start configuration
Open Terminal, enter:
Vi/etc/network/interfaces #意思是用vim打开文件, and then edit the IP address
<ignore_js_op>
qq:1258496116
The yellow part is the content you need to add;
Line FourthYou want to set it up.Intranet IP,
If your gateway is 192.168.1.1, then you need to set 192.168.1.XXX, the last number recommended 100-115 Intermediate
If it is 192.168.0.1, then you need to set 192.168.0.XXX, the last number recommended 100-115 Middle
Line FifthIt's yours.Subnet Mask, for details see0x00
Line SixthIt's yours.Network Address,
The gateway is 192.168.1.1 fill 192.168.1.0, the gateway is 192.168.0.1 fill 192.168.0.0
Line SeventhIsBroadcast Address,
The gateway is 192.168.1.1 fill 192.168.1.255, the gateway is 192.168.0.1 fill 192.168.0.255
Line EighthIsGateway addressDon't you have to explain this? See details0x00
Once you're done, clickESCAnd thenshift+;Enter Command mode, enterWqEnter exit
0x03: Restart the NIC
Under Terminal, enter:/etc/init.d/networking restart return, restart NIC
After this step, the upper-right corner of the Kali prompts the network to be disconnected and displays a redX。 If it's been 1 minutes,XNot yet removed, please reboot and prepare for failure.
0x04: Set the network card to be automatically enabled after system startup
Under Terminal, enter: UPDATE-RC.D networking defaults carriage return, set setting to automatically enable NIC after system startup
0x05: Finished.
If using the above steps has not been successful, check to see if your VMware is bridging mode.
<ignore_js_op>
Also check:
<ignore_js_op>
With some good update source, you configure the network, you can update.
Terminal input: Leafpad/etc/apt/sources.list return
Then add the following faster sources:
- Deb Http://http.kali.org/kali Kali main Non-free contrib
- Deb-src Http://http.kali.org/kali Kali main Non-free contrib
- Deb http://security.kali.org/kali-security kali/updates main contrib Non-free
- Deb Http://ftp.sjtu.edu.cn/debian wheezy main Non-free contrib
- DEB-SRC Http://ftp.sjtu.edu.cn/debian wheezy main Non-free contrib
- Deb Http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main Non-free contrib
- DEB-SRC Http://ftp.sjtu.edu.cn/debian wheezy-proposed-updates main Non-free contrib
- Deb http://ftp.sjtu.edu.cn/debian-security wheezy/updates main Non-free contrib
- DEB-SRC http://ftp.sjtu.edu.cn/debian-security wheezy/updates main Non-free contrib
- Deb Http://mirrors.163.com/debian wheezy main Non-free contrib
- DEB-SRC Http://mirrors.163.com/debian wheezy main Non-free contrib
- Deb Http://mirrors.163.com/debian wheezy-proposed-updates main Non-free contrib
- DEB-SRC Http://mirrors.163.com/debian wheezy-proposed-updates main Non-free contrib
- DEB-SRC http://mirrors.163.com/debian-security wheezy/updates main Non-free contrib
- Deb http://mirrors.163.com/debian-security wheezy/updates main Non-free contrib
Copy Code
After saving the terminal input: Apt-get update && apt-get Upgrade Enter
Wait for it ~ ~ ~
If it doesn't work, check your character.
KALI&BT cannot access the Internet or get an intranet IP after installation.