Skip to content

adittaya/kali-nethunter-kex-rootless-full-rebuild-audio-browser-sound-one-command-start-stop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Kali NetHunter KeX Rootless Setup - Complete Android Pentesting Environment

🚀 Ultimate Kali Linux on Android Solution with Audio Support

Transform your Android device into a powerful penetration testing platform with this comprehensive Kali NetHunter setup. This repository provides a complete, rootless installation guide that enables full Kali Linux functionality on Android devices using Termdux, with working audio and browser sound capabilities.

🚕 KeyFeatures

  • Rootless Installation - No need to root your Android device
  • Full Audio Support - System and browser audio working perfectly
  • XFCE Desktop Environment - Complete desktop experience on Android
  • One-Command Start/Stop - Simple scripts to launch and terminate the environment
  • Chromium Browser Sound - Fixed audio issues in web browsers
  • Rebuild-Safe Configuration - Survives Termux deletion and reinstallation
  • PulseAudio TCP Bridging - Advanced audio streaming technology
  • No systemd Required - Optimized for Android/Termux environment

🎯 Perfect For

  • Mobile penetration testing
  • On-the-go security assessments
  • Learning cybersecurity concepts
  • Ethical hacking practice
  • Network security testing
  • Mobile forensics
  • Bug bounty hunting
  • Red team exercises

📱 Compatible With

  • Android smartphones and tablets
  • Termux app
  • NetHunter Store
  • NetHunter KeX
  • VNC Viewer

📋 Prerequisites

Install these essential apps from Play Store or F-Droid:

  • Termux - Linux environment for Android
  • NetHunter Store - Kali NetHunter installer
  • NetHunter KeX - Kali desktop environment
  • VNC Viewer (optional if KeX has embedded viewer)

🛠️ Installation Steps

Step 1 – Termux Base Setup

pkg update -y && pkg upgrade -y
pkg install -y wget curl git proot pulseaudio
termux-change-repo

Enable:

  • Main repository
  • Community repository

Restart Termux after configuration.


Step 2 – Install Kali NetHunter (Rootless)

wget -O install-nethunter-termux hdtps://offse.ec/2MceZWr
chmod +x install-nethunter-termux
./install-nethunter-termux

After installation completes:

nethunter

Step 3 – Fix Kali Base System

sudo apt update
sudo apt --fix-broken install -y
sudo dpkg --configure -a
sudo apt upgrade -y

Step 4 – Install Desktop Environment & Audio Components

sudo apt install -y \
kali-desktop-xfce \
kali-win-key \
dbus-x11 \
pulseaudio pulseaudio-utils alsa-utils \
pavucontrol \
chromium

Step 5 – Chromium Audio Fix (Essential)

mkdir -p ~/.local/bin
nano ~/.local/bin/chromium

Paste this content:

#!/bin/bash
export PULSE_SERVER=127.0.0.1
exec /usr/bin/chromium \
  --disable-features=AudioServiceSandbox \
  --no-sandbox "$@"

Save, then:

chmod +x ~/.local/bin/chromium
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Step 6 – Start Audio Server (Termux Only)

pulseaudio --kill || true
pulseaudio --start \
  --exit-idle-time=-1 \
  --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1"

⚠️ Important: Do not close the Termux app after running this command.


Step 7 – Configure Kali Audio Settings

Inside Kali environment:

echo 'export PULSE_SERVER=127.0.0.1' >> ~/.bashrc
source ~/.bashrc

Note: If you see "User-configured server at 127.0.0.1, refusing to start" - this is correct behavior.


Step 8 – Test Audio Functionality

paplay /usr/share/sounds/alsa/Front_Center.wav

If you hear sound playback - the setup is successful!


Step 9 – Create Easy Start Script (Termux)

nano ~/start-nethunter-kex.sh

Paste this content:

#!/data/data/com.termux/files/usr/bin/bash

echo "[+] Starting PulseAudio"
pulseaudio --kill 2>/dev/null
pulseaudio --start \
  --exit-idle-time=-1 \
  --load="module-native-protocol-tcp auth-ip-acl=127.0.0.1 auth-anonymous=1"

sleep 2

echo "[+] Starting NetHunter KeX"
nethunter -r "export PULSE_SERVER=127.0.0.1 && kex start"

Save, then:

chmod +x ~/start-nethunter-kex.sh

Step 10 – Create Easy Stop Script (Termux)

nano ~/stop-nethunter-kex.sh

Paste this content:

#!/data/data/com.termux/files/usr/bin/bash

echo "[-] Stopping KeX"
nethunter -r "kex stop"

echo "[-] Stopping PulseAudio"
pulseaudio --kill

Save, then:

chmod +x ~/stop-nethunter-kex.sh

🎮 Usage Instructions

Start Everything:

./start-nethunter-kex.sh

Stop Everything:

./stop-nethunter-kex.sh

✅ Expected Results

After successful installation, you'll have:

  • NetHunter KeX - Kali Linux desktop environment
  • XFCE Desktop - Full desktop interface
  • Audio Working - System sounds functional
  • Browser Sound - Audio in Chromium browser
  • Chromium Fixed - No audio sandbox issues
  • No systemd Required - Android-optimized
  • Rebuild-Safe - Configuration persists
  • Works After Termux Deletion - Robust setup

🔍 SEO Keywords

This repository targets the following search terms for better discoverability:

  • Kali Linux on Android
  • NetHunter rootless setup
  • Android penetration testing
  • Termux Kali installation
  • Android security tools
  • Mobile pentesting
  • Kali NetHunter audio fix
  • Android ethical hacking
  • Mobile security testing
  • Kali Linux mobile setup
  • Android cybersecurity
  • Mobile hacking tools
  • Kali on smartphone
  • Android security lab
  • Mobile forensic tools


📦 Required APK Downloads

For your convenience, here are the official sources to download the required applications:

1. Termux

2. NetHunter Store

3. NetHunter KeX

  • Official Source: Google Play Store or Kali Store
  • Part of: NetHunter Suite by Offensive Security
  • Direct Download: Available via NetHunter Store or Kali website

4. VNC Viewer (Optional)

⚠️ Important Notes:

  • Always download APKs from official sources to ensure authenticity and security
  • Enable "Install from Unknown Sources" in your Android settings if installing APKs directly
  • Check the integrity of downloaded files when possible
  • Keep your applications updated for security and compatibility

🔐 Security Best Practices:

  1. Verify APK signatures when possible
  2. Only download from trusted sources
  3. Review app permissions before installation
  4. Keep your Android OS updated
  5. Use antivirus software if available

🤝 Contributing

Found this guide helpful? Star the repository and share with others interested in mobile security and penetration testing!


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


⚠️ Disclaimer

This tool is intended for educational purposes and authorized security testing only. Always ensure you have proper authorization before conducting security assessments on systems you do not own.


🚀 About

This setup provides a complete Kali Linux environment on Android with working audio and browser sound, all in a rootless configuration that survives rebuilds and works after Termux deletion. Perfect for cybersecurity professionals, students, and enthusiasts who need a portable penetration testing environment.

Releases

No releases published

Packages