Kali Linux is the most popular penetration testing and security auditing operating system on the planet. Thanks to the NetHunter venture, it is now possible to install Kali Linux on an Android phone.
NetHunter is the cellular model of Kali Linux and designed for Android units. It is a strong instrument for penetration testing. This tutorial reveals how to set up NetHunter on any non-rooted Android phone.
In case you are curious about penetration testing, you also need to take a look at these other penetration tools for Android It is desktop .
What is Kali Linux NetHunter?
Kali Linux NetHunter is the cellular version of the popular Kali Linux security system. You can set it on any non-rooted Android phone to run various penetration testing instruments on your phone.
Kali NetHunter is on the market in three variations:
- NetHunter Rootless for non-rooted Android phones
- NetHunter for rooted phones with custom restore with a specific NetHunter kernel
- NetHunter Lite for phones with custom restore
The NetHunter suite, for all three variations, is comprised of the following:
- NetHunter App Retailer with many security functions
- Kali Linux container that presents all applications obtained from Kali Linux
- Android application to access NetHunter App Retailer
- NetHunter KeX (Desktop Expertise) to run Kali desktop periods. NetHunter KeX consists of help for screencasting and mirroring.
Steps to Set Up Kali Linux NetHunter on Android
The only requirement to install Kali Linux Nethunter is that your phone must be running Android 7 or newer. We advocate an Android model prior to 12, because the latest Triages and kills application processes after they devour an excessive amount of processing power.
1. Configure Termux on your cell phone
- Although you get the Termux app from the Google Play Store, the variant is obsolete: it doesn't receive updates and contains bugs and outdated repositories. We recommend that you simply configure the latest template on your web page from GitHub .
Get the app by clicking on the option highlighted above. It should only take a few seconds to obtain, especially based on your browsing pace. Tap the downloaded file to place it.
- By default, your phone does not allow you to configure apps from unknown sources . In this case, you need to organize the permissions by tapping “Settings”.
- Your phone will redirect you to a settings page where you can choose to allow installation of apps in your browser, as proven:
- You will have the configuration option that allows you to configure the application.
2. Improve repositories
Once the Termux application is installed, you will need to replace the repositories. Debian Linux and most of its derivative variations use APT (Superior Package Negotiation Instrument) to install software program. Consult these final information for apt and apt-get instructions in your reference.
When working with the replace
command, we retrieve the package provisioning information from the configured sources. O improve
command will use the data to upgrade all packages to the latest variations.
You can even study basic Linux instructions to make better use of Termux.
First, run the replace
command:
Enter the next command:
When prompted “Do you want to proceed?” Press YIt is Enter.
Later, organize the storage permissions for the Termux application through the use of this command:
It should activate a pop-up that asks if you want to allow Termux to insert information into your system. Tap “Allow”.
3. Configure NetHunter
- Configure Wget using this command:
When prompted, “Do you want to proceed?” answer with Y.
- Get the NetHunter configuration file by running the command below. Make sure you insert the tackle correctly.
wget -O install-nethunter-termux https: // offs.ec / 2MceZWr
- Change the file permissions of the downloaded file, making it executable:
chmod +x install-nethunter-termux
- Run NetHunter:
. / install-nethunter-termux
Setup may take a while depending on the pace of your web connection.
- When asked whether or not you want to delete the downloaded rootfs file, respond with N, as you might want it later.
4. Launch Kali NetHunter
To launch the Kali Linux NetHunter command-line interface, enter this command:
You can even use the nh
command as a shortcut to NetHunter.
The subsequent step is to set the NetHunter KeX password. Note that you must exit the NetHunter CLI to run this command:
Start NetHunter KeX by running this command:
Pay attention to the quantity of the RFB Port, as you will use it later.
At this point, NetHunter is up and running, but you need to configure programs to use the software.
5. Configure NetHunter KeX
NetHunter KeX is the application retailer for NetHunter. This app store contains completely different tools that you cannot find in your regular app store. Do not confuse with Samsung Dex .
- Access the website of NetHunter App Retailer.
- Get and configure the NetHunter retail app.
- Launch the app store, search for NetHunter KeX and configure it.
- After the NetHunter Retailer app downloads the NetHunter KeX app, you may be asked whether or not you want to configure it. Tap “Configure”.
- Start NetHunter KeX. The app requires you to enter your KeX username and password. Consumer title is optionally available; In our case, we won't want to. Enter the password you set previously and make sure the number of ports is exactly the same as what you had if you configured NetHunter KeX and click “Join”.
- If you followed all the steps correctly, you should have Kali NetHunter GUI working on your Android phone.
Using Kali Linux Nethunter on Android
On your console, you can select any input mode: Direct Swipe Pan, Direct Hold Pan, One-Way, and Simulated Touchpad. Direct Swipe Pan mode allows you to control the mouse instantly when you touch it. Whenever you tap, the mouse clicks on the place you tapped.
To use Direct Maintenance Pan mode, long tap to start pan mode. Tapping makes the mouse click where you tapped. Simulated Touchpad mode converts your screen into a simulated touchpad. Finally, Single Hand mode works exactly like Direct and Swap Pan modes, in addition to a long press opening a menu with a list of options.
Alternatively, if you want access your Android phone from Kali Linux (on a desktop), find out how in this tutorial .