Use Kali Linux NetHunter on Android
本文最后更新于:2023年7月10日 上午
Requirements
- 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
- 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):- https://f-droid.org/packages/com.termux/
- https://github.com/termux/termux-app/releases
Take note that the official Termux Wiki and TermuxGitHub pages indicates that you
should not install the outdated version hosted on the Google Play Store.
- 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.
- 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.
- Enter the following command: apt update
- Enter the following command: apt upgrade
- When you get asked to “Do you want to continue” press Y and Enter.
- When prompted for an action press Y and
so you install the package maintainer’s version.
- Enter the following command:
You want to do this, so you get the wget package information.
1 |
|
- Install wget and when you’re asked Do you want to continue, press Y and Enter.
apt install wget
- When you get asked to “Do you want to continue” press Y and Enter.
- 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
- Type the following command to execute the downloaded install file:
./install-nethunter-termux
The installation will take a while, when asked to delete rootfs, enter N.
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
Once you run nh you are now in the Kali NetHunter CLI.
- You can exit the NetHunter CLI by entering exit.
- 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.
- Remember the port number. You will use it in Step 26.
- Set the password for KeX VNC by running nh kex for the first time. Say no to entering a view-only password.
- Go to the Kali NetHunter App Store website: https://store.nethunter.com/en/
- Download the NetHunter App Store.
- Press on the Hamburger button of your browser, go to downloads and install NetHunterStore.apk
- Press on the search button and enter KeX. Press to download NetHunter KeX.
- Press on the search button and enter KeX. Press to download and install KeX.
- You will get a popup window. You click on Settings, and then toggle Allow from this source. Then press Install.
- Press on Allow to allow NetHunterKeX access to your files on the device.
- Enter the port number from step 19, username as kali, and your password from step 14. Press on Connect.
- You now should have Rootless Kali NetHunter GUI on your Android Phone!
Using the SSH server
in termux
1 |
|