Advertisement

Responsive Advertisement

Kali NetHunter in Rootless Android

If you've ever wanted to harness the power of Kali NetHunter on your Android device without the need for rooting, you're in luck. In this guide, we'll walk you through the step-by-step process of installing Kali NetHunter with a graphical interface using Termux and Termux-X11.

Kali NetHunter in Android without root

Get Termux

Updating and Upgrading

First things first, let's ensure our environment is up-to-date:

$ apt update -y| apt upgrade pkg install wget -y


Installing Kali NetHunter

Visit the official Kali NetHunter website and follow the installation instructions. Once the installation is complete, you'll need to set a sudo password. Use 'kali' for simplicity:


Fixing Sudo Apt Update Error

If you encounter issues with sudo apt update, fix it by editing the resolv.conf file:

$ nano /etc/resolv.conf


Replace the following lines:

nameserver 8.8.8.8

nameserver 8.8.4.4


Editing Login Script

Edit the login script in Termux:

$ nano $PREFIX/bin/nh


Add the following line after '/dev':

-b /data/data/com.termux/files/usr/tmp:/tmp \


Installing Termux-X11

Install the X11 repository and Termux-X11:

$ pkg install x11-repo -y

$ pkg install termux-x11-nightly


Get Termux-x11 

Configuring Termux-X11

Edit the Termux properties file:

$ nano ~/.termux/termux.properties


Uncomment the external app line.


Starting X11 and Display Configuration

In Termux, start X11:

$ termux-x11 :1


In Kali NetHunter, set the display variable:

$ export DISPLAY=:1


Installing Dbus-X11 on Kali NetHunter

Install dbus-x11:

$ sudo apt install dbus-x11


Starting Dbus-X11 and XFCE4 Session

Start dbus:

$ dbus-launch xfce4-session

All Commands


Now you have successfully set up Kali NetHunter on your Android device without the need for rooting, complete with a graphical interface. Explore the power of Kali Linux tools directly from your mobile device. Happy hacking!


---

Post a Comment

0 Comments