NetHunter in Termux – Latest Installation Commands and Usage

NetHunter is a mobile penetration testing platform based on Kali Linux that can be used on Android devices. It provides a Linux environment with different security tools for learning and testing. You can install the NetHunter Rootless version in Termux without rooting your Android device. It also gives you access to many useful Linux commands and security tools from the terminal.

Features of Nethunter:

  • Run a Kali Linux environment on Android.
  • Use Linux commands in the terminal.
  • Install security and networking tools.
  • Choose between different NetHunter images.
  • Use the minimal or nano version to save storage.
  • Learn Linux and security testing on Android.

NetHunter Installation Commands

Below are the latest commands to install NetHunter in Termux. Copy and run each command one by one.

Update and upgrade Termux packages.

pkg update -y && pkg upgrade -y

Allow Termux to access your device storage.

termux-setup-storage

Install Wget.

pkg install wget -y

Download the NetHunter installation script.

wget -O install-nethunter-termux https://offs.ec/2MceZWr

Make the installation script executable.

chmod +x install-nethunter-termux

Start the NetHunter installation.

./install-nethunter-termux

The installer will show three available NetHunter images:

[1] NetHunter ARM64 (full)

[2] NetHunter ARM64 (minimal)

[3] NetHunter ARM64 (nano)

Enter the image you want to install:

Choose the image according to your needs:

  • 1 – Full: Includes the largest set of packages and tools.
  • 2 – Minimal: Includes fewer packages and requires less storage.
  • 3 – Nano: A small installation with basic packages.

The Full NetHunter image can use around 1.8 GB of internet data during installation, while the Minimal and Nano versions need less data and storage. Installation may take some time depending on your internet speed

NetHunter Usage Commands

After the installation is complete, you can use the following commands to start and configure NetHunter.

Run NetHunter.

nethunter

You can also use the shorter command:

nh

Run NetHunter as root.

nethunter -r

Set a root password.

passwd root

After running the command, enter a new password when prompted.

Check the current user.

whoami

Check the Linux version.

uname -a

Update NetHunter packages.

sudo apt update

Upgrade NetHunter packages.

sudo apt upgrade -y

Fix Internet Connection in NetHunter

If the internet is not working correctly inside NetHunter, you can manually set a DNS server.

Run this command inside the NetHunter environment:

echo "nameserver 8.8.8.8" > /etc/resolv.conf

This sets Google’s public DNS server for DNS name resolution.

Test the internet connection.

ping -c 4 google.com

If the domain resolves and you receive replies, the internet connection is working.

Nethunter Overview

NetHunter lets you run Kali Linux on your Android device through Termux without rooting your phone. You can choose different versions, use Linux commands, install tools, and learn about security testing in a simple terminal environment.

SHARE THIS POST: