[Kernel+][H918|US996] Kali NetHunter for the LG V20

Search This thread

jcadduono

Recognized Developer
Jan 17, 2014
1,490
6,219
30
Thunder Bay
adduono.com

OKAY SO

I present to you: Kali NetHunter 3.15.3 for the LG V20 (H918 & US996)

(yes, the first custom kernel for the LG V20!)

If you don't know what Kali NetHunter is, well, it's the entire Kali Linux operating system in a chroot on your phone, plus a bunch of awesome apps for executing exploits, fixing things, doing cool things. It goes on, I suppose.
I'm gonna be honest guys, I'm not a security person. When it comes to security, I'm more of a Paul Blart.
What I do know though, is that there is apt-get, and apt-get is life.

Find much more information here: https://github.com/offensive-security/kali-nethunter/wiki
The answer to all your questions, generally the answer is YES, IT CAN DO THAT.

Most ROMs should be supported, as our installer uses a dynamic patching method on your current boot image!

The NetHunter installer zip will add a few files to your /system partition, and install all of the NetHunter apps to your /data partition.
The chroot is located in /data/local/nhsystem, so you don't have to worry about your system partition being full. It's full read/write capable.
Understand that the zip will replace your current kernel with a completely different one.
This is necessary because most stock or custom kernels don't provide the drivers needed to operate most of Kali NetHunter's features.

NetHunter also includes its own Busybox that gives you full large file support and some extra applets.
It will not overwrite your current one, and will happily install alongside it as busybox_nh.

DOWNLOAD

Current version: 3.15.3 (stable, 2016-11-20)

Please be careful to download the right version based on this table:
LGH918 (T-Mobile): kernel-nethunter-h918-*
LGUS996 (US Unlocked): kernel-nethunter-us996-*
All others be sad.

For the apps, chroot, and everything other than just the kernel, you will also need to download:
nethunter-generic-arm64-*

See installation instructions before proceeding!

Downloads are available at the official NetHunter build server: http://build.nethunter.com/nightly/

BEFORE INSTALLING

IMPORTANT: The Kali NetHunter installer requires write access to your data partition!
This means that if your data partition is encrypted, you will need to use the [Format Data] button in TWRP to remove encryption.
This will delete all your data, including internal storage.
You should back everything up first before installing Kali NetHunter.

The Kali chroot and apps are installed on your data partition (in /data/local/nhsystem for chroot). To initialize the chroot and install Kali Linux, you need to start the Kali NetHunter app.

The generic NetHunter installer will automatically install SuperSU. We try to keep it up to date, but it isn't always.
If you already have SuperSU or another root method installed, please simply delete the supersu.zip from the root of the zip file before installing it.
** If modifying the installer zip, you will have to disable ZIP signature verification as modifications will break it.

It's recommended that you restore or flash your ROM's original kernel before installing NetHunter.

FULL INSTALLATION STEPS
  1. Install Team Win Recovery Project (H918) or Team Win Recovery Project (US996) to your recovery partition.
    Transparent.gif
  2. Recommended: If you have a custom kernel or SuperSU installed, restore your stock kernel. (called Boot in TWRP)
    This isn't entirely necessary, but you may need to flash the NetHunter kernel again if SuperSU replaces it.
    Transparent.gif
  3. If your data partition doesn't mount in TWRP:
    Go to [Wipe] -> [Format Data] (not advanced wipe) -> type "yes".
    WARNING: This will wipe your internal storage, disable encryption, and factory reset your phone!
    Once your data partition is formatted, go to [Reboot] -> [Recovery].
    Transparent.gif
  4. Download the kernel-nethunter zip specific to your device.
    Without exiting TWRP, transfer the NetHunter kernel installer zip to your device over MTP* and flash it using [Install] in TWRP.
    Transparent.gif
  5. If you wiped your data partition in step 2:
    Go to [Reboot] -> [System].
    Set up your phone by following the Android setup wizard.
    Once it's set up, reboot back into recovery.
    Transparent.gif
  6. For new installations: Download the nethunter-generic-arm64-kalifs zip.
    For upgrades: Download the update-nethunter-generic-arm64 zip.
    Without exiting TWRP, transfer the NetHunter generic arm64 installer zip to your device over MTP* and flash it using [Install] in TWRP.
    Transparent.gif
  7. Go to [Reboot] -> [System].
    Transparent.gif
  8. Wait 2-5 minutes for your device to finish setting itself up.
    Transparent.gif
  9. Open the NetHunter app to initialize the environment
    Transparent.gif
  10. You're done!
* MTP, known as Media Transfer Protocol, is the same way you transfer files from your PC to your device when booted into system.

UPDATING TO A NEWER BUILD OR UPDATING YOUR ROM

Follow the installation steps above. NetHunter can be installed over itself as many times as you'd like.
If you don't want to lose your chroot, flash the smaller update-nethunter-generic-arm64 zip instead.

DEVICE RECOMMENDATIONS

The LG V20 internal wireless does not support monitor mode. This means you'll need to use an OTG adapter and a wireless card that does.
I highly recommend these two items:
Alfa Networks AWUS036NEH: https://smile.amazon.com/802-11g-Wireless-Long-Rang-Network-Adapter/dp/B0035GWTKK/
iXCC USB Type-C to Type-A OTG adapter: https://smile.amazon.com/iXCC-Adapter-Charge-Supported-Devices/dp/B017TJN22C/
* I am not affiliated with these sellers

The AWUS036NEH is the most tested and stable adapter available, and also comes in a very convenient portable form factor allowing antenna swaps for greater scanning ranges.
The iXCC USB adapter is compliant with USB Type-C specifications and provides up to USB 3.1 Gen 2 compatibility. It's also well built.
I don't recommend using smaller OTG adapters - they can break your ports if you accidentally put too much pressure on them or your phone falls with them plugged in.

THE KERNEL

The NetHunter kernel for the LG V20 is based on H918 v10d kernel sources.
It has the following changes:
  • Carefully security & bug patched to CodeAurora's latest msm8996 7.0 tag: LA.UM.5.5.r1-01600-8x96.0
  • SELinux enforcing, switches to permissive when requested by NetHunter app
  • F2FS updated to Jaeguek Kim's latest kernel.org f2fs-stable sources
  • F2FS formatted data partition support
  • Tuxera exFAT drivers replaced with Samsung's latest open-source exFAT drivers
  • Enabled USB (OTG) Atheros, Ralink, and Realtek WiFi drivers
  • FIOPS IO scheduler as default IO scheduler, SIO available
  • DriveDroid compatibility
  • USB HID Gadget keyboard & mouse support
  • mac80211 packet injection support
  • savoca's KCAL color calibration driver built in
  • Additional drivers built in for the full Kali NetHunter experience
  • Data partition encryption optional (may not be supported by custom kernels - encrypt at your own risk)
  • Kernel module support, insert your own modules! (modprobe available in Kali chroot)
  • CIFS, NFS available through included kernel modules
  • VerifiedBoot status hack to pass SafetyNet

RAN INTO AN ISSUE OR BUG?

In order for me to help you, you have to at minimum reply with:
  • The link to the exact zip you downloaded
  • Your device model
  • The name of the ROM you're flashing it on
  • The version and build date of the ROM you're flashing it on
  • A complete description of your problem
If your issue is with a specific app, it might be better to contact the developer of that app.

For Kali NetHunter bugs/issues, you can open a ticket at: https://github.com/offensive-security/kali-nethunter/issues

If your issue is during the installation (ex. flashing the NetHunter zip), then please collect a TWRP recovery.log for me.

If you found a problem and were able to fix it, and no one's mentioned it in the thread already, it would be kind to state the issue and your fix for others to make use of as well.

You can join me and the other NetHunter developers on IRC at the #nethunter room on freenode to more handily diagnose problems together.
I apologize, but I can't do house calls at this time.

KNOWN ISSUES

  • USB Keyboard - The keyboard is unusable when using Google Keyboard as your input method. Switch to Hacker's Keyboard.
DEVELOPMENT & CONTRIBUTIONS

You can see the main branch of NetHunter's development on the Offensive Security GitHub: https://github.com/offensive-security/kali-nethunter
Kali NetHunter Official device updates: https://github.com/offensive-security/nethunter-devices/commits
LG V20 NetHunter kernel source: https://github.com/jcadduono/android_kernel_lge_msm8996/tree/nethunter-7.0

If you wish to donate to the NetHunter project, you can donate directly to me through the Donate button under my name.
This will generally go towards supporting my next flagship device purchase, which will receive NetHunter and TWRP support from myself.
You can also use "Basenji Rescue and Transport" as your Amazon Smile charity and that will make me really happy!
(in my avatar, if you see a dog, that's a Basenji!)

SCREENSHOTS
25c63e26e3.jpg
9bbb4c055b.jpg

c52cfc8ea6.jpg
57e87e32cb.jpg

f3d2a6f8e9.jpg
3968525d48.jpg

DISCLAIMER

I am not affiliated with Offensive Security. They seem like cool guys though.
I'm not even a novice when it comes to security and penetration. I'm just a simple system administrator with a passion for breaking Android.
Please restrain yourselves from asking me security related questions.

XDA:DevDB Information
Kali NetHunter for the LG V20, Kernel for the LG V20

Contributors
jcadduono, The Kali NetHunter team
Source Code: https://github.com/offensive-security/kali-nethunter

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: 3.15.3
Stable Release Date: 2016-11-20

Created 2016-11-21
Last Updated 2016-11-27
 

jcadduono

Recognized Developer
Jan 17, 2014
1,490
6,219
30
Thunder Bay
adduono.com
Sorry guys, it'll be up in an hour or two. The build process takes a while to generate a rootfs for each architecture before the zips start appearing on the server.
It's alive! Go crazy!

In the meantime, grab a cup of coffee! I'm a fan of Second Cup's Cuzco Whole Bean. Light roast is the best roast.

I'll use this spot here to thank Mr. @slayerh4x for taking the time to boot up my kernel test builds on his device and confirm it's not catching fire.
He put his life and phone at risk for you guys.
If anything, roll Alliance and gank him while he's AFK. Paypal donations are overrated.

For anyone wishing to roll their own custom kernels, check out:
https://github.com/jcadduono/android_kernel_lge_msm8996/commits/android-7.0 (stock configuration and ready to build for all variants!)
https://github.com/jcadduono/lazyflasher (NetHunter's installer, without the NetHunter - use it to flash and ship your builds!)
 
Last edited:

netgar

Senior Member
Jan 14, 2012
1,013
109
Thank you for your great support jcadduono.
Quick question. Does it wipe out this annoying unlocking bootloader screen when booting a phone?
 

slayerh4x

Senior Member
Apr 25, 2008
378
296
Haxonville, FL
so this is different then most modified kernels right? what do the apps do?

Kali Linux is for network security penetration testing, hacking. It adds the apps from that.

@jcadduono, thank you so much yet again. I'm happy to help test the next project too lol.

---------- Post added at 11:20 AM ---------- Previous post was at 11:05 AM ----------

Hey I'm Horde man, I don't get ganked by puny Alliance players.

Sorry guys, it'll be up in an hour or two. The build process takes a while to generate a rootfs for each architecture before the zips start appearing on the server.
It's alive! Go crazy!

In the meantime, grab a cup of coffee! I'm a fan of Second Cup's Cuzco Whole Bean. Light roast is the best roast.

I'll use this spot here to thank Mr. @slayerh4x for taking the time to boot up my kernel test builds on his device and confirm it's not catching fire.
He put his life and phone at risk for you guys.
If anything, roll Alliance and gank him while he's AFK. Paypal donations are overrated.

For anyone wishing to roll their own custom kernels, check out:
https://github.com/jcadduono/android_kernel_lge_msm8996/commits/android-7.0 (stock configuration and ready to build for all variants!)
https://github.com/jcadduono/lazyflasher (NetHunter's installer, without the NetHunter - use it to flash and ship your builds!)
 
Last edited:

dfogelstrom

Senior Member
Dec 20, 2010
735
220
So, the directions are a little confusing. I just want some clarification please. Am I just flashing in TWRP, and good to go? I am on Tilde88's v2 stock modded ROM.
 

Bubba Fett

Senior Member
Dec 9, 2012
583
227
Waaay Out There
Is there a copy of the stock kernel somewhere in case we want to go back or would it mess it all up cause of flashing the tools separately? Restore of a previous twrp backup will restore stock kernel right? Having trouble getting the download to start, I'll try the PC. Thanks for this. Ive never seen this included in anything on android. Way outside the box. I love it!
 

slayerh4x

Senior Member
Apr 25, 2008
378
296
Haxonville, FL
Is there a copy of the stock kernel somewhere in case we want to go back or would it mess it all up cause of flashing the tools separately? Restore of a previous twrp backup will restore stock kernel right? Having trouble getting the download to start, I'll try the PC. Thanks for this. Ive never seen this included in anything on android. Way outside the box. I love it!

Just restore the boot part of a twrp backup.
 
  • Like
Reactions: Bubba Fett

jcadduono

Recognized Developer
Jan 17, 2014
1,490
6,219
30
Thunder Bay
adduono.com
Whew! Wish i could give you a double thanks on that one. Big headache to fix that one! Thanks bro!

Unfortunately the exFAT driver I replaced it with is a bit pickier than the Tuxera one so I'd suggest running repair from TWRP to make sure all your sectors look fine.

If it continues to have issues, you might want to just adb pull /external_sd from twrp, then format it as ext4, then adb push external_sd /external_sd/

It might take me a while to find the problem, I've been running the exFAT driver for a few days and have yet to run into an issue with it, although I'm running it on my PC since I won't have a phone for a while (Note 7 returned, Samsung said I won't get a cheque for a month)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 32

    OKAY SO

    I present to you: Kali NetHunter 3.15.3 for the LG V20 (H918 & US996)

    (yes, the first custom kernel for the LG V20!)

    If you don't know what Kali NetHunter is, well, it's the entire Kali Linux operating system in a chroot on your phone, plus a bunch of awesome apps for executing exploits, fixing things, doing cool things. It goes on, I suppose.
    I'm gonna be honest guys, I'm not a security person. When it comes to security, I'm more of a Paul Blart.
    What I do know though, is that there is apt-get, and apt-get is life.

    Find much more information here: https://github.com/offensive-security/kali-nethunter/wiki
    The answer to all your questions, generally the answer is YES, IT CAN DO THAT.

    Most ROMs should be supported, as our installer uses a dynamic patching method on your current boot image!

    The NetHunter installer zip will add a few files to your /system partition, and install all of the NetHunter apps to your /data partition.
    The chroot is located in /data/local/nhsystem, so you don't have to worry about your system partition being full. It's full read/write capable.
    Understand that the zip will replace your current kernel with a completely different one.
    This is necessary because most stock or custom kernels don't provide the drivers needed to operate most of Kali NetHunter's features.

    NetHunter also includes its own Busybox that gives you full large file support and some extra applets.
    It will not overwrite your current one, and will happily install alongside it as busybox_nh.

    DOWNLOAD

    Current version: 3.15.3 (stable, 2016-11-20)

    Please be careful to download the right version based on this table:
    LGH918 (T-Mobile): kernel-nethunter-h918-*
    LGUS996 (US Unlocked): kernel-nethunter-us996-*
    All others be sad.

    For the apps, chroot, and everything other than just the kernel, you will also need to download:
    nethunter-generic-arm64-*

    See installation instructions before proceeding!

    Downloads are available at the official NetHunter build server: http://build.nethunter.com/nightly/

    BEFORE INSTALLING

    IMPORTANT: The Kali NetHunter installer requires write access to your data partition!
    This means that if your data partition is encrypted, you will need to use the [Format Data] button in TWRP to remove encryption.
    This will delete all your data, including internal storage.
    You should back everything up first before installing Kali NetHunter.

    The Kali chroot and apps are installed on your data partition (in /data/local/nhsystem for chroot). To initialize the chroot and install Kali Linux, you need to start the Kali NetHunter app.

    The generic NetHunter installer will automatically install SuperSU. We try to keep it up to date, but it isn't always.
    If you already have SuperSU or another root method installed, please simply delete the supersu.zip from the root of the zip file before installing it.
    ** If modifying the installer zip, you will have to disable ZIP signature verification as modifications will break it.

    It's recommended that you restore or flash your ROM's original kernel before installing NetHunter.

    FULL INSTALLATION STEPS
    1. Install Team Win Recovery Project (H918) or Team Win Recovery Project (US996) to your recovery partition.
      Transparent.gif
    2. Recommended: If you have a custom kernel or SuperSU installed, restore your stock kernel. (called Boot in TWRP)
      This isn't entirely necessary, but you may need to flash the NetHunter kernel again if SuperSU replaces it.
      Transparent.gif
    3. If your data partition doesn't mount in TWRP:
      Go to [Wipe] -> [Format Data] (not advanced wipe) -> type "yes".
      WARNING: This will wipe your internal storage, disable encryption, and factory reset your phone!
      Once your data partition is formatted, go to [Reboot] -> [Recovery].
      Transparent.gif
    4. Download the kernel-nethunter zip specific to your device.
      Without exiting TWRP, transfer the NetHunter kernel installer zip to your device over MTP* and flash it using [Install] in TWRP.
      Transparent.gif
    5. If you wiped your data partition in step 2:
      Go to [Reboot] -> [System].
      Set up your phone by following the Android setup wizard.
      Once it's set up, reboot back into recovery.
      Transparent.gif
    6. For new installations: Download the nethunter-generic-arm64-kalifs zip.
      For upgrades: Download the update-nethunter-generic-arm64 zip.
      Without exiting TWRP, transfer the NetHunter generic arm64 installer zip to your device over MTP* and flash it using [Install] in TWRP.
      Transparent.gif
    7. Go to [Reboot] -> [System].
      Transparent.gif
    8. Wait 2-5 minutes for your device to finish setting itself up.
      Transparent.gif
    9. Open the NetHunter app to initialize the environment
      Transparent.gif
    10. You're done!
    * MTP, known as Media Transfer Protocol, is the same way you transfer files from your PC to your device when booted into system.

    UPDATING TO A NEWER BUILD OR UPDATING YOUR ROM

    Follow the installation steps above. NetHunter can be installed over itself as many times as you'd like.
    If you don't want to lose your chroot, flash the smaller update-nethunter-generic-arm64 zip instead.

    DEVICE RECOMMENDATIONS

    The LG V20 internal wireless does not support monitor mode. This means you'll need to use an OTG adapter and a wireless card that does.
    I highly recommend these two items:
    Alfa Networks AWUS036NEH: https://smile.amazon.com/802-11g-Wireless-Long-Rang-Network-Adapter/dp/B0035GWTKK/
    iXCC USB Type-C to Type-A OTG adapter: https://smile.amazon.com/iXCC-Adapter-Charge-Supported-Devices/dp/B017TJN22C/
    * I am not affiliated with these sellers

    The AWUS036NEH is the most tested and stable adapter available, and also comes in a very convenient portable form factor allowing antenna swaps for greater scanning ranges.
    The iXCC USB adapter is compliant with USB Type-C specifications and provides up to USB 3.1 Gen 2 compatibility. It's also well built.
    I don't recommend using smaller OTG adapters - they can break your ports if you accidentally put too much pressure on them or your phone falls with them plugged in.

    THE KERNEL

    The NetHunter kernel for the LG V20 is based on H918 v10d kernel sources.
    It has the following changes:
    • Carefully security & bug patched to CodeAurora's latest msm8996 7.0 tag: LA.UM.5.5.r1-01600-8x96.0
    • SELinux enforcing, switches to permissive when requested by NetHunter app
    • F2FS updated to Jaeguek Kim's latest kernel.org f2fs-stable sources
    • F2FS formatted data partition support
    • Tuxera exFAT drivers replaced with Samsung's latest open-source exFAT drivers
    • Enabled USB (OTG) Atheros, Ralink, and Realtek WiFi drivers
    • FIOPS IO scheduler as default IO scheduler, SIO available
    • DriveDroid compatibility
    • USB HID Gadget keyboard & mouse support
    • mac80211 packet injection support
    • savoca's KCAL color calibration driver built in
    • Additional drivers built in for the full Kali NetHunter experience
    • Data partition encryption optional (may not be supported by custom kernels - encrypt at your own risk)
    • Kernel module support, insert your own modules! (modprobe available in Kali chroot)
    • CIFS, NFS available through included kernel modules
    • VerifiedBoot status hack to pass SafetyNet

    RAN INTO AN ISSUE OR BUG?

    In order for me to help you, you have to at minimum reply with:
    • The link to the exact zip you downloaded
    • Your device model
    • The name of the ROM you're flashing it on
    • The version and build date of the ROM you're flashing it on
    • A complete description of your problem
    If your issue is with a specific app, it might be better to contact the developer of that app.

    For Kali NetHunter bugs/issues, you can open a ticket at: https://github.com/offensive-security/kali-nethunter/issues

    If your issue is during the installation (ex. flashing the NetHunter zip), then please collect a TWRP recovery.log for me.

    If you found a problem and were able to fix it, and no one's mentioned it in the thread already, it would be kind to state the issue and your fix for others to make use of as well.

    You can join me and the other NetHunter developers on IRC at the #nethunter room on freenode to more handily diagnose problems together.
    I apologize, but I can't do house calls at this time.

    KNOWN ISSUES

    • USB Keyboard - The keyboard is unusable when using Google Keyboard as your input method. Switch to Hacker's Keyboard.
    DEVELOPMENT & CONTRIBUTIONS

    You can see the main branch of NetHunter's development on the Offensive Security GitHub: https://github.com/offensive-security/kali-nethunter
    Kali NetHunter Official device updates: https://github.com/offensive-security/nethunter-devices/commits
    LG V20 NetHunter kernel source: https://github.com/jcadduono/android_kernel_lge_msm8996/tree/nethunter-7.0

    If you wish to donate to the NetHunter project, you can donate directly to me through the Donate button under my name.
    This will generally go towards supporting my next flagship device purchase, which will receive NetHunter and TWRP support from myself.
    You can also use "Basenji Rescue and Transport" as your Amazon Smile charity and that will make me really happy!
    (in my avatar, if you see a dog, that's a Basenji!)

    SCREENSHOTS
    25c63e26e3.jpg
    9bbb4c055b.jpg

    c52cfc8ea6.jpg
    57e87e32cb.jpg

    f3d2a6f8e9.jpg
    3968525d48.jpg

    DISCLAIMER

    I am not affiliated with Offensive Security. They seem like cool guys though.
    I'm not even a novice when it comes to security and penetration. I'm just a simple system administrator with a passion for breaking Android.
    Please restrain yourselves from asking me security related questions.

    XDA:DevDB Information
    Kali NetHunter for the LG V20, Kernel for the LG V20

    Contributors
    jcadduono, The Kali NetHunter team
    Source Code: https://github.com/offensive-security/kali-nethunter

    Kernel Special Features:

    Version Information
    Status: Stable
    Current Stable Version: 3.15.3
    Stable Release Date: 2016-11-20

    Created 2016-11-21
    Last Updated 2016-11-27
    7
    I can't clarify the instructions any more than they already are. You'll just have to try.
    6
    Sorry guys, it'll be up in an hour or two. The build process takes a while to generate a rootfs for each architecture before the zips start appearing on the server.
    It's alive! Go crazy!

    In the meantime, grab a cup of coffee! I'm a fan of Second Cup's Cuzco Whole Bean. Light roast is the best roast.

    I'll use this spot here to thank Mr. @slayerh4x for taking the time to boot up my kernel test builds on his device and confirm it's not catching fire.
    He put his life and phone at risk for you guys.
    If anything, roll Alliance and gank him while he's AFK. Paypal donations are overrated.

    For anyone wishing to roll their own custom kernels, check out:
    https://github.com/jcadduono/android_kernel_lge_msm8996/commits/android-7.0 (stock configuration and ready to build for all variants!)
    https://github.com/jcadduono/lazyflasher (NetHunter's installer, without the NetHunter - use it to flash and ship your builds!)
    3
    If you're already rooted and formatted, couldn't we just flash the 2 zips you mention in the directions?

    yes, that's what the instructions say, notice that some of the steps say IF

    although be careful if you already have supersu, you should remove it from the nethunter-generic zip so it doesn't cause issues (supersu flashed twice will restore old kernel backups)
    2
    Whew! Wish i could give you a double thanks on that one. Big headache to fix that one! Thanks bro!

    Unfortunately the exFAT driver I replaced it with is a bit pickier than the Tuxera one so I'd suggest running repair from TWRP to make sure all your sectors look fine.

    If it continues to have issues, you might want to just adb pull /external_sd from twrp, then format it as ext4, then adb push external_sd /external_sd/

    It might take me a while to find the problem, I've been running the exFAT driver for a few days and have yet to run into an issue with it, although I'm running it on my PC since I won't have a phone for a while (Note 7 returned, Samsung said I won't get a cheque for a month)