NetHunter Rootless — Official Kali NetHunter for non rooted phones
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.
- Android device (Stock unmodified device, no root or custom recovery required).
- Decent Internet connection.
- 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-storagepkg install wgetwget -O install-nethunter-termux https://offs.ec/2MceZWrchmod +x install-nethunter-termux
How to use:
We need to open Termux app and type one of the following:
- 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.
- 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, and . 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”.
Originally published at https://www.kalilinux.in.