Use Kali Linux NetHunter on Android

本文最后更新于:2023年7月10日 上午

Requirements

  1. A Physical Android Phone. You can do this install on an Android 12 phone,but a phone running on a version before Android 12 is recommended. See the link to the article below on GitHub on how Android monitors and kills forked child processes of apps when they use too much of the CPU. https://github.com/termux/terethutmux-app/issues/2366
  1. You will need to install Termux. You can get Termux from the F-Droid store or from their
    GitHub repo using one of the following links (In the demo we use GitHub):
  2. Download the latest Termux version at the time of writing it is termux-app_v0.118.0+github-debug_arm64-v8a.apk from the github link above.
  1. Open and Install the downloaded APK file. Press on Install and then Open.

apt update and apt upgrade

Debian Linux and many of its derivatives use APT (Advanced Package Tool) to install tools. We need to run apt update to get the package source information from the configured resources in the /etc/apt/sources.list file. This is how the system knows which files needs to be updated and where they can be downloaded from.

apt upgrade will then use the information to upgrade all the installed packages to their latest versions.

  1. Enter the following command: apt update
  1. Enter the following command: apt upgrade
  1. When you get asked to “Do you want to continue” press Y and Enter.
  1. When prompted for an action press Y and so you install the package maintainer’s version.
  1. Enter the following command:
    You want to do this, so you get the wget package information.
1
apt update
  1. Install wget and when you’re asked Do you want to continue, press Y and Enter.

apt install wget

  1. When you get asked to “Do you want to continue” press Y and Enter.
  1. Download the NetHunter install file.

wget -O install-nethunter-termux https://offs.ec/2MceZWr

12. Change the permissions so that you can execute the file:

chmod +x install-nethunter-termux

  1. Type the following command to execute the downloaded install file:

./install-nethunter-termux

  1. The installation will take a while, when asked to delete rootfs, enter N.

  2. To start Kali NetHunter you can use the following commands:

    • To start the CLI :nethunter
    • To setup the NetHunter KeX password :nethunter kex passwd
    • To start NetHunter KeX (Password will ve set on first startup) :nethunter kex
    • To stop the NetHunter KeX GUI :nethunter kex stop
    • To run NetHunter as root : nethunter -r
    • You replace nethunter with nh in all these commands. :nh
  3. Once you run nh you are now in the Kali NetHunter CLI.

  1. You can exit the NetHunter CLI by entering exit.
  1. Set the password for KeX VNC by running nh kex for the first time. You’ll use the password again in Step 26 so remember it.
  1. Remember the port number. You will use it in Step 26.
  1. Set the password for KeX VNC by running nh kex for the first time. Say no to entering a view-only password.
  1. Go to the Kali NetHunter App Store website: https://store.nethunter.com/en/
  1. Download the NetHunter App Store.
  1. Press on the Hamburger button of your browser, go to downloads and install NetHunterStore.apk
  1. Press on the search button and enter KeX. Press to download NetHunter KeX.
  1. Press on the search button and enter KeX. Press to download and install KeX.
  1. You will get a popup window. You click on Settings, and then toggle Allow from this source. Then press Install.
  1. Press on Allow to allow NetHunterKeX access to your files on the device.
  1. Enter the port number from step 19, username as kali, and your password from step 14. Press on Connect.
  1. You now should have Rootless Kali NetHunter GUI on your Android Phone!

Using the SSH server

in termux

1
2
3
4
5
6
7
8
9
pkg update
pkg upgrade
pkg install openssh
sshd # start openssh server
passwd # set password

netstat # get sshd port number

ssh -p 8022 192.168.5.115 # connect in terminal

References


Use Kali Linux NetHunter on Android
https://baymax55.github.io/2022/09/13/other/Kali-Linux-NetHunter-Android-install-in-5-minutes/
作者
baymax55
发布于
2022年9月13日
许可协议