Introduction to the experiment:
kali integrates all the best penetration testing tools in the world!
I: Installation on VMware
Here is only a detailed description of the installation of kali in VMware, the installation on a USB flash drive and a physical machine will not be explained in detail.
existkali official websiteDownload kali image iso file
Once downloaded, create a new virtual machine
Select the previously downloaded image file
Selecting a Linux system
Selecting Individual Files
Setup Configuration
Setting with the keyboard
After the installation is complete, enter the account and password that you set up previously.
II: Installing VMware Tools
In order to do things like copy and paste between the physical and virtual machines, we need to install the VMware Tools software.
Click Install VMware Tools
Successful desktop appears VMware Tools file, under the pop-up installation prompts
Note: If this step is grayed out, then turn off the computer and change the settings
Launch it and you'll see the problem is solved
There are two ways to install VMware Tools: command line and graphical interface.
command-line method
At this point we get a virtual machine with no root password set.
In order to gain root access
Let's set the password first: sudo passwd root
enter a password
Go to root again: su root
enter a password
Note that if you keep getting a sorry message when setting your password, try again
Then it's too old and needs to be updated.sudo apt-get update
sudo apt-get install make
sudo apt-get install gcc
can immediately (do sth)
1. Create a mount point
Use the mount command to mount the optical drive to the mount point
Entering the mount point
See that VMwareTools is already in the folder
2. Use the tar decompression command to open the header of the filename with tab-completion -C uppercase
Decompression command (tar) Parameters (zxvf)
The name of the file to unzip (VMwareTools-10.3.)
-C places the extracted files in the specified folder.
Specified folder (/usr)
Locate the unzipped file
Type a part and tab to complete it
3. Installation files
./
Enter all.
fulfillment
Graphical interface method
1. Double-click the installation package
2. Copy and paste all the files in it to the folder under mnt.
3. Extract the zip file
4. Open the command line to the path of VMware-tools-distrib
5. Use the install command again./
View system version and kernel
cat /etc/issue #View operating system version
uname -a #View the operating system kernel
III: Upgrading the kali operating system
When we use kali, we need to regularly update the
Preparation: Configuring the Software Update Source
why?
Because the update source that comes with kali is slow to download domestically, we have to change the update source to a domestic one in the configuration file
Under root privileges
Method 1. Open the update source configuration file with the vi command:vi /etc/apt/
Method 2. Open it with leafpad notepad:leafpad /etc/apt/
Press the letter i to enter edit
Comment out the official update source by adding "#" at the beginning of the line
Add source for CSU, AliCloud: wq save exit
#CSU Source
deb /kali kali-rolling main non-free contrib
deb /kali kali-rolling main contrib non-free
deb-src /kali kali-rolling main contrib non-free
deb /kali-security kali-current/updates main contrib non-free
deb-src /kali-security kali-current/updates main contrib non-free
#AliCloudSource
deb /kali sana main non-free contrib
deb /kali-security/ sana/updates main contrib non-free
deb-src /kali-security/ sana/updates main contrib non-free
View operating system version, kernel
Command Line Upgrade
apt-get update
Getting a list of package updates from the server
apt-get upgrade
Update the software to the latest versionapt-get dist-upgrade
Update software and install dependent packages