Kali Linux NetHunter on Termux is a powerful tool for security professionals and enthusiasts. It allows users to perform a variety of security assessments on their Android devices without rooting them.
-
Auto Install
termux-setup-storage ; apt update ; apt upgrade -y ; apt install curl -y ; curl https://raw.githubusercontent.com/xiv3r/Kali-Linux-Termux/refs/heads/main/install.sh | sh ; ./install-nethunter-termux
-
Auto Run on startup
-
Manual user:
nh
-
Manual root:
nh -r
- Note: Only the Full nethunter image support vnc service, choose 1 and hit enter.
-
After installing;
( to configure your vnc password )
nh kex password
( to enable vnc service )
nh kex &
-
Next Open the VNC and place kali as username and your vnc password
Note:To update and upgrade nethunter. it is required to change nameserver from /etc/resolv.conf
sudo echo "nameserver 8.8.8.8" >> /etc/resolv.conf sudo echo "nameserver 1.1.1.1" >> /etc/resolv.conf
-
Kali main sources.list
echo "deb http://mirrors.ocf.berkeley.edu/kali kali-rolling main contrib non-free non-free-firmware" | sudo tee /etc/apt/sources.list
-
Autostart kali with vnc
echo "clear ; nh ; nh kex &" >> $PREFIX/etc/bash.bashrc
" Process completed (signal 9) - press Enter "
-
Without PC Using Wireless debugger VIDEO
-
Install adb in termux:
apt install android-tools -y
-
Install adb and fastboot in linux and windows:
apt install adb fastboot -y
Note: Connect your mobile to the computer then enable Developer Option and enable USB Debugging
-
Now Execute
adb devices
Note:Popup and Pair your device
-
Execute the below commands, These commands will disable the phantom process killer:
adb shell /system/bin/device_config set_sync_disabled_for_tests persistent adb shell /system/bin/device_config put activity_manager max_phantom_processes 2147483647 adb shell settings put global settings_enable_monitor_phantom_procs false
-
To verify:
adb shell /system/bin/dumpsys activity settings | grep max_phantom_processes adb shell /system/bin/device_config get activity_manager max_phantom_processes