Kali Installation on VMware Workstation (Tips and Tricks) (Docker, Wireless, )
Kali Linux is a Debian-based Linux distribution designed for digital forensics and penetration testing.Maintained and funded by Offensive Security .
Kali Linux has about 600 built-inPenetration testing programs (tools), including Armitage (graphical network attack management tool), Nmap (port scanning tool), Wireshark (packet analyzer), Metasploit (penetration testing framework), John the Ripper ( password cracker ), sqlmap (automated SQL injection and database takeover tool), Aircrack-ng (software package for penetration testing wireless LANs), Burp suite, and OWASP ZAP network application security scanner, etc.
Kali Resources
1. Kali official download: [Click to go]
2. Kali mobile version download: [Click to go]
3. Kali Virtual Machine Edition: [Click to go]
3. Virtual machine software download: [VMware Download Link], [VirtualBox]
All different versions is available at Get Kali | Kali Linux
Installation in VMware Workstation
1 Download Pre-built VMs from Kali.org website
https://www.kali.org/get-kali/#kali-virtual-machines
It has different downloading links for VMware, VirtualBox, Hyper-V, QEMU
2 Extract it
It is 7z file and size is about 3.3GB. After extract it, it will 13.8GB.
3 Use VMware Workstation open .vmx file in the extracted folder
4 Power on the machine then log in with kali / kali this credential
- To grant the new user administrative privileges, use the command
sudo usermod -aG sudo <username>. - This command adds the user to the "sudo" group, allowing them to use the
sudocommand.
Kali VM Connects to USB Wifi Adapter
After powered on your Kali VM, and logged in with kali / kali this credential, you will see following screen.
By default, Kali Virtual Machine settings already has USB Controller set to Present.
At the bottom of VM's window, the status bar should show you a grey USB icon. You can move your mouse over, which will show you a usb WIFI adapter there if you have one connecting to your host machine.
Click the grey usb icon, you will have an option to connect to it, but it will disconnect from the Host.
Now you can check your VM which usb device you are connecting to from the terminal.
┌──(root㉿kali)-[~] └─# lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub Bus 002 Device 004: ID 0e0f:0006 VMware, Inc. Virtual Keyboard ┌──(root㉿kali)-[~] └─#
Ifconfig command should be able to show you the ip address after you connected to your home wifi.
Wifi Related Command
Airmon-ng basic Commands:
- sudo -i : Administrator privileges
- ifconfig: View current network card information
- airmon-ng: Check if the network card supports monitoring function
- airmon-ng start wlan0 : Activate the monitoring mode of the wireless network card
- airodump-ng wlan0: Scan the WiFi signal in the current surrounding environment
Packet capture command: (capturing raw 802.11 frames)
- airodump-ng wlan0
- bssid
- channel #
- airodump-ng -c 11 –bssid 10:12:B1:56:3F:B2 -w /home/netsec/wifi/handshake wlan0
- passive waiting the handshake packets.
ACK death attack:
- aireplay-ng -0 10 -a 10:12:B1:56:3F:B2 -c E0:12:EA:E8:72:21 wlan0
Brute force command:
- aircrack-ng -w /home/lingdu/Desktop/password.txt -b 10:12:B1:56:3F:B2 /home/netsec/tmp/handshake-0*.cap
Commonly used WPA/WPA2 password dictionary + enhanced version :
- Github dictionary download: [ click to download ]
- Enhanced version (from the Internet): [ Click to download ]
Other commands:
- route -n
- traceroute 1.1.1.1
- ping 1.1.1.1
Change Language from English to Chinese
By default, the language of the Kali system is English. If you need to set the Kali system to Chinese, you can do it by following the steps below:
1. Open the terminal and update the system package list:
2. Install the Chinese language pack:
3. Generate Chinese language environment (taking zh_CN.UTF-8 as an example):
In the interface that appears, select zh_CN.UTF-8, usually by selecting it with a space.
![Image [2] - Kali system download and installation tutorial! Supports PC, virtual machine, mobile phone, cloud host, etc., a must-have for security personnel and hackers! -Zero Blog](https://www.techfm.club/wp-content/themes/CorePress/static/img/loading.gif)
After confirmation, you can see zh_CN.UTF-8 in the interface that appears. Right-click and select OK to confirm, as shown in the figure below.
![Image [3] - Kali system download and installation tutorial! Supports PC, virtual machine, mobile phone, cloud host, etc., a must-have for security personnel and hackers! - Zero Degree Blog](https://www.techfm.club/wp-content/themes/CorePress/static/img/loading.gif)
4. Update system locale settings:
5. Apply Chinese settings:
6. Re-login or restart Kali Linux for the configuration to take effect.
Install Docker on Kali
To install Docker on Kali you need to remember that there is already a package named “docker”, therefore Docker has to be installed under a different name. If you install docker you will not end up with the container version. The version we will be installing is named docker.io. All commands are the same however, so running docker on the command line will be the appropriate command:
kali@kali:~$ sudo apt update kali@kali:~$ kali@kali:~$ sudo apt install -y docker.io kali@kali:~$ kali@kali:~$ sudo systemctl enable docker --now kali@kali:~$ kali@kali:~$ docker kali@kali:~$
You can now get started with using docker, with sudo. If you want to add yourself to the docker group to use docker without sudo, an additional step is needed:
kali@kali:~$ sudo usermod -aG docker $USER kali@kali:~$
The final thing is to logout and in again.
┌──(root㉿kali)-[~] └─# apt install -y docker-compose
Troubleshooting
PS C:/Private/KaliAzure/Private> type ./ssh.ps1 ssh -i netsecKali_key.pem [email protected] PS C:/Private/KaliAzure/Private> ./ssh.ps1 Bad permissions. Try removing permissions for user: BUILTIN//Users (S-1-5-32-545) on file C:/Private/KaliAzure/Private/netsecKali_key.pem. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: UNPROTECTED PRIVATE KEY FILE! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Permissions for 'netsecKali_key.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "netsecKali_key.pem": bad permissions [email protected]: Permission denied (publickey). PS C:/Private/KaliAzure/Private> cacls ./netsecKali_key.pem /P %USERNAME%:R No mapping between account names and security IDs was done. PS C:/Private/KaliAzure/Private> cmd Microsoft Windows [Version 10.0.19045.5487] (c) Microsoft Corporation. All rights reserved. C:/Private/KaliAzure/Private>cacls ./netsecKali_key.pem /P %USERNAME%:R Are you sure (Y/N)?Y processed file: C:/Private/KaliAzure/Private/netsecKali_key.pem C:/Private/KaliAzure/Private>exit PS C:/Private/KaliAzure/Private> ./ssh.ps1 Linux kali 6.11.2-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.11.2-1kali1 (2024-10-15) x86_64 The programs included with the Kali GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Kali GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Jan 31 20:30:12 2025 from 206.47.108.6 ┏━(Message from Kali developers) ┃ ┃ This is a minimal installation of Kali Linux, you likely ┃ want to install supplementary tools. Learn how: ┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/ ┃ ┃ This is a cloud installation of Kali Linux. Learn more about ┃ the specificities of the various cloud images: ┃ ⇒ https://www.kali.org/docs/troubleshooting/common-cloud-setup/ ┃ ┗━(Run: “touch ~/.hushlogin” to hide this message) ┌──(azureuser㉿kali)-[~] └─$
Metapackages are used to install many packages at one time, created as a list of dependencies on other packages. Kali Linux uses these in a few ways. One way is allowing users to decide how many packages out of the total Kali list they would like to install. Need just enough to use Linux? Want enough to conduct Pentests? Perhaps nearly every package available in Kali?
To install a metapackage, we are going to first update the system. While not mandatory, this step is highly recommended to make sure the metapackages can be installed without any unexpected side-effects. The procedure to update Kali is documented in details on the page Updating Kali, but in short, it boils down to two commands:
kali@kali:~$ sudo apt update kali@kali:~$ kali@kali:~$ sudo apt full-upgrade -y kali@kali:~$
The step above might take a while, depending on how many packages need to be updated. After it’s complete, installing a metapackage (kali-linux-default in this example) is simply a matter of running one command:
kali@kali:~$ sudo apt install -y kali-linux-default kali@kali:~$
Alternatively we can use kali-tweaks to install metapackage groups for us. We first run the following command:
kali@kali:~$ kali-tweaks
From here we will navigate into the “Metapackages” tab. Now we just select which metapackages we want and then we can hit “Apply” then “OK” and finally supply our password.
APT Update Error
APT update error as show below:
Solution Update 2025
for convenience reasons: the current keyring file changed, use the following commands:
# download wget https://http.kali.org/kali/pool/main/k/kali-archive-keyring/kali-archive-keyring_2025.1_all.deb # install sudo dpkg -i kali-archive-keyring_2025.1_all.deb # remove downloaded file again rm kali-archive-keyring_2025.1_all.deb # try to update again sudo apt-get update -y
Videos
References
- Kali 系统下载、安装教程 ! 支持PC、虚拟机、手机、云主机等,安全人员和黑客必备!
- Running Ubuntu / Kali in Windows Subsystem for Linux
- Using Kali to Exploit Basic File Upload Vulnerability Using PHP Web Shell
- Kali Usage Tips and Tricks
- Kali Virtual Appliance Installation and Usage
- Pen Test Lab - 1. Environment Setup
- Pen Test Lab - 2.Passive Information Gathering
- Pen Test Lab - 3.Active Information Gathering
- Kali Installation on VMware Workstation and Home Lab Setup with Connecting through Wifi

共有 0 条评论