How to Install Kali Linux on Android | Termux No Root
In this article, we will look at how to install Kali Linux on android device (non-rooted). That opens a whole new world of possibilities that you can do with your smartphone. Instead of carrying your heavy laptop around, you can go with your phone and still perform penetration testing like you would with your Kali Desktop. Unfortunately, you might be limited to specific resources and capabilities. For example, performing a Reverse Engineering or Malware analysis with your phone won't be that smooth. However, tasks like social engineering can come in quite handy. With that in mind, let's dive in and get started.
Requirements
- An active internet connection
- Download and Install F-Droid
- Install Termux from F-Droid
- Install Hacker's Keyboard from Google Playstore.
- Install Nethunter Kex app available on Nethunter Store
- Enough storage space on your device
Step 1: Install F-Droid
Download and install F-Droid APK from the official F-Droid website.
Step 2: Install Termux from F-Droid
We downloaded Termux from F-Droid for this post.
Step 3: Install Nethunter Kex App
The Nethunter Kex application will enable you to access the Desktop Interface for Kali Linux on your Android. You can easily download and install the APK file from the Nethunter Store website.
Step 4: Install Hacker’s Keyboard
Install Hacker's Keyboard by Klaus Weidner, as shown in the image below.
Step 5: Enable Hacker’s Keyboard
Unlike your standard Android keyboard, the Hacker's keyboard brings the keyboard's functionality on your laptop to your phone. It comes with Arrow keys, Tab keys, Ctrl keys, and Esc keys. It also supports multitouch as the keyboard is based on AOSP Gingerbread soft keyboard. Launch the Settings app on your phone and locate the "Manage Keyboard" option. Enable the Hacker's keyboard, as shown in the image below.
Step 6: Setup the Environment
Launch Termux on your phone and update and upgrade the system using the command below.
pkg update && pkg upgrade -y
Up to this point, Termux has limited access to the filesystem. Therefore, any files created by Termux outside the current session won't be accessible. To solve that, run the command below:
termux-setup-storage
You will see a message like "Allow Termux access photos, media and files on your device." Click Allow. When done, execute the command below to install some packages needed to install Kali Linux on android.
Step 7: Fetch and Run the Installer Script
Now the steps to install Kali Linux on Android phone is relatively straightforward than you would think. We will download the installer script, run it and wait for the script to install Kali. To get started, download the script with the command below.
wget https://gitlab.com/kalilinux/nethunter/build-scripts/kali-nethunter-project/raw/master/nethunter-rootless/install-nethunter-termux
When you run the ls
command, you will see a file called.'install-nethunter-termux
'. To make this script executable, run the command below.
chmod +x install-nethunter-termux
To run the script, execute the command below:
./install-nethunter-termux
The script will download and install Kali Linux files on your phone. These files might be around 1.5GB; therefore, depending on your internet connection, depending on your internet connection, it might take some time.
After successfully install Kali Linux on Android phone, you should see a screen similar to the image below.
Step 8: Launch Kali Linux on Android
Up to this point, Kali Linux is downloaded and installed on your Android phone. However, you will notice that you are still not getting the Kali shell prompt. To launch Kali, type the command below and hit Enter.
nethunter
You will now drop to the Kali Linux console as shown in the image below:
You can now use Kali Linux tools and commands just like you would on a Kali Desktop running on your laptop. To get started, execute the command below to check the OS and OS-version.
cat /etc/os-release | grep "\bNAME="
Step 9: Enable Kali Linux Graphical User Interface on Android
Up to this point, you can only use Kali Linux using the command-line prompt on the Termux. Luckily, there is a way you can easily access and use the default XFCE Desktop environment, which comes installed on Kali Linux. This procedure uses straightforward logic. We will use the Win-Kex utility. A tool that enables users running Kali Linux via WSL access the Kali Desktop Interface on their Windows PC. Kex works by creating a VNC session on Kali Linux, and you can access the running session graphically using a Kex-client utility like Nethunter-kex.
Follow the steps below to get started.
Launch the Termux application and type nethunter
to open the Kali Linux shell prompt.
On the Kali Linux console, type kex
and hit Enter.
You will see a prompt to set up a VNC password. Enter your Password and confirm.
Next, you will see a prompt to set a "view-only password." Type 'N' for no and hit Enter.
To start Kex on your Android phone, run the command below:
kex start
Step 10: Connect to Kali Linux instance on Android
Now, launch the Nethunter application and enter the settings shown in the image below. Luckily most of the fields are filled automatically. All you need to type is the Password. You don't need to type the VNC username.
When done, click Connect. That will launch Kali Desktop on your Mobile Phone in landscape mode, as shown below.
Congratulations! You are now running the full-featured Kali Linux operating system on your Android phone. Of course, navigating through the tiny menus can be a little difficult, but luckily you can use the cursor and using your phone touchscreen as the touchpad/mouse for control. To stop the VNC server, switch to the Termux application and type the command below:
kex stop
Conclusion
Even though we have successfully installed a full-featured Kali Linux on Android device, running some utilities that require root permission on a non-rooted device will be impossible. However, that's a slight glitch as many tools don't need root permission. Running Kali on your mobile phone can be pretty handy with tasks like Password cracking and brute-forcing since nowadays, most phones have plenty of RAM and storage space. That turns your Android device into a hacking utility while still performing the functionalities of a mobile phone.
Awesome
Please what is the tool that I will use to hack bank account and pull money from account
Can you help to solve signal 9 error
Hola, efectivamente funciono el tutorial al 100, pero tengo un problema y es que la sesión no dura mas de dos minutos y me desconecta, alguna solución? gracias