Termux
Learn ethical hacking using Termux on Android. This guide covers 100+ essential Linux commands, tool installations (like Nmap, Hydra, SQLMap), network scanning, and practical tips. No PC needed — turn your phone into a mobile hacking lab. For educational use only.
Install / Use
/learn @mqz0211/TermuxREADME
⚡ Ethical Hacking Starter Guide with Termux (Android Only)
Welcome to your mobile hacking lab! This guide is your all-in-one starter pack to learn ethical hacking using only Termux on Android — no PC needed.
📌 For education only. Don't hack systems you don't own or have permission to test.
🤔 Before We Begin: What Are Termux, Repos, and Packages?
📱 What is Termux?
Termux is a free terminal emulator app for Android. It gives you a Linux command-line environment where you can run hacking tools, write code, and learn cybersecurity — all from your phone.
📦 What is a Package?
A package is a bundle of code that adds a new feature or tool. For example:
nmap— a package that scans networks for open portsgit— a package used to download or clone code from GitHub
You install packages in Termux to add functionality.
🧃 What is a Repository (Repo)?
A repository is a collection of packages stored online. When you install a tool, Termux checks its repositories for the latest version of that tool.
- Updating the repo means downloading the latest list of available packages.
- Example:
pkg updaterefreshes the repo list.
📲 Installing Termux
-
📥 Download Termux from the Google Play Store: https://play.google.com/store/apps/details?id=com.termux
-
Open it and run:
pkg update && pkg upgradeThis command updates your list of packages and upgrades any old ones.
🧠 What You'll Learn
- Linux command basics
- File management in Termux
- Networking, scanning, reconnaissance
- Installing & using hacking tools
- Useful shell tips and productivity
💻 100+ Basic Termux Commands (Cheat Sheet)
📁 File & Directory Commands
pwd # Show current directory
ls # List files
ls -a # Show hidden files
cd [dir] # Change into directory
cd .. # Move up one directory
mkdir [foldername] # Create a folder
rmdir [foldername] # Remove empty folder
touch file.txt # Create new file
rm file.txt # Delete a file
rm -rf foldername # Force delete folder & contents
cp a.txt b.txt # Copy file
mv b.txt c.txt # Rename or move file
cat c.txt # Show file content
clear # Clear terminal
⚙️ System & Package Management
pkg update # Refresh list of available packages
pkg upgrade # Upgrade installed packages
pkg install [package] # Install a new package
pkg uninstall [package] # Remove an installed package
pkg list-all # List all available packages
pkg search [package] # Search for a package by name
apt install [package] # Alternate package installer
termux-info # Show Termux system/device info
🌐 Network & Internet Tools
ifconfig # Show network interfaces and IPs
ip a # Alternate way to view network info
ping google.com # Check internet connectivity
traceroute google.com # Show path to host
nslookup google.com # DNS resolution info
whois hackthebox.com # Domain registration info
curl ifconfig.me # Show external IP address
wget https://example.com # Download file from URL
nmap 127.0.0.1 # Scan local system for open ports
🔐 Ethical Hacking Tools (Install These)
pkg install git # Download & manage code from GitHub
pkg install python # Run Python scripts & tools
pkg install nmap # Scan networks and ports
pkg install sqlmap # Test SQL injection vulnerabilities
pkg install hydra # Brute-force login credentials
pkg install metasploit # Full exploitation framework
pkg install openssh # Secure shell access
pkg install netcat # TCP/IP networking tool
🐍 Python & Bash Basics
python3 # Start Python interpreter
python3 file.py # Run a Python script
chmod +x script.sh # Make shell script executable
./script.sh # Run shell script directly
nano script.sh # Edit script in terminal editor
bash script.sh # Execute script using bash
📂 Useful Termux Directories
cd ~ # Go to Termux home directory
cd /sdcard # Access Android internal storage
cd ~/downloads # Termux downloads directory
ls /data/data/com.termux/ # View Termux internal data files
🛠 System Utilities
top # View real-time running processes
ps # List active processes
kill [pid] # Kill process by ID
df -h # Show disk space usage
du -sh folder # Show size of folder
history # List previous commands
uptime # Show system uptime
uname -a # Show system kernel and OS info
💡 Tips & Tricks
!! # Repeat last command
history | grep [term] # Search command history
cd folder && ls # Chain commands
alias ll='ls -la' # Create shortcut command
CTRL + C # Stop a running command
CTRL + D # Exit terminal or interpreter
📘 Recommended Reading & Channels
- Linux Basics for Hackers
- The Hacker Playbook
- YouTube: NetworkChuck, IppSec, STÖK, Hackersploit, David Bombal
🛡️ Stay Legal
- Only hack with permission.
- Practice on test machines or online labs.
- Document everything. Skills matter more than shortcuts.
👨💻 Happy Hacking — From Your Pocket Terminal.
Related Skills
feishu-drive
354.3k|
things-mac
354.3kManage Things 3 via the `things` CLI on macOS (add/update projects+todos via URL scheme; read/search/list from the local Things database)
clawhub
354.3kUse the ClawHub CLI to search, install, update, and publish agent skills from clawhub.com
Metodologias_causa_raiz
Agente de IA Consultor em Balanced Scorecard com arquitetura RAG otimizada (LangGraph + Redis + Cohere)
Security Score
Audited on Apr 5, 2026
