Kali NetHunter Custom Build – Nexus 7 2013

Hey all I created a script to automate the build and installation of Kali for the 2013 edition of the Nexus 7 and uploaded it to GitHub.

This script allows you to easily deploy Kali Linux NetHunter to the 2013 Nexus 7 (LMY48G) with ease. It can be modified for other devices too.

Prerequisites:
Make sure you have USB debugging enabled on your device.
Make sure you have approved the USB debugging RSA fingerprint for your computer before you continue.

This script uses the Offensive Security scripts and automates the process:

https://github.com/offensive-security/nethunter-LRT.git

https://github.com/offensive-security/kali-nethunter

It builds a marshmallow image with a full chroot (Change flo to a different version if required):

python build.py -d flo –marshmallow –rootfs full –release Kali_Keith_Edition_v1.9

Android stock image is pulled down from Google:

https://dl.google.com/dl/android/aosp/razor-lmy48g-factory-9f37ae5f.tgz

TWRP is downloaded:

https://dl.twrp.me/flo/twrp-3.0.2-0-flo.img

SuperSU is then downloaded:

https://download.chainfire.eu/897/SuperSU/BETA-SuperSU-v2.67-20160121175247.zip?retrieve_file=1

The unlock script is then ran against the device and it sleeps for a minute as you may need to touch the screen to confirm this if not already unlocked.

/bin/bash ./oemUnlock.sh && sleep 1m

Stock image is flashed (Change 32gb to the required version):

/bin/bash ./stockNexusFlash.sh 32gb

Stock flashing can take some time to complete, once it’s finished, update any additional updates that may need to be installed and configure developer options with USB debugging enabled to continue to the next step. Once done click enter.

Flash with your custom Kali NetHunter image, install TWRP and SuperSU:

/bin/bash ./twrpFlash.sh

Have fun 🙂