Mobile phones are very portable and useful. Hackers dream device is mobile phone with Kali Linux installed. Kali Linux
NetHunter project is a Open Source Android penetration testing platform for Nexus and One Plus devices. By using NetHunter we can install Kali Linux on supported Android smartphone, but there are some unofficial tutorial to install NetHunter on any phone with/without root our Android device. Now we can
install Kali Linux NetHunter rootless on any
non-rooted Android smartphone officially this is made by
Re4son.
 |
Nethunter Rootless -- NetHunter for non rooted devices with KeX support |
Requirements:
- Android device (Stock unmodified device, no root or custom recovery required).
- Decent Internet connection.
Installation:
- First we install the NetHunter store app from https://store.nethunter.com
- From the NetHunter store , we need to install 'Termux', 'NetHunter-KeX client' and 'Hacker's keyboard'. (The button “install” may not change to “installed” in the store client after installation - just ignore it and Starting termux for the first time may seem stuck while displaying “installing” on some devices - just hit enter.)
- Open Termux application and type following commands one by one:
termux-setup-storage
pkg install wget
wget -O install-nethunter-termux https://offs.ec/2MceZWr
chmod +x install-nethunter-termux
./install-nethunter-termux
How to use:
We need to open Termux app and type one of the following:
Command | To |
nethunter | start Kali NetHunter command line interface |
nethunter kex passwd | Configure the KeX password (only needed before 1st use) |
nethunter kex & |
| start Kali NetHunter Desktop Experience |
|
nethunter kex stop | stop Kali NetHunter Desktop Experience |
- The nethunter command can be abbreviated to nh.
- If we run kex in in the background (&) without having set a password, bring it back to the foreground first when prompted to enter the password, that is via fg <job id> - we can later send it to the background again via Ctrl+z and bg <job id>
- To use KeX, start the KeX client, enter our password and click connect.
- For a better viewing experiance, enter a custom resolution under "Advanced Settings" in the KeX client.
Tips:
- Run apt update && apt full-upgrade command thing after installation. If we have enough storage space available we can run apt install kali-linux-full as well.
- Firefox doesn't work on unrooted devices. We can remove it and install Chromium via those commands, apt remove firefox-esr and apt install chromium. Then find "Chromium Web Browser" item in application menu right click and select "Edit Application" then change the command to /usr/bin/chromium --no-sandbox %U
- All of the penetration testing tools are working but some of them might have restrictions because of non-rooted device. For example metasploit works fine but doesn't have database support.
- Some utilities like "top" can't be run in unrooted Android.
- We can perfrom a regular backups of out rootfs by stopping all nethunter sessions and typing following command in termux session:
tar -cjf kali-arm64.tar.xz kali-arm64 && mv kali-arm64.tar.xz
On older devices, change "arm64" to "armhf".
Join the
forums to exchange tips and ideas and be part of a community that strives to make NetHunter even better. Follow us on Blogger and
Twitter.