Git Product home page Git Product logo

termux-nethunter's Introduction

TERMUX NETHUNTER

image could not be loaded

Install Kali NetHunter in Termux.

Author: Jore

Version: 2023.3b

CONTENTS

FEATURES

  • Anti-root fuse.
  • Interactive Installation.
  • Color output. (if supported)
  • Command line options. (see here)
    • Install in custom directory.
    • Install only i.e no configurations. (use with caution)
    • Configurations only (if already installed)
    • Modify color output.
    • Uninstall.
  • Creates a VNC wrapper (see here)
  • Automatic configurations. (i.e binding necessary directories)
  • Access System and Termux commands. (i.e termux-api commands)
  • Customize default shell and zone information before startup.
  • Other optimizations and improvements.

INSTALLATION

  1. Update installed packages by executing the following commands.
pkg update && pkg upgrade
  1. Install wget. (curl is an alternative)
pkg install wget
  1. Download the installer script. (install-nethunter.sh)
wget -O install-nethunter.sh https://raw.githubusercontent.com/jorexdeveloper/termux-nethunter/main/install-nethunter.sh
  1. Now execute the installer script.
bash install-nethunter.sh --help

If you are lazy like me, just copy and paste the below commands in Termux.

pkg update -y && pkg upgrade -y && pkg install -y wget && wget -O install-nethunter.sh https://raw.githubusercontent.com/jorexdeveloper/termux-nethunter/main/install-nethunter.sh && bash install-nethunter.sh --help

COMMAND LINE OPTIONS

Execute the installer script with --help to see available command line options.

bash install-nethunter.sh --help

HOW TO LOGIN

After successful installation, run command nh or nethunter to start Kali NetHunter.

LOGIN INFORMATION

Login Password
root (super user) root
kali (normal user} kali

HOW TO START THE VNC SERVER

REQUIREMENTS:

  1. Make sure you have a VNC server and Desktop environment installed. (The full installation has them pre-installed, see here)

  2. Install NetHunter KeX, or a VNC viewer of your choice.

PROCEDURE:

  1. Login in Kali NetHunter and run command vnc to start the VNC server. The server will be started at localhost (127.0.0.1).

Tip: The program also displays help information with option -h or --help to guide you further.

  1. On the first run, you will be prompted for a password. You will use this password to login and connect to the VNC server.

  2. Now open NetHunter KeX and login with the password in step 2.

User Display Port Address
Root :0 5900 localhost:0
Other :1 5901 localhost:1

HOW TO INSTALL XFCE AND VNC SERVER

  1. Login in Kali NetHunter.

  2. Make a full upgrade of your system.

sudo apt update && sudo apt full-upgrade
  1. Run the following commands.
sudo apt install dbus-x11 tigervnc-standalone-server kali-desktop-xfce

Tip: This will take a while, just make sure you don't exit Termux during the installation or you might run into some problems later.

USING AS ROOT

Installing/Running Kali NetHunter as root can have unintended effects, and should only be done when you are sure of what's happening in the background (how linux works) or you might damage your device, even worse bricking it.

For that reason, I have added an anti root fuse and disabling it will require you to comment out the appropriate lines from the installer script.

NOTE: You can still have root privileges within Kali NetHunter provided by proot, even without installing as root. (see the proot manual pages)

You will have to search and comment out the function call to check_root in the installer script. i.e

  ...
  # check_root
  ...

HOW TO UNINSTALL KALI NETHUNTER

To uninstall Kali NetHunter, run the installer script (install-nethunter.sh) with option --uninstall.

NOTE: If you installed Kali NetHunter in a custom directory, also supply the path to the directory as an argument.

bash install-nethunter.sh --uninstall

BUGS

All currently known bugs are fixed. Please let me know in the issues section if you find any.

LICENSE

    Copyright (C) 2023  Jore

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

termux-nethunter's People

Contributors

jorexdeveloper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

termux-nethunter's Issues

touch: cannot touch 'kali-armhf/root/.version': No such file or directory

╻┏ ┏━┓╻ ╻ ┏┓╻┏━╸╺┳╸╻ ╻╻ ╻┏┓╻╺┳╸┏━╸┏━┓ ┣┻┓┣━┫┃ ┃╺━╸┃┗┫┣╸ ┃ ┣━┫┃ ┃┃┗┫ ┃ ┣╸ ┣┳┛ ╹ ╹╹ ╹┗━╸╹ ╹ ╹┗━╸ ╹ ╹ ╹┗━┛╹ ╹ ╹ ┗━╸╹┗╸ by Jore [] Beginning installation process. [] Checking device architecture... [] Checking package dependencies... [=] wget is OK [=] proot is OK [=] tar is OK [=] pulseaudio is OK [1] NetHunter ARM64 (full)
[2] NetHunter ARM64 (mini)
[3] NetHunter ARM64 (nano) [
] Enter the image you want to install: 3
[=] Nano selected [?] Existing image file found. Delete and download a new one. y/N: n [!] Using existing rootfs archive
[] Verifying integrity of rootfs archive... [] Extracting rootfs...

[*] Creating NetHunter launcher...

[] Creating VNC launcher...
[
] Making some tweaks.
[] Granting root permissions to user kali.
[=] Done.
[
] Preventing creation of links in read only file system.
[=] Done.

[*] Setting static display for the system.
[=] Done.

[*] Settting pulse audio server.
[=] Done.

[*] Setting DNS settings.
[=] Done.

[*] Setting up jdk variables.
[=] Done.

[?] Set default shell for user kali. y/N: n

[?] Set UID and GID for user kali to match that of Termux. y/N: n

[?] Set Time Zone and Local Time. y/N: n

[*] Installation process complete.

[=] Kali NetHunter installed successfully

[*] Usage:
[+] nh | nethunter
[+] Start NetHunter CLI.

[+] Use 'vnc' in NetHunter to launch VNC Server

[] Login Information:
[
] User: kali
[] Password: kali
[
] Visit https://github.com/jorexdeveloper/Install-NetHunter-Termux for documentation.

[*] You have a nano installation which may not have a VNC Server and Desktop Environment pre-installed. Please read the documentation in link above on how to install them.

~ $ nethunter

touch: cannot touch 'kali-armhf/root/.version': No such file or directory

~ $ getprop ro.product.cpu.abi

arm64-v8a

~ $ ls

bin install-nethunter.sh
kali-arm64
kalifs-arm64-full.sha512sum
kalifs-arm64-full.tar.xz
kalifs-arm64-minimal.tar.xz
kalifs-arm64-nano.sha512sum
kalifs-arm64-nano.tar.xz
kalinethunter
storage
~ $

^C ( Ctrl+c)

╻┏ ┏━┓╻ ╻ ┏┓╻┏━╸╺┳╸╻ ╻╻ ╻┏┓╻╺┳╸┏━╸┏━┓ ┣┻┓┣━┫┃ ┃╺━╸┃┗┫┣╸ ┃ ┣━┫┃ ┃┃┗┫ ┃ ┣╸ ┣┳┛
╹ ╹╹ ╹┗━╸╹ ╹ ╹┗━╸ ╹ ╹ ╹┗━┛╹ ╹ ╹ ┗━╸╹┗╸ by Jore
[] Beginning installation process.
[
] Checking device architecture... [*] Checking package dependencies...
[=] wget is OK [=] proot is OK [=] tar is OK
[=] pulseaudio is OK

[1] NetHunter ARM64 (full)

[2] NetHunter ARM64 (mini) [3] NetHunter ARM64 (nano)

[*] Enter the image you want to install: 2 [=] Mini selected

[?] Existing rootfs directory found. Delete and create a new one? y/N: y
[!] Deleting rootfs directory...

[?] Existing image file found. Delete and download a new one. y/N: n
[!] Using existing rootfs archive

[*] Verifying integrity of rootfs archive...

[*] Extracting rootfs...

[*] Creating NetHunter launcher...

[*] Creating VNC launcher...

[*] Making some tweaks.

[*] Granting root permissions to user kali.
[=] Done.

[*] Preventing creation of links in read only file system.
[=] Done.

[*] Setting static display for the system.
[=] Done.

[*] Settting pulse audio server.
[=] Done.

[*] Setting DNS settings.
[=] Done.

[*] Setting up jdk variables.
[=] Done.

[?] Set default shell for user kali. y/N: n

[?] Set UID and GID for user kali to match that of Termux. y/N: n

[?] Set Time Zone and Local Time. y/N: n

[*] Installation process complete.

[=] Kali NetHunter installed successfully

[*] Usage:
[+] nh | nethunter
[+] Start NetHunter CLI.

[+] Use 'vnc' in NetHunter to launch VNC Server

[] Login Information:
[
] User: kali
[] Password: kali
[
] Visit https://github.com/jorexdeveloper/Install-NetHunter-Termux for documentation.

[*] You have a minimal installation which may not have a VNC Server and Desktop Environment pre-installed. Please read the documentation in link above on how to install them.
~ $ nethunter
touch: cannot touch 'kali-armhf/root/.version': No such file or directory
~ $ getprop ro.product.cpu.abi arm64-v8a ~ $ ls bin install-nethunter.sh kali-arm64 kalifs-arm64-full.sha512sum
kalifs-arm64-full.tar.xz
kalifs-arm64-minimal.sha512sum
kalifs-arm64-minimal.tar.xz
kalifs-arm64-nano.sha512sum
kalifs-arm64-nano.tar.xz
kalinethunter
storage
~ $ mv kali-arm64/ kali-armhf ~ $ nethunter localhost login: kali Password: ┏━(Message from Kali developers)

┃ This is a minimal installation of Kali Linux, you likely
┃ want to install supplementary tools. Learn how:
┃ ⇒ https://www.kali.org/docs/troubleshooting/common-minimum-setup/

┗━(Run: “touch ~/.hushlogin” to hide this message)

uname -a
^C $ uname -a
Linux localhost 5.10.149-android12-9-00031-g8d44cb1a9e42-ab9703858 #1 SMP PREEMPT Tue Mar 7 19:36:52 UTC 2023 aarch64 GNU/Linux
$

Error download distribution

[*] Checking package dependencies...
[=] wget is OK [=] proot is OK [=] tar is OK
[=] pulseaudio is OK

[1] NetHunter ARM64 (full)

[2] NetHunter ARM64 (mini) [3] NetHunter ARM64 (nano)

[*] Enter the image you want to install: 3 [=] Nano selected

[*] Verifying integrity of rootfs archive...
[!] Rootfs corrupted. Please run this installer again or download the file manually.
~/proot-distro $

.

.

vnc

note open vncserver in realvnc
vnc not matching
vnc -list vnc not add id list for vnc

solusi work for me

tigervncserver -xstartup /usr/bin/startxfce4

to open vnc server

chmod: cannot access '/data/data/com.termux/files/home/bin/nethunter': No such file or directory

╻┏ ┏━┓╻ ╻ ┏┓╻┏━╸╺┳╸╻ ╻╻ ╻┏┓╻╺┳╸┏━╸┏━┓
┣┻┓┣━┫┃ ┃╺━╸┃┗┫┣╸ ┃ ┣━┫┃ ┃┃┗┫ ┃ ┣╸ ┣┳┛ ╹ ╹╹ ╹┗━╸╹ ╹ ╹┗━╸ ╹ ╹ ╹┗━┛╹ ╹ ╹ ┗━╸╹┗╸
by Jore

[*] Beginning installation process.

[*] Checking device architecture...

[*] Checking package dependencies...
[=] wget is OK
[=] proot is OK
[=] tar is OK
[=] pulseaudio is OK

[1] NetHunter ARM64 (full)

[2] NetHunter ARM64 (mini)

[3] NetHunter ARM64 (nano)
[*] Enter the image you want to install: 1
[=] Full selected

[?] Existing rootfs directory found. Delete and create a new one? y/N: y
[!] Deleting rootfs directory...

[?] Existing image file found. Delete and download a new one. y/N: n
[!] Using existing rootfs archive

[*] Verifying integrity of rootfs archive...

[*] Extracting rootfs...
install-nethunter.sh: line 188: /data/data/com.termux/files/home/bin/nethunter: No such file or directory
chmod: cannot access '/data/data/com.termux/files/home/bin/nethunter': No such file or directory
ln: failed to create symbolic link '/data/data/com.termux/files/home/bin/nh': No such file or directory

[*] Making some tweaks.

[*] Granting root permissions to user kali.
[=] Done.

[*] Preventing creation of links in read only file system.
[=] Done.

[*] Setting static display for the system.
[=] Done.

[*] Settting pulse audio server.
[=] Done.

[*] Setting DNS settings.
[=] Done.

[*] Setting up jdk variables.
[=] Done.

[?] Set default shell for user kali. y/N: n

[?] Set UID and GID for user kali to match that of Termux. y/N: n

[?] Set Time Zone and Local Time. y/N: n

[*] Installation process complete.

[=] Kali NetHunter installed successfully

[*] Usage:
[+] nh | nethunter
[+] Start NetHunter CLI.

[+] Use 'vnc' in NetHunter to launch VNC Server

[] Login Information:
[
] User: kali
[] Password: kali
[
] Visit https://github.com/jorexdeveloper/Install-NetHunter-Termux for documentation.
~ $ nethunter
nethunter: command not found

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.