Location>code7788 >text

kali installation and upgrade

Popularity:895 ℃/2024-09-30 18:58:15

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

image

Once downloaded, create a new virtual machine

image
Select the previously downloaded image file
image

Selecting a Linux system
image
Selecting Individual Files
image

Setup Configuration

Setting with the keyboard
image
image
After the installation is complete, enter the account and password that you set up previously.
image

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

image
Successful desktop appears VMware Tools file, under the pop-up installation prompts
image

Note: If this step is grayed out, then turn off the computer and change the settings
image
image
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
image
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
image

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)
image
Locate the unzipped file
image
Type a part and tab to complete it

3. Installation files

./
image
Enter all.
image
fulfillment

Graphical interface method

1. Double-click the installation package
image
2. Copy and paste all the files in it to the folder under mnt.
image
3. Extract the zip file
image
4. Open the command line to the path of VMware-tools-distrib
image
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
image

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
image

#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
image

Command Line Upgrade

apt-get updateGetting a list of package updates from the server
image

apt-get upgradeUpdate the software to the latest version
apt-get dist-upgradeUpdate software and install dependent packages
image

After the upgrade, revisit the OS version and kernel to compare it to before the upgrade

image