Skip to content

Instantly share code, notes, and snippets.

@thyrlian
Last active November 2, 2022 22:33
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thyrlian/3955ec313d3eada992a5cd656ad2de53 to your computer and use it in GitHub Desktop.
Save thyrlian/3955ec313d3eada992a5cd656ad2de53 to your computer and use it in GitHub Desktop.
How to build & install Kali NetHunter on Nexus9 from macOS

Prerequisites

  • Enable USB debugging (and allow RSA key fingerprint from connected computer)
  • Allow OEM unlocking
  • Have Android SDK installed on computer

Build

  • Clone kali-nethunter repository
  • Pull a Python Docker image python:2.7.14-jessie (even my local fresh macOS has problem of building)
  • Run Python Docker container: docker run -it -v [your-cloned-kali-nethunter-repo]:/root/kali-nethunter python:2.7.14-jessie bash
  • Build: python /root/kali-nethunter/nethunter-installer/build.py -d flounder --nougat --rootfs full (you have to build the Nougat version on your own, because the latest official version is only for Marshmallow)
  • The built NetHunter zip image will be located in kali-nethunter/nethunter-installer/

Install

  • Clone nethunter-LRT repository
  • Download the correct factory image for Nexus9 (there is a difference between LTE version and Wi-Fi version), and place it into nethunter-LRT/stockImage
  • Download the TWRP image and place it into nethunter-LRT/twrpImage
  • Download SuperSu and place it into nethunter-LRT/superSu
  • Put previously built NetHunter zip image into nethunter-LRT/kaliNethunter
  • Flash everything by running: nethunter-LRT/twrpFlash.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment