Announcement

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 .

Announcement

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:

Announcement
  • 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

  1. 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 .
Baixando o aplicativo Termux do 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.

  1. 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”.
Instalando Termux no Android
  1. Your phone will redirect you to a settings page where you can choose to allow installation of apps in your browser, as proven:
Página de configurações para permitir a instalação de aplicativos desconhecidos
  1. You will have the configuration option that allows you to configure the application.
Instalando Termux

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 replacecommand, we retrieve the package provisioning information from the configured sources. O improvecommand 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 replacecommand:

Atualizando repositórios no Termux

Enter the next command:

Atualizando repositórios no Termux App

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:

Configurando as permissões de armazenamento de configuração do termux

It should activate a pop-up that asks if you want to allow Termux to insert information into your system. Tap “Allow”.

Permitindo que o termux acesse arquivos

3. Configure NetHunter

  1. Configure Wget using this command:
Instalando o wget no Termux

When prompted, “Do you want to proceed?” answer with Y.

  1. 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
Baixando o pacote de instalação do NetHunter
  1. Change the file permissions of the downloaded file, making it executable:
chmod +x install-nethunter-termux
Executando o comando chmod no Termux
  1. Run NetHunter:
. / install-nethunter-termux
Iniciando o Kali NetHunter no Android

Setup may take a while depending on the pace of your web connection.

  1. When asked whether or not you want to delete the downloaded rootfs file, respond with N, as you might want it later.
arquivo rootfs

4. Launch Kali NetHunter

To launch the Kali Linux NetHunter command-line interface, enter this command:

You can even use the nhcommand as a shortcut to NetHunter.

Iniciando a CLI do NetHunter

The subsequent step is to set the NetHunter KeX password. Note that you must exit the NetHunter CLI to run this command:

Configurando a senha do NetHunter KeX

Start NetHunter KeX by running this command:

Pay attention to the quantity of the RFB Port, as you will use it later.

Executando o NetHunter KeX

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 .

  1. Access the website of NetHunter App Retailer.
  2. Get and configure the NetHunter retail app.
loja de aplicativos NetHunter
  1. Launch the app store, search for NetHunter KeX and configure it.
Baixando o NetHunter KeX
  1. After the NetHunter Retailer app downloads the NetHunter KeX app, you may be asked whether or not you want to configure it. Tap “Configure”.
Instalando o NetHunter KeX
  1. 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”.
Aplicativo NetHunter KeX
  1. If you followed all the steps correctly, you should have Kali NetHunter GUI working on your Android phone.
Kali Linux no Android

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 .

Announcement