Kali Linux Intrusion and Exploitation Cookbook
上QQ阅读APP看书,第一时间看更新

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:

  1. Download the Kali NetHunter Windows Installer at http://www.nethunter.com/download/ , you will see the following page:
  2. Install the downloaded setup, as shown in the following screenshot:
  3. Once the installation is complete, run the shortcut created on the desktop:
  4. Once the application loads, make sure you check for any updates. If there are none, click on the Next button:
  5. 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:
  6. 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:
  7. 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:
  8. 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:
  9. Once all the dependencies are made available, make sure you do the following:
  10. 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:
  11. 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:
  12. 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.

  13. 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:
  14. Download BusyBox by Stephen (Stericson) and install, as shown in the following screenshot:
  15. Click on the icon called NetHunter, as shown in the following screenshot:
  16. 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:
  17. Select the Kali terminal and launch Metasploit, as shown in the following screenshot:
  18. 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 .