Kali Linux Easy Installation on Any Android Smartphone

In some condition, in the way of pentest, a client may ask us to do a proper hacking attack in his own field. In that kind of case walking on a office or corporate environment with a laptop in hand may look suspicious, we need something more handy. Some small devices like cell phones or Raspberry Pi and using it to perform some cool attacks on their network.

In this tutorial we learn how we can install Kali Linux in Android smartphone without root and not using PC emulator.

There are many ways to install Kali Linux in android smartphone. If we have rooted android then we can install Kali NetHunter in supported devices, but in the case of non-rooted user there are only few ways are available. We can use PC emulator to install Kali Linux in non-rooted phone, but that process is very slow and PC emulator uses much resources of a phone. In this tutorial we learn an easy process, in this process we learn to install Kali Linux and other Linux distributions in mobile phone and smoothly run them.

Let's start,
We need some apps to install Kali Linux in our mobile phone. Those are
  1. Termux
  2. VNC viewer
  3. AnLinux
This apps are available in play store we need to install all these apps.

kali linux on android

Then first we open AnLinux app and it will open it's dashboard. Like following picture:

kali linux on android

Then we need to choose the Linux distro we want to install. We can install multiple distro without conflict, but here we only install Kali Linux. So we tap on choose and select Kali and click on "OK".

kali linux on android

Then we click on copy. The commands are copied on our clipboard. Then we click on lunch button, lunch button will start Termux app.

Now long press and paste copied commands in Termux and press "Enter".

kali linux on android
Then it will install required packages and one script will download and execute automatically, it will take time depending on our internet speed.

After finishing this step we need to run Kali Linux bash script by using following command:


Now we can see the Kali Linux terminal root@localhost as following screenshot.

kali linux on android

Now we check the Linux distribution by using following command :

cat /etc/issue
kali linux on android

We can see the distro is Kali Linux Rolling.
To check the version of Kali Linux we run following command:

cat /etc/os-release
kali linux on android

Now we can see the version of our Kali Linux in the above screenshot.

In this Kali Linux system we can run any Kali Linux command, but in this distribution we did not get any pre-installed tool, we need to install our tools manually.

Here we update and upgrade our Kali Linux in our Android smart phone. To do that we apply following command:

apt-get update && apt-get upgrade
The screenshot is following:

kali linux on android

This process will take some time. After updating we can install any tool. In this tutorial we install nano text editor as example.

apt-get install nano

Yeh, now we are all done. Kali Linux is in our android smartphone. But it is in command-line interface (CLI). Some of us will prefer Graphical User Interface (GUI). GUI setting up Kali Linux in Android smartphone is very easy.. We need to install a desktop environment. To install and configure desktop environment we need to go go again in AnLinux application and click in the menu as shown in following screenshot.

kali linux on android

Then we need to choose our desktop environment. Then we choose for which Linux distribution we are using. Here we choose Kali Linux.
Then we got list of desktop environments, we choose xface4, this is recommended. Then we need to click on copy to copy those commands to install and configure Kali Linux's xface4 desktop environment.

kali linux on android

Then we open the Kali Linux's CLI in Termux and paste the copied command in clipboard. Here remember one thing we did not pasting the commands in Termux , we are pasting it in Kali Linux , and that Kali Linux is installed under Termux. Then xface4 desktop environment and VNC server will downloaded and configured automatically.

This will download and configure automatically.

kali linux on android

This will download 200 MB of data and almost 700 MB of disk space in mobile. This process also take some time depending on our phones performance and internet speed.

We need to configure between this process, it will prompt for keyboard layout etc, and we need to set the password for VNC server and choose n for no in the in the view-only password field.

After this we can access Kali Linux's Graphical User Interface via VNC viewer application, because this will automatically start VNC server.

We need to open VNC viewer application and we click on the "+" sign to add a new connection.

Here in this field we type the address and display number in our case that is localhost:1 as following:

Then we click on next and type a name for our new computer, choose anything and click on Done.

Then we click on connect. Then we click "OK" in unencrypted connection bar. Next we need to type the password as we set before, then click on done.

Yap it's really done. The Kali Linux GUI will appear in front of us.

But this can't comes with any pre-installed tools, we can add required tools manually. For an example we can install metasploit framework by using following command:

apt-get install metasploit-framework

The screenshot is following:

kali linux on android

Yes we have successfully installed Kali Linux in our non-rooted Android smartphone.

But how to open it again?
We just need to open our Termux and type following command:

Then the CLI version of Kali Linux will open. Then we start the VNC server by applying following command :

vnc server-start
Then we open VNC viewer app and connect with our previous connected computer, and we got the GUI of Kali Linux again atfer typing the password of VNC server.

Sharing is caring.
So please don't forget to share this post.
Kali Linux Easy Installation on Any Android Smartphone Kali Linux Easy Installation on Any Android Smartphone Reviewed by Kali Linux on August 05, 2019 Rating: 5

No comments:

Powered by Blogger.