Installing NetHunter on OnePlus One
Kali Linux NetHunter is the first open source network pen testing platform for nexus and one plus devices. In this chapter, we will see how to install Kali Linux NetHunter on One Plus One.
Before we begin, make sure you backup your device data before proceeding to do any of the following.
Getting ready
In order to commence with this, you will require the following:
- A OnePlus One device, 64 GB
- A USB cable
- Any Windows operating system
- NetHunter Windows Installer
- Active Internet connection
How to do it...
Perform the following steps for this recipe:
- Download the Kali NetHunter Windows Installer at http://www.nethunter.com/download/ , you will see the following page:
- Install the downloaded setup, as shown in the following screenshot:
- Once the installation is complete, run the shortcut created on the desktop:
- Once the application loads, make sure you check for any updates. If there are none, click on the Next button:
- Now we will select the device for rooting. Our recipe sticks to OnePlus, so let's select the ONEPLUSONE-BACON (A0001) - 64GB option and click on Next:
- Now we will be prompted to install drivers, these are drivers for the laptop/PC to communicate with the mobile device over a USB connection. Click on InstallDrivers... to commence the installation process. Once the installation is done, click on Test Drivers... to make sure that the drivers are working correctly, as shown in the following screenshot:
- Once the drivers are installed correctly, proceed by clicking on Next and now we will come across the installer configuration. Here, it is recommended to proceed with Install Official Kali Linux NetHunter. In case you have a custom NetHunter, proceed with the second option but be careful with the compatibility issues:
- Clicking on Next, we will be coming on the Download Files option where the application will determine the available packages with us and the missing files can be obtained with the help of the Download + Update All File Dependencies option. In case you get stuck or any file is not getting downloaded, you can simply Google the filename and download it and put it in the folder where the application was installed:
- Once all the dependencies are made available, make sure you do the following:
- After this has been done, we can proceed with unlocking the bootloader. Click on Unlock Device Bootloader. Make sure to back up all the important data from the device before you start from this point onwards:
- The phone will go in the Fastboot mode and proceed with its unlocking. Once that is done, proceed to the next step of flashing the stock ROM. This is a new ROM that will be mounted on your device to keep the compatibility with Kali Linux NetHunter. Click on Flash Stock... as shown in the following screenshot:
- Once the flash stock is done, proceed to the next step and click on Flash Kali Linux + Root!, as shown in the following screenshot:
The preceding step will get the Kali Linux NetHunter in your device. Once successful, the device will go into the TWRP recovery mode.
- In the Recovery mode, click on Reboot and it will ask that Super user is not installed Swipe to install once the swipe is done the Kali linux will boot. Now, click on SuperSU and see whether it is working:
- Download BusyBox by Stephen (Stericson) and install, as shown in the following screenshot:
- Click on the icon called NetHunter, as shown in the following screenshot:
- Once you get the application running, you will be asked to grant root permissions. Click on Grant and commence to the Kali Launcher and then the terminal, as shown in the following screenshot:
- Select the Kali terminal and launch Metasploit, as shown in the following screenshot:
- Launch msfconsole on the device:
How it works...
In this recipe, we have shown how you can install Kali Linux, which is called NetHunter. NetHunter is ARM which was ported to run on a non-intel processor, which is built on your trusted Kali Linux and tool sets. The Kali Linux NetHunter project is an open source Android penetration testing platform for ARM devices, created as a joint effort between the Kali community member BinkyBear and Offensive Security.
There's more...
We installed Kali NetHunter on our device and now we can perform our pen testing from OnePlus one, which is highly efficient in case of red team exercises, social engineering, or during physical security assessment.
More information for the same can be found at http://www.nethunter.com .