[One (M7) Android Development] michael8t6:
[IMG="nethunter"]https://raw.githubusercontent.com/offensive-security/kali-nethunter/master/images/nethunter-git-logo.png[/IMG]​

Nethunter is in short a set of apps for network penetration testing, you should only use these tools for testing your own network security or other networks YOU HAVE PERMISSION FOR! If you get caught using these tools illegally, do not come crying to me, I'll laugh in your face and point you to this thread.... That being said, let's get on with it.

You're going to need a rooted device for this to work, this thread isn't about rooting, if you're not yet rooted check out the other threads on XDA. Great community with plenty of topics showing you how to root. You have the options of:

cm-13.0 running on Marshmallow with kernel 3.4.111

Lineage-14.1 running on Nougat 7.1.2 with kernel 3.4.113

Both have fully patched kernels and whilst they all have a few issues (not related to the kernels or the first rom you install, check known issues below for updates), you should be able to use 99% of the functions. I'll list the issues at the bottom of this post and the steps to try and fix them if any.

Links

Cm-13.0 links:

CM-13.0: https://www.androidfilehost.com/?fid=817550096634766544

Nethunter: https://www.androidfilehost.com/?fid=529152257862723757

Lineage-14.1 7.1.2 links:

Lineage14.1:https://www.androidfilehost.com/?fid=529152257862728021

Nethunter:https://www.androidfilehost.com/?fid=529152257862723623

Install

Download and copy both of the above files to the root of your device along with the Gapps of your choice.

Reboot into recovery and wipe Dalvik, Data and Cache

Install the CM-13.0/Lineage-14.1 rom

Install Gapps

If you're S-off then reboot into your phone.

If you're S-on, extract the boot.img from the CM-13 file and place it in your fastboot folder.

Run the following command and reboot: fastboot flash boot boot.img

After the boot.img has flashed, run the following command: fastboot reboot

After you've allowed your phone to boot fully, reboot back into recovery and install the nethunter file.

Be PATIENT!! The install can take up to half hour! Once the install has finished, reboot system and you should be golden.

If at any point during the install process TWRP asks you if you want it to install root, select the "Do not install" option. Nethunter will handle this for you.

That's it, you should be fully loaded with nethunter.

Features

HID is fully functioning on both versions.

Supported external wireless drivers are fully functioning. Check the useful links below to find supported devices.

Csploit

DroidDrive

Hackers Keyboard (This comes in so handy when using terminal)

Nethunter VNC

Nethunter Terminal

OpenVPN

Shodan

USB Keyboard

Known issues

Unless stated otherwise, any issue related to lineage-14.1 applies to both the android 7.1.1 version and the 7.1.2 version

Csploit on CM-13.

: For some reason, nethunter installs an outdated cSploit for the marshmallow build. If you constantly receive an error message saying "No exploits found", uninstall cSploit and install the latest version from here: http://www.csploit.org/downloads/

cSploit arp poisoning on both cm13 and lineages14

: Arp poisoning exploits aren't working for any MITM attacks, I've spoke to the devs and they've confirmed it is a bug, as soon as it's fixed, I'll update this thread.

HID Interface on both cm13 and lineage14

: If you have no HID interfaces showing in the nethunter home panel. Open an exploit that uses HID (rubberduck will suffice) and launch an attack, don't worry about plugging your phone into your computer. It's sheerly for forcing nethunter to check the relevant directories for HID interfaces. Once you've launched an attack, they should appear.

Terminal crashing on Lineage14

: If your terminal keeps crashing when you try to start it, long press your home screen to bring up the active apps tabs. Close the terminal, open the main nethunter app and wait for it to be granted root privileges, now minimize and try opening the terminal again. For some reason, the terminal requires the nethunter app to be open and with root.

Rubberduck HID not launching attacks

: Connect to your target computer, change the USB connection to MTP for file transfer and also enable ADB via the developer menu. Try again ;)

Useful links

Official nethuner wiki: https://github.com/offensive-security/kali-nethunter/wiki

There's a link on there titled "known working hardware" that's where you can check if your wireless card is supported.

Official cSploit wiki: https://github.com/cSploit/android/wiki

Again, links on the page full of useful information.

Kernels:

For some reason, trying to just flash the kernel to an already installed rom doesn't work, so if you'd like to try and build the zImage into your boot.img fell free to.

3.4.111: https://www.androidfilehost.com/?fid=457095661767158370

3.4.113: https://www.androidfilehost.com/?fid=529152257862724031

Thanks and credits

[MENTION=3320665]9Lukas5[/MENTION] for letting me use his kernel

[MENTION=5365082]AndroGeek974[/MENTION] both the cm-13 and lineage-14.1 roms are his, with my kernels and nethunters.

[MENTION=6741487]ZpanicZ[/MENTION] The cm-13 nethunter build is his.