
Learn how to run Kali Linux on your Android device using Termux. This comprehensive guide covers installation methods, essential tools, Wi-Fi auditing capabilities, and how to transform your
Master Nano, Vim, and Emacs text editors for penetration testing on Kali Linux. Learn essential commands, shortcuts, and workflows for editing config files, bash scripts, and analyzing securi
28 min read
Master the apt package manager, dpkg, and snap in Kali Linux. Learn essential package management commands, repository configuration, and security tool installation for penetration testing in
24 min read
Imagine having a full-featured penetration testing environment in your pocket, ready to perform security assessments anywhere. With Kali Linux on Android using Termux, this isn't just possible—it's surprisingly practical. Whether you're a cybersecurity professional needing a portable recon toolkit or an ethical hacker practicing CTF challenges on the go, running Kali Linux on your Android device opens up a world of mobile pentesting possibilities.
In this tutorial, we'll explore how to install and configure Kali Linux on Android devices using Termux, compare different installation methods, and discover what security tools you can realistically run on mobile hardware.
Termux is a powerful terminal emulator and Linux environment application for Android that requires no root access. Unlike traditional Android apps, Termux provides a genuine Linux command-line interface with its own package ecosystem based on Debian.
Key features of Termux include:
Visit termux.dev for official documentation and community resources.
Note: While Termux is incredibly powerful, it operates within Android's security sandbox. Some pentesting tools requiring kernel-level access or specific hardware features may have limited functionality without root access.
Before we can run Kali Linux, we need to install Termux properly on your Android device.
Important: Do NOT download Termux from the Google Play Store. The Play Store version is outdated and no longer maintained. Instead:
https://f-droid.orgAlternatively, download the latest APK directly from the Termux GitHub releases page.
Once Termux is installed:
`# Grant storage permissions termux-setup-storage
pkg update && pkg upgrade -y
pkg install wget curl git nano -y
The `termux-setup-storage` command creates a `~/storage` directory with access to your Android device's shared storage, SD card, and downloads folder.
## Kali NetHunter vs Proot-Distro Kali: Choosing Your Path
There are two primary methods to run Kali Linux on Android through Termux:
### 1. Kali NetHunter (Root Required)
**Kali NetHunter** is the official Offensive Security mobile penetration testing platform. It comes in three flavors:
- **NetHunter Full** - Requires root access and custom kernel; provides complete functionality
- **NetHunter Lite** - Requires root but works with stock kernel; reduced features
- **NetHunter Rootless** - No root required; uses Termux as the base (similar to proot method)
NetHunter provides a comprehensive suite of tools with GUI applications, HID keyboard attacks, Wi-Fi attacks with external adapters, and more.
### 2. Proot-Distro Kali (No Root Required)
**Proot-distro** is a script for installing and managing Linux distributions in Termux using proot (a user-space implementation of chroot). This method:
- Works on any Android device without root
- Provides access to Kali's package repositories and tools
- Has some limitations compared to full NetHunter installation
- Easier to set up and maintain
### Comparison Table: NetHunter vs Termux Proot Method
<tbody>
| **Root Required**
| Yes (Full/Lite)
| No
| **Setup Difficulty**
| High
| Easy
| **Wi-Fi Attacks**
| Full support with monitor mode
| Limited (passive scanning only)
| **HID Keyboard Attacks**
| Yes
| No
| **GUI Applications**
| Yes (via VNC)
| Yes (via VNC)
| **Network Scanning**
| Full capabilities
| Most tools work
| **Tool Compatibility**
| 95%+
| 70-80%
| **Packet Injection**
| Yes (with compatible adapter)
| No
| **Device Risk**
| Higher (root/warranty)
| Minimal
| **Updates**
| Manual/complex
| Standard apt update
</tbody>
**Recommendation:** For most users, the proot-distro method is the best starting point. It's safe, easy to set up, and provides access to most Kali tools without the complexity and risks of rooting your device.
## Setting Up Kali Linux in Termux (Proot-Distro Method)
Let's walk through the complete installation process using proot-distro, the easiest and safest method for running Kali Linux on Android.
### Step 1: Install Proot-Distro
`# Install proot-distro package
pkg install proot-distro -y
`# List available distributions proot-distro list
proot-distro install kali
The installation process downloads and sets up a minimal Kali Linux rootfs (root filesystem) within Termux.
### Step 3: Launch Kali Linux
`# Login to Kali Linux environment
proot-distro login kali
# You should now see the Kali Linux prompt:
# ┌──(root㉿localhost)-[~]
# └─#
To create a shortcut alias for easier access, add this to your Termux ~/.bashrc:
`echo "alias kali='proot-distro login kali'" >> ~/.bashrc source ~/.bashrc
Now you can simply type `kali` to enter your Kali environment.
### Step 4: Update Kali Linux
Once inside Kali, update the system:
`# Update package repositories
apt update
# Upgrade installed packages
apt upgrade -y
# Update distribution
apt dist-upgrade -y
The default Kali installation is minimal. Let's install the tools you'll actually use on a mobile device.
Kali organizes tools into metapackages. For mobile use, consider these lightweight options:
`# Core tools only (500 MB) apt install kali-linux-core -y
apt install kali-linux-default -y
apt install kali-tools-information-gathering -y apt install kali-tools-vulnerability -y apt install kali-tools-web -y
**Recommendation:** Start with individual tools rather than full metapackages to conserve storage space.
### Essential Pentesting Tools for Android
`# Network scanning and reconnaissance
apt install nmap netcat-traditional dnsutils whois -y
# Web application testing
apt install nikto sqlmap whatweb wafw00f -y
# Password attacks
apt install hydra john hashcat medusa -y
# Exploitation frameworks
apt install metasploit-framework exploitdb -y
# Wireless tools (limited without root)
apt install aircrack-ng wireless-tools -y
# Information gathering
apt install theHarvester maltego recon-ng sublist3r -y
# Utilities
apt install git python3-pip curl wget nano vim -y
`# Install pip packages for custom scripting pip3 install scapy requests beautifulsoup4 paramiko pip3 install python-nmap dnspython colorama pip3 install shodan censys internetdb
## Running Network Recon Tools on Android
Let's explore practical examples of pentesting tools running on your Android device.
### Nmap: Network Scanning
Nmap works excellently on Android through Termux:
`# Basic host discovery on local network
nmap -sn 192.168.1.0/24
# Port scan with service detection
nmap -sV -p- 192.168.1.1
# OS detection (may require root for certain techniques)
nmap -O 192.168.1.100
# Vulnerability scanning with NSE scripts
nmap --script vuln 192.168.1.1
# Fast scan of common ports
nmap -F --top-ports 100 scanme.nmap.org
`# Gather emails and subdomains theHarvester -d example.com -b google,bing,linkedin
theHarvester -d target.com -b all -l 500
### SQLMap: SQL Injection Testing
`# Test a vulnerable URL
sqlmap -u "http://testsite.com/page?id=1" --dbs
# Test with POST data
sqlmap -u "http://testsite.com/login" --data="user=admin&pass=test"
`# Scan web server for vulnerabilities nikto -h http://example.com
nikto -h https://example.com -o scan_results.txt
### Hydra: Password Brute-Force
`# SSH brute force (ethical testing only)
hydra -l admin -P /path/to/passwords.txt ssh://192.168.1.100
# FTP brute force
hydra -L users.txt -P passwords.txt ftp://192.168.1.50
Wi-Fi security testing on Android has significant limitations, especially on non-rooted devices.
Without root access, you can:
What you cannot do without root:
With root access and Kali NetHunter:
The game-changer for mobile Wi-Fi auditing is using an external USB Wi-Fi adapter via USB OTG (On-The-Go).
Recommended adapters:
Setup process:
`# Connect adapter via USB OTG cable
lsusb
pkg install root-repo -y pkg install aircrack-ng -y
apt install aircrack-ng wireless-tools -y
iwconfig
airmon-ng start wlan1
**Note:** Even with an external adapter, you'll need root access on your Android device to enable monitor mode and perform advanced attacks.
## Root vs Non-Root Capabilities Comparison
<tbody>
| **Network Scanning**
| ✅ Full
| ✅ Full
| **Port Scanning**
| ✅ Full
| ✅ Full
| **Web Application Testing**
| ✅ Full
| ✅ Full
| **OSINT/Recon**
| ✅ Full
| ✅ Full
| **Password Cracking**
| ✅ Limited (CPU-based)
| ✅ Better (kernel access)
| **Metasploit Framework**
| ✅ Full
| ✅ Full
| **Wi-Fi Monitor Mode**
| ❌ No (without external adapter)
| ✅ Yes (device-dependent)
| **Packet Injection**
| ❌ No
| ✅ Yes
| **HID Attacks**
| ❌ No
| ✅ Yes
| **Custom Kernel Modules**
| ❌ No
| ✅ Yes
| **System-Level Network Manipulation**
| ❌ Limited
| ✅ Full
</tbody>
## Limitations and Realistic Expectations
While running Kali Linux on Android is impressive, it's important to understand the limitations:
### Hardware Limitations
- **Processing Power** - Mobile CPUs are less powerful than desktop processors; intensive tasks like password cracking will be slower
- **RAM Constraints** - Most phones have 4-8 GB RAM; running heavy tools may cause performance issues
- **Battery Life** - Pentesting tools drain battery quickly; keep a power bank handy
- **Storage Space** - Full Kali installation with tools requires 10-20 GB
- **Thermal Throttling** - Extended scanning sessions may cause overheating and performance degradation
### Software/Permission Limitations
- **Android Security Sandbox** - Limits kernel-level access without root
- **No Raw Socket Access** - Some network tools won't function properly
- **Limited Wi-Fi Capabilities** - Built-in adapters cannot enter monitor mode
- **No GPU Acceleration** - Tools like Hashcat can't leverage mobile GPU
- **SELinux/Knox** - Samsung and some devices have additional security restrictions
### Practical Limitations
- **Screen Size** - Small displays make certain tasks challenging
- **Keyboard Input** - Typing commands on touchscreen is slower (external keyboard recommended)
- **Multitasking** - Switching between apps can kill background processes
- **Tool Compatibility** - Not all Kali tools work perfectly in proot environment
## Recommended Android Devices for Pentesting
If you're serious about mobile penetration testing, device selection matters:
### Best Devices for NetHunter
- **OnePlus Series** (7 Pro, 8, 9, 10)
- Excellent custom ROM support
- Easy bootloader unlock
- Good performance
- Official NetHunter support
- **Google Pixel** (3, 4, 5, 6, 7 series)
- Best for rooting and custom kernels
- Clean Android experience
- Regular updates
- Strong community support
- **Samsung Galaxy** (S series with Snapdragon)
- Powerful hardware
- Good battery life
- Note: Exynos versions have limited support
- **Nexus Devices** (older but still functional)
- Nexus 5X, 6P have excellent NetHunter support
- Easy to root
- Budget-friendly for learning
### Best Devices for Non-Root Termux Setup
For proot-distro Kali (no root):
- **Any Android device with:**
- Android 7.0 or higher
- 4+ GB RAM
- 32+ GB storage (64+ GB recommended)
- USB OTG support (for external adapters)
- Good battery life (4000+ mAh)
**Budget-friendly options:** Xiaomi Poco series, Realme devices, Motorola G series
**Premium options:** Samsung S series, Google Pixel, OnePlus flagships
## Using Your Android as a Pentesting Device
Here are practical scenarios where Kali on Android excels:
### 1. On-The-Go Reconnaissance
Perfect for:
- Quick network scans during physical security assessments
- Subdomain enumeration while traveling
- OSINT gathering from anywhere
- Emergency troubleshooting of network issues
`# Quick recon script example
#!/bin/bash
TARGET=$1
echo "[+] Starting reconnaissance on $TARGET"
echo "[+] Subdomain enumeration..."
sublist3r -d $TARGET -o subdomains.txt
echo "[+] Port scanning..."
nmap -sV -T4 -oN nmap_scan.txt $TARGET
echo "[+] Web tech detection..."
whatweb $TARGET
echo "[+] Recon complete!"
Your Android device is perfect for:
With proper authorization:
Mobile advantages:
`# Prevent Android from killing Termux
termux-wake-lock
pkg autoclean apt autoremove
pkg install tmux tmux new -s pentest
### Backup and Portability
`# Backup your Kali setup
proot-distro backup kali --output ~/storage/downloads/kali-backup.tar.gz
# Restore on another device
proot-distro restore kali --from ~/storage/downloads/kali-backup.tar.gz
Your Android setup complements your primary pentesting environment:
For comprehensive guides on desktop Kali setups, check out our tutorials on installing Kali Linux in VirtualBox and essential Kali Linux post-installation steps.
⚠️ Important Legal Warning:
`# Close unnecessary apps to free RAM
apt install nmap-common instead of full nmap suite
### Issue: Proot-distro Login Fails
`# Reinstall proot-distro
pkg reinstall proot-distro
# Remove and reinstall Kali
proot-distro remove kali
proot-distro install kali
`# Update Kali repositories apt update && apt upgrade
apt install -f
### Issue: Network Tools Return "Permission Denied"
`# Many network tools require root access on Android
# Consider using alternative tools or external adapters
# Or root your device for full functionality
Expand your mobile pentesting knowledge:
If you prefer running Kali from bootable media, check our guide on creating a Kali Linux Live USB.
No, you don't need root access. Using Termux with proot-distro, you can install and run Kali Linux on any non-rooted Android device. However, root access significantly expands capabilities—especially for Wi-Fi auditing with monitor mode, packet injection, and HID attacks. For basic pentesting tasks like network scanning, web application testing, and OSINT gathering, non-rooted devices work perfectly fine.
Very limited. Without root access, you cannot enable monitor mode on the built-in Wi-Fi adapter, which means no packet injection, handshake capturing, or deauthentication attacks. However, you can still perform passive Wi-Fi reconnaissance, scan networks, and analyze traffic from your own connections. The best workaround is using an external USB Wi-Fi adapter (like Alfa AWUS036NHA) via USB OTG, but even this requires root for monitor mode functionality.
Kali NetHunter is the official Offensive Security mobile platform requiring root access and often a custom kernel. It provides full pentesting capabilities including HID attacks, wireless monitor mode, and optimized tools. Termux proot Kali runs Kali in a containerized environment without root, offering 70-80% tool compatibility with easier setup and no warranty/device risk. NetHunter is for serious mobile pentesting; proot method is perfect for learning, practice, and most reconnaissance tasks.
For non-rooted setups using Termux, any modern Android device works (Android 7+, 4GB+ RAM, 32GB+ storage). Popular choices include Xiaomi Poco series, Samsung S series, and Google Pixel devices. For rooted NetHunter installations, OnePlus devices (7 Pro, 8, 9), Google Pixels, and some Samsung Galaxy S models with Snapdragon processors offer the best compatibility and community support. Always verify NetHunter device compatibility on the official Offensive Security website before purchasing.
Minimum 4-5 GB for basic installation (proot Kali minimal), but realistically plan for 10-20 GB with commonly used tools. A full kali-linux-default metapackage requires about 3 GB, plus your stored wordlists, scan results, and scripts. We recommend devices with at least 64 GB internal storage (or 32 GB + expandable microSD). You can optimize storage by installing only the tools you need rather than full metapackages, using apt install for specific tools like nmap, sqlmap, and metasploit-framework individually.
Running Kali Linux on Android with Termux transforms your smartphone into a capable portable penetration testing platform. While it doesn't replace a full desktop setup, it excels at reconnaissance, network scanning, web application testing, and on-the-go security assessments.
The proot-distro method offers an accessible entry point for anyone interested in mobile pentesting without the complexity of rooting. For those willing to root their devices, Kali NetHunter unlocks advanced capabilities including Wi-Fi attacks and HID exploitation.
Whether you're a cybersecurity professional needing a backup toolkit, an ethical hacker practicing skills during commutes, or a student learning penetration testing, Kali on Android provides surprising functionality in your pocket.
Key Takeaways:
Start experimenting today—install Termux, set up Kali, and discover what you can accomplish with pentesting tools in your pocket. The future of security testing is increasingly mobile, and you're now equipped to be part of it.
Stay secure, stay curious, and happy hacking!
About the Author: Andrax Pentester (Syed Abrar) is a cybersecurity researcher and penetration tester specializing in mobile security and ethical hacking methodologies. With years of experience in offensive security, Andrax shares practical tutorials and research to help the cybersecurity community learn and grow.
Share this tutorial
Complete beginner's guide to Linux process management in Kali Linux. Learn process monitoring with ps, top, htop, process control with kill signals, systemd services, resource monitoring, and
19 min read
Sign in to leave a comment.