CreedX
Unknown
- Messages
- 233
- Reaction score
- 228
- Points
- 43
PS: This article is presented for informational purposes only and does not constitute a call to action. All information is aimed at protecting readers from illegal actions.
Surely you had thoughts about how to hack everything around without attracting undue attentionattendants of the security and others, to be like the heroes of films who hack into systems simply from a mobile device, or how to upgrade your mobility with minimal loss of functionality? I have good news for you.
Kali Linux NetHunter is an Offensive Security project. The one that develops the Kali Linux distribution. This is a collection of programs and utilities from Kali that can be run on Android. It will allow you to look differently at your favorite device on the "green robot" and always be, if not fully armed, then with a set of lockpicks you know well.
NetHunter is not a full-fledged firmware for devices, but a software add-on. Supported by many devices: almost all from the Nexus line, some other devices from Sony, OnePlus, ZTE, Samsung. The full list is here .
It is installed on the stock firmware of supported devices and on some custom firmware (CyanogenMod and LineageOS). In this case, it is better to use the standard kernel.
But before we start bruising the neighbor's wi-fi, let's talk in more detail about the installation. Users who have never been involved in flashing devices may experience difficulties.
Getting root rights on a device is not a trivial task. The process is very different depending on the device. How exactly this is done for your gadget is worth reading on the thematic forums w3bsit3-dns.com and xda-developers.com. There are times when unlocking the bootloader and getting root is impossible or extremely difficult. Therefore, when choosing a device, immediately pay attention to the possibility of these actions.
Let's take a look at the installation process on a Nexus 10.
We need: a high-quality cable, USB ports directly from the motherboard (to minimize the possibility of getting a "brick" from the device), access to the developer menu and the device itself with a computer. The developer menu is usually opened with a few taps on the build number in the device information menu. There we enable USB debugging. A pop-up window will appear with permission to debug - we agree.
USB debugging permission
To unlock, I used a special program Nexus Root Toolkit, where everything happens with a few clicks.
1. Launch the program. If everything is installed correctly, then our device will appear in the log window. It is worth paying attention to its code name - "manta". It will be useful to us. Other devices can be codenamed on the Internet.
2. Press the “Unlock Bootloader - Unlock” button, this will delete all data on the device.
The program log will inform us about the successful unlocking and reboot the device.
3. The next step is to get root and immediately install custom recovery (I installed TWRP 3.0.2). Put a check mark on “Custom Recovery” and press the “Root” button. The program will give us a link to the latest version of TWRP, go, download and specify the path in the program to the image file “twrp * .img”.
Supersu and BusyBox are installed along with root. If not installed, you can download them from the Play Market. Next, manually install the BusyBox package through the appropriate application. BusyBox will ask for root rights - we will definitely agree!
Install BusyBox *
If you're lucky, the ready-made release archive for your device has already been compiled and is located on page the Offensive Security website . But, if you are not lucky, you will have to compile the installation archive yourself. For this, the developers have made a utility from fresh components. You need to download the directory “nethunter-installer” from the repository GitLab . Following the instructions, we initialize the device storage with the command:
After that, using a Python script, we collect the installation archive.
Consider several build options using this script:
An assembly for updating the kernel and applications.
An assembly for updating the kernel.
An assembly for updating applications without a kernel.
Installation process via TWRP.
Android will load and optimization of applications will start. As a result, the wallpaper changed, several new programs appeared in the menu, which, unfortunately, were not installed correctly.
Incorrectly installed programs.
It's easy to fix: unpack the zip archive and install applications manually via apk files that are in the * unpacked zip archive * / data / app. Before that, you should enable the ability to install applications from unknown sources. Now we install first nethunter.apk, and then all other applications. We reboot the device and see that the icons started to display normally. I advise you to additionally configure HackerKeyboard, since it is more adapted to work with the terminal.
Launch the terminal, select the Kali terminal. And install updates:
Fixing problems with the Microsoft repository:
Note that the home directory of the Kali root user is located at
Root-directory: /data/local/nhsystem/kali-armhf/root.
At the bottom there will be a link to the site, which describes which packages are included in each item.
This completes the installation of Nethunter OS, and in the next article we will look at the practical use of our cool hacker device.
Surely you had thoughts about how to hack everything around without attracting undue attention
Kali Linux NetHunter is an Offensive Security project. The one that develops the Kali Linux distribution. This is a collection of programs and utilities from Kali that can be run on Android. It will allow you to look differently at your favorite device on the "green robot" and always be, if not fully armed, then with a set of lockpicks you know well.
NetHunter is not a full-fledged firmware for devices, but a software add-on. Supported by many devices: almost all from the Nexus line, some other devices from Sony, OnePlus, ZTE, Samsung. The full list is here .
It is installed on the stock firmware of supported devices and on some custom firmware (CyanogenMod and LineageOS). In this case, it is better to use the standard kernel.
But before we start bruising the neighbor's wi-fi, let's talk in more detail about the installation. Users who have never been involved in flashing devices may experience difficulties.
Preparatory stage of installation
NetHunter is installed on a rooted device via custom recovery. Hence, we need to get root and install recovery (like TWRP or CM). Before starting the installation, it is worth making a backup, since in the process of unlocking the bootloader all personal data will be deleted.Getting root rights on a device is not a trivial task. The process is very different depending on the device. How exactly this is done for your gadget is worth reading on the thematic forums w3bsit3-dns.com and xda-developers.com. There are times when unlocking the bootloader and getting root is impossible or extremely difficult. Therefore, when choosing a device, immediately pay attention to the possibility of these actions.
Let's take a look at the installation process on a Nexus 10.
We need: a high-quality cable, USB ports directly from the motherboard (to minimize the possibility of getting a "brick" from the device), access to the developer menu and the device itself with a computer. The developer menu is usually opened with a few taps on the build number in the device information menu. There we enable USB debugging. A pop-up window will appear with permission to debug - we agree.
USB debugging permission
To unlock, I used a special program Nexus Root Toolkit, where everything happens with a few clicks.
1. Launch the program. If everything is installed correctly, then our device will appear in the log window. It is worth paying attention to its code name - "manta". It will be useful to us. Other devices can be codenamed on the Internet.
2. Press the “Unlock Bootloader - Unlock” button, this will delete all data on the device.
The program log will inform us about the successful unlocking and reboot the device.
3. The next step is to get root and immediately install custom recovery (I installed TWRP 3.0.2). Put a check mark on “Custom Recovery” and press the “Root” button. The program will give us a link to the latest version of TWRP, go, download and specify the path in the program to the image file “twrp * .img”.
Supersu and BusyBox are installed along with root. If not installed, you can download them from the Play Market. Next, manually install the BusyBox package through the appropriate application. BusyBox will ask for root rights - we will definitely agree!
Install BusyBox *
Installing Kali Linux NetHunter
NetHunter consists of kernel components (kernel-nethunter) and the software add-on itself (nethunter-generic). In the release version, all components are collected in one zip-archive. There are assemblies where these components are divided into two archives: kernel-nethunter-manta-lollipop - *. Zip and nethunter-generic-arm64-kalifs-full-rolling - *. Zip. To install Nethunter OS, you must first install the kernel through recovery, and then the software add-ons, or install everything at once using the archive, which includes all the components.If you're lucky, the ready-made release archive for your device has already been compiled and is located on page the Offensive Security website . But, if you are not lucky, you will have to compile the installation archive yourself. For this, the developers have made a utility from fresh components. You need to download the directory “nethunter-installer” from the repository GitLab . Following the instructions, we initialize the device storage with the command:
Bash:
./bootstrap.sh
After that, using a Python script, we collect the installation archive.
Consider several build options using this script:
- Full build with kernel and chroot for Google Nexus 10 (manta) device on Android 5.1.1 Lollipop.
Bash:
python build.py -d manta -l --rootfs full
- I used this build option to install Nethunter OS. I did not find information on whether the components of the latest release version are used for the assembly, or just the latest versions of the components (possibly unstable), but I am having problems. For example, some NetHunter OS applications were not installed, but their icons (in the form of a green robot) were in the application menu.
- Full build with kernel and chroot, but with release indication.
Bash:
python build.py -d manta -l --rootfs full --release 2019.2
Bash:
python build.py -d manta -l
Bash:
python build.py -d manta -l -k
Bash:
python build.py -d manta -l -nk
Installation process via TWRP.
Android will load and optimization of applications will start. As a result, the wallpaper changed, several new programs appeared in the menu, which, unfortunately, were not installed correctly.
Incorrectly installed programs.
It's easy to fix: unpack the zip archive and install applications manually via apk files that are in the * unpacked zip archive * / data / app. Before that, you should enable the ability to install applications from unknown sources. Now we install first nethunter.apk, and then all other applications. We reboot the device and see that the icons started to display normally. I advise you to additionally configure HackerKeyboard, since it is more adapted to work with the terminal.
Launch the terminal, select the Kali terminal. And install updates:
Bash:
apt update
apt upgrade
Bash:
wget https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
Root-directory: /data/local/nhsystem/kali-armhf/root.
Installation of meta packages
Kali metapackages can be optionally installed through the NetHunter application under Kali Chroot Manager - Add Metapackages.At the bottom there will be a link to the site, which describes which packages are included in each item.
This completes the installation of Nethunter OS, and in the next article we will look at the practical use of our cool hacker device.
