/Kali-Linux-Termux

Kali Linux with GUI in Termux

Primary LanguageShell

Kali Linux Termux

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

stable on termux v.0.119.1

  termux-setup-storage && apt update && apt upgrade -y && pkg install wget -y && wget -qO- https://raw.githubusercontent.com/xiv3r/Kali-Linux-Termux/refs/heads/main/install.sh | sh && sh install-nethunter-termux

Note

script include Auto Run Kali on every startup

User terminal nh

Root terminal nh -r

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

  • 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
    

Prevent Termux VNC service from being Killed.

" 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:

  • Auto Fixed

    curl https://raw.githubusercontent.com/xiv3r/Kali-Linux-Termux/refs/heads/main/adb.sh | sudo sh
    
  • Maual install

    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 commands below, 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