Kali linux image android

Install Kali Linux on Android [Step-by-Step]

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.

Install Kali Linux on Android [Step-by-Step]

Step 2: Install Termux from F-Droid

Even though Termux is readily available on Google Play Store, you are highly advised to download Termux from F-Droid or GitHub. The play store version for Termux no longer receives updates, and you will most likely run into errors when using the app.

We downloaded Termux from F-Droid for this post.

Install Kali Linux on Android [Step-by-Step]

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.

Install Kali Linux on Android [Step-by-Step]

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.

Install Kali Linux on Android [Step-by-Step]

Step 6: Setup the Environment

Launch Termux on your phone and update and upgrade the system using the command below.

Termux doesn’t give you a Graphical interface. Instead, all you get is a command-line shell where you can execute commands. If you have worked with Linux systems before, this shouldn’t be a big deal. If you are a newbie to Linux systems, don’t worry. Just execute the commands on this article until we have a fully Kali Linux Desktop system running on our Android device.

pkg update && pkg upgrade -y

Install Kali Linux on Android [Step-by-Step]

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:

Читайте также:  Установка континент ап astra linux

Install Kali Linux on Android [Step-by-Step]

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.

Install Kali Linux on Android [Step-by-Step]

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

Install Kali Linux on Android [Step-by-Step]

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:

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.

Install Kali Linux on Android [Step-by-Step]

After successfully install Kali Linux on Android phone, you should see a screen similar to the image below.

Install Kali Linux on Android [Step-by-Step]

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.

You will now drop to the Kali Linux console as shown in the image below:

Install Kali Linux on Android [Step-by-Step]

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 async" src="https://www.golinuxcloud.com/wp-content/uploads/Check-OS.png" alt="Install Kali Linux on Android [Step-by-Step]" width="350" height="219" srcset="https://www.golinuxcloud.com/wp-content/uploads/Check-OS.png 350w, https://www.golinuxcloud.com/wp-content/uploads/Check-OS-300x188.png 300w" sizes="(max-width: 350px) 100vw, 350px" title="Install Kali Linux on Android [Step-by-Step]" loading="lazy" fetchpriority="low">

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.

ALSO READ: Different Kali Vulnerability Scanner Tools [Explained]

Follow the steps below to get started.

Launch the Termux application and type nethunter to open the Kali Linux shell prompt.

Advertisement

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.

NOTE:
VNC passwords have a limit of up to 8 characters. If you set a password of more than eight characters, it is truncated to 8 (by default).

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

Install Kali Linux on Android [Step-by-Step]

Step 10: Connect to Kali Linux instance on Android

Install Kali Linux on Android [Step-by-Step]

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.

Install Kali Linux on Android [Step-by-Step]

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:

Install Kali Linux on Android [Step-by-Step]

What’s Next

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.

Didn't find what you were looking for? Perform a quick search across GoLinuxCloud

If my articles on GoLinuxCloud has helped you, kindly consider buying me a coffee as a token of appreciation.

Buy GoLinuxCloud a Coffee

For any other feedbacks or questions you can either use the comments section or contact me form.

Thank You for your support!!

53 thoughts on “Install Kali Linux on Android [Step-by-Step]”

kex
/usr/bin/kex: line 19: vncserver: command not found
/usr/bin/kex: line 20: vncserver: command not found
/usr/bin/kex: line 25: vncpasswd: command not found
/usr/bin/kex: line 30: vncserver: command not found Error starting the KeX server.
Please try “nethunter kex kill” or restart your termux session and try again. Mine is showing me error, anyone on how to resolve this? Reply

[*] Checking device architecture . [1] NetHunter ARM64 (full) [2] NetHunter ARM64 (minimal) [3] NetHunter ARM64 (nano) Enter the image you want to install: Kali NetHunter ./install-nethunter-termux: line 75: ((: Kali NetHunter == 1 : syntax error in expression (error token is "NetHunter == 1 ") ./install-nethunter-termux: line 78: ((: Kali NetHunter == 2 : syntax error in expression (error token is "NetHunter == 2 ") ./install-nethunter-termux: line 81: ((: Kali NetHunter == 3 : syntax error in expression (error token is "NetHunter == 3 ") [*] Checking package dependencies. Installing proot. Reading package lists. Done Building dependency tree. Done Reading state information. Done The following additional packages will be installed: libtalloc The following NEW packages will be installed: libtalloc proot 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 116 kB of archives. After this operation, 463 kB of additional disk space will be used. Get:1 https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 libtalloc aarch64 2.4.0 [32.9 kB] Get:2 https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 proot aarch64 5.1.107-59 [82.7 kB] Fetched 116 kB in 1s (185 kB/s) Selecting previously unselected package libtalloc. (Reading database . 6788 files and directories currently installed.) Preparing to unpack . /libtalloc_2.4.0_aarch64.deb . Unpacking libtalloc (2.4.0) . Selecting previously unselected package proot. Preparing to unpack . /proot_5.1.107-59_aarch64.deb . Unpacking proot (5.1.107-59) . Setting up libtalloc (2.4.0) . Setting up proot (5.1.107-59) . Processing triggers for man (1.14.6-1) . tar is OK Installing axel. Reading package lists. Done Building dependency tree. Done Reading state information. Done The following NEW packages will be installed: axel 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 23.9 kB of archives. After this operation, 106 kB of additional disk space will be used. Get:1 https://packages-cf.termux.dev/apt/termux-main stable/main aarch64 axel aarch64 2.17.11-2 [23.9 kB] Fetched 23.9 kB in 0s (58.1 kB/s) Selecting previously unselected package axel. (Reading database . 6804 files and directories currently installed.) Preparing to unpack . /axel_2.17.11-2_aarch64.deb . Unpacking axel (2.17.11-2) . Setting up axel (2.17.11-2) . Processing triggers for man (1.14.6-1) . Reading package lists. Done Building dependency tree. Done Reading state information. Done Calculating upgrade. Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. [*] Downloading rootfs. --2023-06-05 11:23:34-- https://kali.download/nethunter-images/current/rootfs/kalifs-arm64-full.tar.xz Resolving kali.download. 104.18.103.100, 104.18.102.100, 2606:4700::6812:6764, . Connecting to kali.download|104.18.103.100|:443. connected. HTTP request sent, awaiting response. 200 OK Length: 1839049448 (1.7G) [application/octet-stream] Saving to: ‘kalifs-arm64-full.tar.xz’ ka 50% 882.22M 1.68MB/s eta 6m 2s kalifs-arm64 100% 1.71G 2.59MB/s in 12m 2s 2023-06-05 11:35:36 (2.43 MB/s) - ‘kalifs-arm64-full.tar.xz’ saved [1839049448/1839049448] [*] Getting SHA . --2023-06-05 11:35:36-- https://kali.download/nethunter-images/current/rootfs/kalifs-arm64-full.sha512sum Resolving kali.download. 104.18.103.100, 104.18.102.100, 2606:4700::6812:6664, . Connecting to kali.download|104.18.103.100|:443. connected. HTTP request sent, awaiting response. 200 OK Length: 155 [application/octet-stream] Saving to: ‘kalifs-arm64-full.sha512sum’ kalifs-arm64 100% 155 --.-KB/s in 0s 2023-06-05 11:35:37 (6.58 MB/s) - ‘kalifs-arm64-full.sha512sum’ saved [155/155] [*] Verifying integrity of rootfs. kalifs-arm64-full.tar.xz: OK [*] Extracting rootfs.

Источник

Оцените статью
Adblock
detector