Installing Kali NetHunter on a phone

Install Kali NetHunter on a Samsung Phone

What is it?

Kali NetHunter represents a sophisticated, open-source mobile penetration testing platform tailored for Android devices, deriving its robust capabilities from Kali Linux. It accommodates a broad spectrum of device configurations, including non-rooted devices, rooted devices possessing a standard recovery, and rooted devices that are equipped with a custom recovery, provided there is a NetHunter-specific kernel available for them. This versatility ensures that Kali NetHunter caters to the varied requirements of the cybersecurity community, facilitating comprehensive security assessments and testing across a diverse range of Android devices.

  • [Installation by 'rooting' a Samsung A6 Plus (jump to section)] (#KNH_A6P)
  • [Installation on Samsung A41 (jump to section)] (#KNH_A41)

A6 Plus installation

Rooting the Samsung A6 Plus involved several steps, requiring careful attention to detail and a thorough understanding of the process. This procedure utilized TWRP (Team Win Recovery Project), Magisk, and Odin tools to achieve root access, thereby allowing the user enhanced control over the device for advanced customization and optimization. Below is a brief overview of the professional approach to root a Samsung A6 Plus phone:

  1. Preparation:
    • Ensure that all necessary data is backed up to prevent loss.
    • Download and install the latest Samsung USB drivers on your computer.
    • Enable USB Debugging and OEM Unlock in the Developer Options on your device.
  2. Unlocking the Bootloader:
    • Reboot the device into Download Mode and use Odin to unlock the bootloader, which is a prerequisite for flashing custom recovery.
  3. Flashing TWRP with Odin:
    • Download the correct TWRP image for the Samsung A6 Plus.
    • Open Odin on your PC, connect your device in Download Mode, and flash the TWRP image to the device.
  4. Installing Magisk with TWRP:
    • Boot the device into Recovery Mode to access TWRP.
    • Use TWRP to flash the Magisk zip file for rooting the device.
  5. Finalizing Root:
    • After installing Magisk, reboot the device.
    • Install the Magisk Manager app to manage root permissions for apps and services.
  6. Verification:
    • Verify root access using a root checker app from the Play Store or by using Magisk Manager.

It's crucial to note that rooting a device can void warranties and may pose risks if not performed correctly. Professional guidance or extensive experience with Android firmware is recommended when attempting to root a device.

Install NetHunter

Kali Desktop Experience:

  • Install the app for Kali NetHunter App Store (https://store.nethunter.com)
  • Install Hackers keyboard(optional)
  • Install NetHunter KeX application and dependencies
  • In termux, set a non-view-only password for NetHunter KeX (e.g. knhkex)
    • nethunter kex passwd
      • choose a password
      • when asked if you want to enter a view-only password, enter “n” then press Return
    • Start Nethunter “nethunter
    • Start KeX “kex”, taking note of the port number (5901). There may be some error messages but they can be ignored
    • Open the NetHunter KeX application and change the port to 5901(VNC)
    • Enter the KeX password, ensuring the save password box is checked.
    • Select connect
    • The Kali Linux GUI should then appear.

Install Kali NetHunter on a Samsung A41 phone(unrooted)

Installation

Kali Desktop Experience:

Warning: This feature is not stable so I recommend you use the CLI instead.

  • Install the app for Kali NetHunter App Store (https://store.nethunter.com)
  • Install Hackers keyboard(optional)
  • Install NetHunter KeX application and dependencies
  • In termux, set a NON-view-only password for NetHunter KeX (e.g. knhkex)
    • “nethunter kex passwd”
      • choose a password
      • when asked if you want to enter a view-only password, enter “n” then press Return
    • Start Nethunter “nethunter”
    • Start KeX “kex”, taking note of the port number (5901). There may be some error messages but they can be ignored
    • Open the NetHunter KeX application and change the port to 5901(VNC)
    • Enter the KeX password, ensuring the save password box is checked.
    • Select connect
    • The KaliLinux GUI should then appear.