Kali Linux is a popular operating system that is frequently used in security audits and penetration testing. In the past, it was only available on desktop systems. However, the NetHunter Project makes it available for Android phones as well.
Basically, the NetHunter version of Kali Linux is specially designed for mobile devices, and it doesn’t run on desktop devices. So, if you are a small business owner who often relies on Android devices, then this tutorial is especially for you. Certainly, managing your business with a reliable security audit system is always better.
Steps Involve Installation of Kali Nethunter On Android Mobile
Install Termux Software on your Mobile phone.
Upgrade current repositories.
Install NetHunter on your system.
Start the Kali NetHunter installation.
Install NetHunterKeX on your computer.
1. Install Termux on Your phone.
Actually, Kali Linux NetHunter installation requires launching software, as Kali Linux was not originally designed for mobile devices. For this, you need to install Termux (it acts as a launcher). It is available on the Google Play Store, but we recommend downloading it from GitHub.
Click on the above-mentioned red-box to download the app. It took only a few seconds if you have a good internet connection. Now, open the downloaded file and install it.
Note: Your computer is not going to allow you to install this app because the source is unknown. It asks for permission; click on Settings to set permission.
It directs your phone to the settings page, where you can set up permission for installation.
Now you can install it on your system. For this, click on the Install button as shown in the below screenshot.
Step 2: Upgrade Repositories On System
Kali Linux installation on an Android phone also asks to update repositories. Most advanced versions of Linux, such as Debian Linux, use the APT configuration system to install repositories. However, here we have an Android system that is not fully compatible with it.
Then how do I update repositories? Consider following these simple steps:
First, run the update command, which will retrieve package source information from available resources.
apt update
Second, run the upgrade command to upgrade your current package to the most advanced version.
apt upgrade
Next, Kali Linux asks you this question:
Do you want to continue? Click on the Y button on your keyboard, and then press the Enter button.
Next, you need to use the following command:
termux-setup-storage
it allows you to set up storage permissions for Termux.
Now, click on the Allow button to allow access on your Android phone.
Step 3: Install NetHunter On Your Mobile Phone
Run the wget command to kickstart the installation process of NetHunter.
apt install wget
It now again asks this question. Do you want to continue? Click on the Y button and press the Enter key.*
Now, you need to run this command:
Wget -O install-nethunter-termux https://offs.ec/2MceZWr
This command allows you to download NetHunter, but make sure to enter your IP address correctly.
Now, make this downloaded file executable. To do so, run the following commands:
chmod +x install-nethunter-termux
Next, Execute NetHunter.
Use the following commands to do this:
./install-nethunter-termux
This step may take some time; however, if you have a good Internet connection, it will only take a few seconds.
Next, it asks this question:
Do you agree to remove the downloaded rootfs file or not?
Click on the no button to reply no.
Step 4: Start Kali NetHunter
Open Kali Linux's CLI (command-line interface) by running this command:
nethunter
Now, Exit the NetHunter CLI interface and run this command:
net hunter kex passwd
This command allows you to create password of your own desire.
Note: Make sure to exit the NetHunter CLI interface before the above-mentioned command.
Nethunter kex passwd
Now run this command:
nethunter kex
Remember!, write down the RFB port number because you’ll need it later.
Now that you have the NetHunter system running on your system, you need to configure the display. To do so, please proceed to the next step.
Step 4: Install NetHunter KeX.
Now you need NetHunter Kex to configure the display.
1. Visit this website.
2. Download the NetHunter App on your device and install it.
Note: Please don’t confuse the NetHunter App Store with the Google App Store because NetHunter tools and extensions are only available on their official app store.
Open the App Store on your mobile, search for NetHunter Kex, and then install it.
Now, open NetHunter Kex to proceed further. It asks you to choose a username and password. You can choose whatever username you want, but consider using the password that you set in earlier steps. Additionally, you need to make sure that you have chosen a similar port number. Now, click on Connect.
If you follow all the steps correctly, you will have the Kali NetHunter GUI running on your Android phone.