Reading Material
NetHunter Architecture & Android Root Preparation Lesson 1 of 9
In Progress

Kali NetHunter: Architecture, Edition Comparison & Feature Matrix



Kali NetHunter is a free and open-source Mobile Penetration Testing Platform for Android Devices (based on Kali Linux) developed by Offensive Security, the creator of the popular Kali Linux distribution. 

It is designed for various devices and includes support for hacking wireless networks, web applications, and mobile devices.

NetHunter supports wireless 802.11 frame injection, one-click MANA Evil Access Point setups, HID keyboard (Teensy-like attacks), as well as BadUSB MITM attacks. It also includes a custom kernel, which has been specially configured for penetration testing and includes support for various wireless hacking tools. NetHunter also includes several command line utilities, including Nmap, Metasploit, and sqlmap, making it a powerful platform for network and application security testing.

NetHunter can be installed on almost every Android device under the sun using one of the following editions:

  • Non-rooted devices (NetHunter Rootless)
  • Rooted devices that have a custom recovery (NetHunter Lite),
  • Rooted devices with custom recovery for which a NetHunter-specific kernel is available (NetHunter).

The following table illustrates the differences in functionality:

Feature

NetHunter Rootless

NetHunter Lite

NetHunter

App Store

Yes

Yes

Yes

Kali cli

Yes

Yes

Yes

All Kali packages

Yes

Yes

Yes

KeX

Yes

Yes

Yes

Metasploit w/o DB

Yes

Yes

Yes

Metasploit with DB

No

Yes

Yes

NetHunter App

No

Yes

Yes

Requires TWRP

No

Yes

Yes

Requires Root

No

Yes

Yes

WiFi Injection

No

No

Yes

HID attacks

No

No

Yes




NetHunter Architecture & Android Root Preparation Lesson 2 of 9
In Progress

Android Rooting & Systemless Magisk Setup for NetHunter

Magisk Manager is a widely used rooting tool for Android devices. It provides you the root access of the Android device through which you can access additional features, you can also customize Superuser permissions and other system grants.

Steps to root any Android Device using Magisk Manager

Before we proceed further, make sure you have unlocked the Bootloader of your Android Device.
Click here if you are not yet done:
1. Download Magisk Manager and rename it to a zip file:

2. Now, Switch off your device and boot it into the recovery mode by pressing the volume up, home, and power buttons simultaneously.

3. Click on Install select the Magisk zip file and flash it, and then reboot the system.

4. Now you can check the root access using a Root checker application.


NetHunter Architecture & Android Root Preparation Lesson 3 of 9
In Progress

Bootloader Unlocking & Custom Recovery Environment Setup

If you have read these articles, then you have a basic understanding of rooting, and its advantages, and disadvantages. In this same article, we also rooted a Samsung device using Odin. 

Learn More:

  • Android Rooting: 
  • Flashing the Custom ROM to the phone: 

What if you are using a device like Vivo, Oppo, Infinix, or much more similar to these companies, then the previous steps cannot work. 

Hello everyone, I welcome you all to a new article, where we will be going to root my Infinix device, model no: hot 8 x650c. Let’s see how it will be done, and also we are going to find a way to install LineageOS unofficial version.

Before getting started make sure you have a Micro SDcard or a Pendrive in your hand. Always remember, This process may lose your data and take a backup of your storage and applications.

Firstly, download the required tools below the link. 

Required tools

Once you have specified tools ready, then open Command Prompt by clicking window + R and type CMD, and hit OK.

Now, you need to enable USB debugging and "enable OEM unlock" from Developer Options. 
Microsoft Windows[Version 6.3.9600]
(c) 2013 Microsoft Corporation. All right reserved.

C:\users\mrdev>adb devices
* daemon not running; starting now at tcp:5037
* daemon started sucessfully
List of devices attached
045613298V004882device

C:\users\mrdev>
C:\users\mrdev>adb reboot bootloader

C:\users\mrdev>
C:\users\mrdev>fastboot devices

C:\users\mrdev>
Before that, you have to enable it by following this path. Tap on Settings then System then About Phone and then tap a few times on build number, usually seven to nine times. Now, go back to the menu and you will see Developer options as shown following.

Once you are done with it, connect the phone to the USB cable and type adb devices to check if the device is recognized or not.

Allow USB debugging on your phone.


Now switch to fastboot mode using ADB reboot bootloader. 

Now my device is successfully switched to fastboot mode. 


Type fastboot devices to check if the device is recognized or not. 

If the device is not listed then check the driver setting if there is an issue with it.

I found the issue is with the driver, so I have to update the driver. Extract the Fastboot driver zip file. 


Now switch to the Device Manager window and right-click on android, and click on update driver. 

From here click on the manual procedure. 

From here click on "Let me pick from a list of available drivers on my computer".

Select "Show All Devices" and click Next:

C:\users\mrdev>fastboot devices
045613298V004882fastboot

C:\users\mrdev>
C:\users\mrdev>fastboot flashing unlock
(bootloader) Start unlock flow

OKAY [ 23.327s]
Finished. Total time: 23.362s

C:\Users\mrdev>

Now click on the hard disk and select the android_winUSB file from the extracted zip file.

From here choose the android bootloader interface and click next to install the driver without having trouble.

Now issue the command if the device is listed or not. 

To unlock the bootloader and enable partitions to be reflashed, run the fastboot flashing unlock command on the device. 

Press the volume up button to continue the process.

Type the following command to check if we are succeeded or not.
C:\Users\mrdev>fastboot getvar unlocked
unlocked: yes
Finished. Total time: 0.002s

C:\Users\mrdev>
C:\Users\mrdev>fastboot reboot
Rebooting
Finished. Total time: 0.005s

C:\Users\mrdev>
Microsoft Windows[Version 6.3.9600]
(c) 2013 Microsoft Corporation. All right reserved.

C:\users\mrdev>adb devices
* daemon not running; starting now at tcp:5037
* daemon started sucessfully
List of devices attached
045613298V004882device

C:\users\mrdev>
C:\users\mrdev>adb reboot bootloader

C:\users\mrdev>fastboot devices
045613298V004882fastboot

C:\users\mrdev>
C:\Users\mrdev>fastboot --disable-verity --disable-verification flash vbmeta c:\Users\mrdev\Downloads\TWRPv0.3\TWRPv0.3\vbmeta.img
Rewriting vbmeta struct at offset: 0
Sending 'vbmeta' (4 KB)OKAY [ 0.025s]
Writing 'vbmeta'OKAY [ 0.034s]
Finished. Total time: 0.081s

C:\Users\mrdev>fastboot flash recovery c:\Users\mrdev\Downloads\TWRPv0.3\TWRPv0.3\recovery_v0.3.img
Sending 'recovery' (23494 KB)OKAY [ 0.025s]
Writing 'recovery'OKAY [ 0.0309s]
Finished. Total time: 1.568s

C:\Users\mrdev>

Now reboot the device using fastboot reboot. 

The reboot takes time to initiate. Due to the flashing unlock command the device reset, so we have to settings up the device again.

Again, we have to allow USB debugging, which will help us to proceed with further steps. Now we have to flash the TWRP recovery software, which we have downloaded previously. 

Extract the zip file, where you find out two image files and a zip file.

Before we flash the image file, we have to copy the following files to the Micro SD card and Also copy Magisk Manager to the SD card. 

Now, open the Command prompt and run adb devices command to check if the device is listed or not.

Now switch to fastboot mode, and check if the device is recognized or not. If your device is not listed, then again update the driver.

Now, type the following command to flash TWRP recovery software:

Once flashing is complete, turn on your device using the power button along with the volume up button. You will display it with the TWRP recovery screen. 

Now click on install and select the SD card. Now flash each of the files one by one.

If everything was done without having an error, just reboot your system. This is the complete process to root this type of device.                        

If you wish to flash custom ROM then read the below Article:
Kali NetHunter Installation Modes Lesson 4 of 9
In Progress

Installing Kali NetHunter Rootless on Android via Termux & PRoot

What if we could install Kali Linux on our mobile phones as well as our computer? If I say yes we can install Kali Linux on our device without having to root our mobile device. Kali Linux is widely used for advanced Penetration Testing and Security Auditing.

$pkg install wget
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
$ wget -O install-nethunter-termux https://offs.ec/2MceZWr
$ls
install-nethunter-termuxstorage
$chmod +x ./install-nethunter-termux
$./install-nethunter-termux
$cp storage/download/kalifs-arm64-full.tar.xz .
$./install-nethunter-termux
┌──(mrdev㉿kali)-[~]
└─$kex passwd
┌──(mrdev㉿kali)-[~/]
└─$kex
┌──(mrdev㉿kali)-[~/Download]
└─$ nano /etc/vnc.conf
$nethunter -r


Prerequisite:

  1. Android Device (Stock unmodified device, no root or custom recovery required)
  2. Termux 
  3. Download NetHunter-KeX client, and Hacker's keyboard from NetHunter Store.

Install and Configure

Open Termux and type:


Download rootfs File Manually and install Kali NetHunter

1. Open your browser and visit this link: https://images.kali.org/nethunter/kalifs-arm64-full.tar.xz to download rootfs file. 

2. Copy rootfs file:

3. Run again following command to install:

nethunter

NetHunter GUI

1. To interact with Nethunter GUI you have to reset kex password:

2. To run it by the following command:

3. Open the NetHunter Kex VNC tool and change the port number and password. Now click connect to connect.

nethunter gui

Make your device a server

If you want to access NetHunter GUI from your laptop or any other phone, It need to configure vnc.conf file.

So go to NetHunter. Now open vnc.conf file using a nano text editor.

Scroll end and write the following code:

config vnc

Download RealVNC and connect with IP and Port number. Run Kali with root privileges then type the following:

Kali NetHunter Installation Modes Lesson 5 of 9
In Progress

Installing Kali NetHunter Lite on Any Rooted Android Device

Kali NetHunter Lite is a lightweight version of the Kali NetHunter penetration testing platform for Android devices. It is designed for devices with low hardware specifications and limited resources, such as smartphones with low memory and storage capacity. 

Here, in this video, we will be going to install Kali Nethunter lite on a non-listed device. Remember, your Android device must be rooted with the help of the Magisk manager

Kali NetHunter Lite can be installed on any compatible Android device, as long as the device is rooted. It is not available on the Google Play Store, so you will need to download the NetHunter Lite image file from the Kali Linux website and install it on your device manually.

Note: To install Kali NetHunter Lite on an Android Device, your Device must be rooted with Magisk Manager

Here, In this article, I am going to install Kali NetHunter lite on a  Samsung Galaxy J7 (2015)  non-listed Android Device.

According to the Specifications, Samsung Galaxy J7 (2015) is a 32-bit of Architecture. Since the  Samsung Galaxy J7 (2015) has low space, so I have to download the nano version.

Follow the below Article to root your Android Device:

I recommend you all install Kali NetHunter Lite on LineageOS. Because LineageOS is customizable and the most important part is, "After a successful flash, you can showcase Kali Boot Animation ".

Install Kali NetHunter Lite on LineageOS

Follow the below steps to install Kali NetHunter Lite on Samsung Galaxy J7 (2015) on LineageOS:

1. Launch the Magisk Manager app.

2. Tap on Module Tap.


3. Choose the "NetHunter Generic ARMhf kalifs-full" zip file from Storage, which we have downloaded from the Kali Linux official site.


4. So that it will automatically flash NetHunter Lite custom ROM.

5. This process may take 25 minutes or more. Once the custom ROM flashes, reboot your device.

6. Once boot up, you will find 4 newly installed applications.

7. Launch NetHunter Application. 

  • Allow all permission for NetHunter application and also grant root privilege.

8. NetHunter Lite successfully booted up, but " Kali Chroot manager " is not up and running, so we have to install Kali Chroot.

9. Tap on Kali Chroot Manager, and then click "Install Kali Chroot".

11. Click on " Start Kali Choot ", to start to chroot environment.

12. Once installation is successful, you will find out NetHunter Lite is up and running.

When the Kali Chroot Manager is running, you can use it to manage the Kali Linux Chroot environment on your Android device. This includes installing and removing tools, configuring settings, and accessing the command-line interface (CLI) version of Kali Linux.

These are the complete process to install and set up Kali NetHunter Lite on a non-listed device.

Install Kali NetHunter Lite without LineageOS support

If your device does not have lineageOS support, you can follow a similar process to install it.

Sometimes, After a successful flash, if you do not find the NetHunter applications, then you will have to flash the Kali Nethunter Lite from TWRP recovery software.  

Follow the below steps to install Kali NetHunter lite on any Android device:

1. Firstly, switch off your Mobile, and switch to the TWRP recovery mode by pressing the Power button, volume up, and Home button simultaneously.

2. Here, click on Install and tap on the downloaded Kali NetHunter zip file. 

It will automatically flash the software and install the required packages.

3. On successful flash, reboot the system. Now, launch the  Kali NetHunter lite Application from the Application Menu. 

4. Allow all Permission and, Grant superuser privileges

5. Once Superuser privilege is granted, the Kali NetHunter lite app automatically detects installation files. Kali NetHunter lite successfully boots up, but Kali Chroot's manager is not up and running. 

6. To set up Kali Chroot, Tap on the " Kali Chroot Manager ".

7. If you face this error, we will have to install Kali Chroot manually. Firstly, extract the zip file and copy the " tar.xz " file to the home (Device Storage)  directory.

8. Go back to the Kali NetHunter Application and Tap on " Install Kali Chroot  Restore from Local Storage (.tar.gz, .tar.xz), and set the path of the file.

9. This installation process takes time, based on System performance. 

10. Chroot Manager was successfully installed, but various file systems are not yet mounted. So we have to start Kali Chroot, to start Kali Chroot environment.

11. Tap on Start Kali Chroot to the chroot environment.

12. Kali Chroot manager is up and running.

When the Kali Chroot Manager is running, you can use it to manage the  Kali Linux Chroot environment on your Android device. This includes installing and  removing tools configuring settings, and accessing the  command-line interface (CLI) version of Kali Linux.

Kali NetHunter Installation Modes Lesson 6 of 9
In Progress

Installing Full Kali NetHunter with Custom Kernel & Wireless Injection

Installing Kali NetHunter may take a long process and be too complicated. I have already created these videos, you can find them on my blog or on my YouTube channel. Here, in this video, I am going to install Kali NetHunter on a Listed Device on the Kali Nethunter Download page.

Before getting started, our first priority is to ready the required tools and resources.

Make sure, your system has been configured with  Platform Tools on your Windows PC, if you have not yet configured then follow the below links:

Unlock The Bootloader

To root an Android Device, our first priority is to unlock the bootloader. It is not easy to unlock the bootloader in the Nokia 6.1 Plus because Nokia Smartphones do not officially offer bootloader unlock codes (except for the Nokia 8).

While searching on Google, I found this article briefly explaining the steps to unlock the bootloader.

Install Nokia USB Drivers

To install Nokia USB Drivers, Firstly, Plug in a USB cable. Once Plug-in, It will automatically show us the Nokia Drivers. 

Firstly, copy all these to a new directory and then install it.

Download the Nokia Bootloader Unlock Tool

Once the Driver is installed, Download the Nokia Bootloader Unlock Tool. Click on the Download to Download it.

Reboot the Phone into Bootloader Mode

Once Downloaded, next, we have to reboot the phone into bootloader mode.

Firstly, we have to enable developer options. To do this, go to Settings  About phone.


Scroll down and tap on the "Build number" field 7 times. 

Go back to the previous menu and click on System → tap on Advanced  → Developer Options

  • Toggle the "USB debugging" option to "On" to enable USB debugging. 

Now, again connect your device to your computer using a USB cable and open a command prompt by pressing Windows + R, and typing cmd.

Type the following command to list the connected Android devices that are detected by the Android Debug Bridge (ADB) tool. 

Microsoft Windows [Version 10.0.19044.1288]
(c) Microsoft Corporation. All rights reserved.

C:\Users\ajuam>adb devices
* daemon not running; starting now at tcp:5037
* daemon started successfully
List of devices attached
DRGID18092408445unauthorized

As you can notice, an Android Device is listed but it does not have any authorization. We have to allow USB debugging to authorize the device to run ADB commands.

As you can see the device now has authorization.

C:\Users\ajuam>adb devices
List of devices attached
DRGID18092408445device

Now, type the following command to reboot your device into bootloader mode.

C:\Users\ajuam>adb reboot bootloader

As you can see, my Android device is now switched to download mode, which means we are on Bootloader mode or fastboot mode.

Generate OTP for the Unlock Tool

Click on Generate OTP, and click on Get the OTP

The OTP is valid for 15 minutes from generation.

Run the Unlock Tool and unlock your phone

Extract the previously downloaded "Nokia Bootloader Unlock tool".

Run the “Bootloader Unlock by tm.exe” file.

On execution, you will find out below the window.

Here, paste the OTP, and then click on Begin Unlock

Once you click on the Begin Unlock button, you will notice various processes. Wait for the process to complete. 

Confirm “Unlock the bootloader” press the volume down button, and then press the Power button to continue the procedure.

After reboot, it will automatically erase all data and we have to confirm "unlock the bootloader" a second time.

Now again confirm the unlock of the bootloader as shown on my screen.

Now, as you can notice, The Bootloader unlock is completed, and we are ready to flash the recovery software that we have downloaded previously.

Flash Recovery Image

To flash the recovery image, we have to Enable developer options again, as the Android device is completely reset.

Now, open a command prompt by pressing Windows + R, typing cmd, and then type the following command to list the connected Android devices.

C:\Users\ajuam>adb devices
List of devices attached
DRGID18092408445device

Now, type the following command to reboot your device into bootloader mode.

C:\Users\ajuam>adb reboot bootloader

Once my device is booted to download mode, type the following command to list the connected Android devices that are detected by the fastboot tool.

C:\Users\ajuam>fastboot devices
DRGID18092408445fastboot

As you can see, a fastboot device is listed.

If somehow no devices are listed, it means that fastboot is not detecting any connected devices. This could be because the device is not correctly connected to the computer, or because the device is not in fastboot mode, or sometimes there will be a chance of missing driver issues. If there is a problem with the missing driver issue, then you can follow the below article:

To flash the recovery image, run the following command:

Type the fastboot flash boot, and “here drag and drop the path of the recovery image” to flash the recovery image file to my Android device.

C:\Users\ajuam>fastboot flash boot E:\Downloads\lineage-18.1-20220414-recovery-DRG.img
Sending 'boot_b' (36937 KB)OKAY [  0.885s]
Writing 'boot_b'OKAY [  0.261s]
Finished. Total time: 1.435s

After the flashing process is complete, type the following command to reboot an Android device into recovery mode.

c:\Users\ajuam>fastboot reboot recovery
Rebooting into recoveryOKAY [  0.000s]
Finished. Total time: 0.005s

Your device will boot into LineageOS recovery mode.


Now, we have to flash the LineageOS custom ROM zip file.

Flash Custom ROM (LineageOS 18.1)

To flash Lineage OS 18.1, firstly, we have to format the data. Tap on Factory Reset.

Now here click on Format the data/Factory Reset.


Now tap on Format Data to wipe out all data.

On click, it automatically wipes out all data. Once wipe-out data is completed, go back to the previous menu to flash custom ROM.

To flash custom ROM, click on “Apply Update”.

Click on Apply from ADB

Apply from ADB is a feature that allows a user to install OTA (over-the-air) updates or custom ROMs on an Android device using a command-line interface on a computer.

The command, that is used to apply an update is, “adb sideload <mention the location of the file>”. 

c:\Users\ajuam>adb sideload E:\Downloads\lineage-18.1-20220414-nightly-DRG-signed.zip
Total xfer: 1.00x
c:\users\ajuam>

On completion, I have to reboot my device.


After reboot, we have to set up LineageOS.

Flash Google Apps

Optionally, if you want to install an application package add-on such as Google Apps follow the below steps:

Turn off your device and then press the Power button along with the Volume up button to switch back to Recovery Mode.

Similar to the previous, tap on Apply Update, and then tap on "Apply from ADB".

Now, we have to flash the "MindTheGApps" zip file.  

C:\Users\ajuam>adb sideload E:\Downloads\MindTheGapps-11.0.0-arm64-20220217_100228.zip
Total xfer: 1.00x
C:\Users\ajuam>

Tap on "Yes" to continue the installation. 

On completion, go back to the previous menu and then click on "Reboot System Now".

After reboot, you will find fresh newly installed LineageOS.

As you can notice, Google apps are successfully installed. But, for better performance, I suggest you Erase the data. 

Setting → System → Advanced → Reset Options

After erasing, follow the instructions to set up the device. 

Now, we have successfully installed LineageOS 18.1 along with GApps. But, we don't have any root privileges.

Root Android Device

Now, again, we have to enable the USB debugging and then run the following command to list devices.

C:\Users\ajuam>adb devices
List of devices attached
DRGID18092408445device

Now, type the following command to reboot the device into recovery mode. 

C:\Users\ajuam>adb reboot recovery

Similar to the previous, we have to flash Magisk Manager. Firstly, tap on “Apply Update”, and then click on "Apply from ADB".

Now, we can flash Magisk Manager to root the device.

C:\Users\ajuam>adb sideload E:\Downloads\Magisk-v25.2.zip
Total xfer: 1.00x

C:\Users\ajuam>

Once the device is booted up, you will see the Magisk Manager app icon. But the Magisk Manager Application needs to be installed once again.

Tap on the Magisk app icon to Download the Magisk Manager application. 

Once downloaded, click on Install.

Once installed launch Magisk Manger Application.

Tap on Install to flash the newly downloaded Magisk manager

Here choose, Direct Install and then click on "Let's go":

On completion, tap on reboot to ensure that the changes take effect, and are properly configured and integrated with the operating system.

Install Kali NetHunter

Now, we are ready to Install Kali NetHunter custom ROM. Let me transfer the NetHunter custom ROM zip file to my Android device.


Launch the Magisk Manager app.

From here, go to the Modules tab

Tap on Import the file and import the Kali NetHunter ROM zip file.

So that it will automatically flash Kali NetHunter custom ROM.

This process may take 25 minutes or more. Once the custom ROM flashes, reboot your device.

Once boot up, you will find out 4 newly installed applications.

Now, launch the Kali NetHunter Application from the Application Menu and allow Permissions. 

Now, Grant superuser privilege

Once Superuser privilege is granted, the Kali NetHunter app automatically detects installation files.

Kali NetHunter successfully boots up, but "Kali Chroot manager" is not up and running. 

To set up Kali Chroot, Tap on the "Kali Chroot Manager" icon.

As you can notice, the Kali Chroot has already been installed, but various file systems are not yet mounted. So we have to start Kali Chroot in the "Start Kali Chroot" environment.

Now Kali Chroot is up. 

When the Kali Chroot Manager is running, you can use it to manage the Kali Linux Chroot environment on your Android device. This includes installing and removing tools, configuring settings, and accessing the command-line interface (CLI) version of Kali Linux.

These are the complete process to install and set up Kali NetHunter on a listed device.

Reading Material
NetHunter Tools, Desktop KeX & Hardware Attacks Lesson 7 of 9
In Progress

Kali Chroot Management & NetHunter KeX (Desktop GUI)

Kali NetHunter is a free and open-source Mobile Penetration Testing Platform for Android Devices (based on Kali Linux) developed by Offensive Security, the creator of the popular Kali Linux distribution. 

It is designed for various devices and includes support for hacking wireless networks, web applications, and mobile devices.
NetHunter Tools, Desktop KeX & Hardware Attacks Lesson 8 of 9
In Progress

ADB-ToolKit & Android Command Automation Suite

The ADB-Toolkit is a comprehensive BASH Script featuring 28 options, including a METASPLOIT Section with 6 additional options specifically tailored for penetration testing on Android devices. Developed in collaboration with ADB (Android Debug Bridge), this tool facilitates various tasks related to debugging and modifying Android applications.

mrdev@kali:~$git clone https://github.com/ASHWIN990/ADB-Toolkit.git
mrdev@kali:~$ls
ADB-Toolkit
mrdev@kali:~$ cd ADB-Toolkit
mrdev@kali:(~ADB-Toolkit/)# chmod +x ./install.sh
mrdev@kali:(~ADB-Toolkit/)# sudo bash ./install.sh install
mrdev@kali:(~ADB-Toolkit/)# sudo ./ADB-Toolkit.sh

Install & Configure on Linux

To get started with the ADB-Toolkit on Linux, follow these steps:

1. Open the Terminal and execute the command below to download or clone the ADB toolkit from its GitHub page:

2. Once downloaded, navigate to the toolkit directory and install it using the following commands:

3. After installation, you can launch the tool using the command:

For visual reference, a screenshot of the ADB Toolkit is provided below the commands.

ADB-toolkit

Any further guidance on the usage of the ADB Toolkit can be found in a video tutorial, where users can watch and discover the answers to their queries.

Reading Material
NetHunter Tools, Desktop KeX & Hardware Attacks Lesson 9 of 9
In Progress

Ghost-Framework: Remote ADB Access & Management

Ghost Framework is an Android post-exploitation framework that exploits the Android Debug Bridge to remotely access an Android device.





Why Ghost-Framework?

  • Simple and clear UX/UI
    • Ghost Framework has a simple and clear UX/UI. It is easy to understand and it will be easier for you to master the Ghost Framework.
  • Device shell access
    • Ghost Framework can access the remote Android device shell without using OpenSSH or other protocols.
  • Controlling device screen
    • Ghost Framework can access the device screen and control it remotely using a mouse and keyboard.

Install Ghost-Framework

To install Ghost Framework you should execute the following commands.
mrdev@kali:~$ git clone https://github.com/EntySec/ghost.git
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
mrdev@kali:~$ ls
ghost
mrdev@kali:~$ cd ghost/
mrdev@kali:~(ghost)# chmod +x install.sh
mrdev@kali:~(ghost)# ./install.sh
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
---------------------------------------------------------------------------------------------------------------------------------------
mrdev@kali:~(ghost)# cd
mrdev@kali:~$ ghost
mrdev@kali:~$ ls
ghost
mrdev@kali:~$ cd ghost/
mrdev@kali:~(ghost)# chmod +x uninstall.sh
mrdev@kali:~(ghost)# ./uninstall.sh
--------------------------------------------------------------------------------------------------------------------------------------- 
--------------------------------------------------------------------------------------------------------------------------------------- 
---------------------------------------------------------------------------------------------------------------------------------------
mrdev@kali:~(ghost)#
mrdev@kali:~$ ghost
ghost> help
ghost> options
ghost> set RHOST 192.xx.xx.xxx
ghost> run

Uninstall Ghost-Framework

To uninstall Ghost Framework you should execute the following commands.

Connect Android

Let me connect my Samsung J7 elite. So Plug in USB and allow USB debugging.

Note: Always remember, your target device must be connected with a wifi router, not with a mobile hotspot.

Now again open the terminal and follow these commands:

To find your device IP address go to Settings → About phone → Status.

Extra Credit

NetHunter Architecture & Android Root Preparation Quiz

NetHunter Architecture & Preparation Quiz

3 questions • Test your knowledge

Question 1
What is the key capability enabled exclusively by the "Full NetHunter" edition with a custom kernel compared to NetHunter Lite or Rootless?
Question 2
Which modern rooting solution provides systemless root by modifying only the boot partition without altering the read-only system partition?
Question 3
What happens to the user data stored on an Android phone when you unlock its bootloader via Fastboot?
Kali NetHunter Installation Modes Quiz

Installation Modes & Chroot Setup Quiz

2 questions • Test your knowledge

Question 1
How does NetHunter Rootless run Kali Linux on non-rooted Android phones?
Question 2
What is the role of the "Kali Chroot Manager" in the NetHunter Android app?
NetHunter Tools, Desktop KeX & Hardware Attacks Quiz

KeX & Mobile Exploitation Quiz

2 questions • Test your knowledge

Question 1
What is NetHunter KeX (Kali Desktop Experience)?
Question 2
What type of attack does NetHunter "DuckHunter / HID Attacks" perform when connected to a target computer via USB?
High-Resolution Preview