FORUMS
Remove All Ads from XDA

[H830][H850][kernel+] Kali NetHunter for the LG G5 (3.1.0)

1,493 posts
Thanks Meter: 6,176
 
Post Reply Email Thread


Welcome to the thread on Kali NetHunter for the LG G5.

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-securit...nethunter/wiki
The answer to all your questions, generally the answer is YES, IT CAN DO THAT.

The installer zip will add a few files (including busybox) to your /system partition, and install all of the NetHunter apps to your /data partition.
The chroot is located in /data/local, 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.

These Kali NetHunter builds are designed and tested for LG G5 stock 6.0.1 firmware.

DOWNLOAD

Current version: 3.1.0 (stable, 2016-04-29)

Download here: https://idlekernel.com/nethunter/nightly
Your device is: h830 (T-Mobile) / h850 (International)

Recommended install method: Use TWRP 3 for H830 or TWRP 3 for H850
Install kernel-nethunter-[h830|h850] and nethunter-generic-armhf-kalifs-full-rolling zips in any order.

You can actually only install the kernel if you want to take advantage of its features without having to install the rest of NetHunter!

BEFORE INSTALLING

Do not flash the NetHunter update zip with a fresh data partition!
Most ROMs will wipe it clean on the first boot if you haven't completed the Android Setup Wizard yet, there's no need to wipe your ROM or data to try it out. I do advise backing up your data partition before flashing the zip though.
(this should no longer be possible now with added installation checks)

Please make sure your phone boots fine and runs fine before flashing NetHunter. It's confusing when people report bugs that exist due to other factors unrelated to NetHunter.

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

The NetHunter installer will automatically install SuperSU in system mode, which I consider to be more stable. Since NetHunter already modifies your system partition, there is no need to use systemless SuperSU anyways.
If you would like to use another root method, or prefer systemless SuperSU, then simply remove the supersu folder from the installer zip and it will proceed without it.

FULL INSTALL STEPS
  1. Follow the instructions on setting up working data and internal storage in TWRP.
  2. Flash kernel-nethunter-[h830|h850] and nethunter-generic-armhf-kalifs-full-rolling zips in any order.
  3. Reboot into device
  4. Open the NetHunter app
  5. Let the NetHunter app finish setting everything up
  6. You're done!
UPDATING TO A NEWER BUILD

Going from 3.0.0 and up, all you have to do is flash the new build in recovery. On some ROMs you may need to wipe dalvik cache.

UPDATING YOUR ROM

To get all your NetHunter and SuperSU functions back after flashing a new ROM, just reflash the kernel-nethunter-[h830|h850] zip and the ~60 MB update-nethunter-generic-armhf zip in TWRP.

RUNNING WIFI PENETRATION TESTS

The internal WiFi chipset of the G5 is not capable of running services which use monitor mode such as Wifite. For this, you will need to use a monitor mode capable WiFi adapter through a USB-C host adapter.
As for compatible adapters, I highly recommend the Alfa Networks AWUS036NEH (eBay) which uses the Ralink RT3070 chipset. There are currently no monitor mode supported Wireless-AC adapters available.

Once plugged in, you can run the command from Kali terminal to turn on your adapter:

[email protected]:~# ip link set wlan1 up

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 (it better be h830/h850)
  • 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
  • Optional: An audio recording of you reading this entire post
If your issue is with a specific app, it might be better to contact the developer of that app.

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 & VNC - Google Keyboard, AOSP Keyboard, CM Keyboard do not work due to a depth bug, use Hacker's Keyboard as a workaround.
  • Terminal App - Full screen programs like nano or vi are unusable unless you use the resize command. (type resize when opening a new terminal window)
  • Sound - There is no sound when using the NetHunter kernel. Well, the Kali slogan...you know. Just kidding, this needs urgent fixing!

THE KERNEL

The NetHunter kernel for the LG G5 is based on LG's H850 v10a kernel sources.
It has the following changes:
  • Updated to Linux 3.18.31 (security fixes & more)
  • F2FS added using Jaeguek Kim's latest kernel.org:f2fs-stable sources (available on system/data/cache!)
  • UKSM - Ultra Kernel Same-page Merging support
  • Compiled with -O2 optimizations using GCC Linaro 5.3 aarch64 toolchain
  • Simple IO (SIO) scheduler as default IO scheduler (updated for modern kernels)
  • USB HID Gadget keyboard support
  • mac80211 packet injection support
  • Westwood, HTCP, or Cubic (default) TCP congestion algorithms
  • savoca's KCAL display color calibration driver
  • RTL-SDR, BT RFCOMM, and various WiFi OTG drivers enabled
  • NFS and CIFS client support with file caching
  • Additional drivers built in for the full Kali NetHunter experience

SCREENSHOTS



DEVELOPMENT

For the kernel included in NetHunter for the LG G5, you can find the sources here: https://github.com/jcadduono/nethunter_kernel_g5

See the Kali NetHunter installer source here: https://github.com/offensive-security/kali-nethunter
See the Kali NetHunter app source here: https://github.com/offensive-security/nethunter-app

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.

NOT SO MUCH AS SEEN ON MR. ROBOT, BUT PROBABLY EVEN BETTER



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

Contributors
jcadduono, The Kali NetHunter team
Source Code: https://github.com/jcadduono/nethunter_kernel_g5

Kernel Special Features:

Version Information
Status: Stable
Current Stable Version: 3.1.0
Stable Release Date: 2016-04-29

Created 2016-04-23
Last Updated 2016-06-07
The Following 25 Users Say Thank You to jcadduono For This Useful Post: [ View ]
 
 
23rd April 2016, 01:48 PM |#2  
_ray_'s Avatar
Senior Member
Thanks Meter: 80
 
More
I am confused, is this a rom, kernel or performance boost mod ? please Eli5...
23rd April 2016, 02:04 PM |#3  
ChongoDroid's Avatar
Senior Member
Flag Vancouver
Thanks Meter: 2,874
 
More
Quote:
Originally Posted by _ray_

I am confused, is this a rom, kernel or performance boost mod ? please Eli5...

It's a kit ROM so to speak. It's for penetration testing so if you don't know what it is then you don't need it.

The Following 3 Users Say Thank You to ChongoDroid For This Useful Post: [ View ] Gift ChongoDroid Ad-Free
23rd April 2016, 02:31 PM |#4  
_ray_'s Avatar
Senior Member
Thanks Meter: 80
 
More
Quote:
Originally Posted by ChongoDroid

It's a kit ROM so to speak. It's for penetration testing so if you don't know what it is then you don't need it.

Kool, cheers
23rd April 2016, 07:11 PM |#5  
Senior Member
Thanks Meter: 174
 
More
Up and runing. Bootanimation is not fullscreen, and it looks like wifite does not find any internal wifi (Not that internal will be of any use, but it was shown on my other android device). Need to get a usb-c otg cable now to get my alfa rocking again.
This are just things i find, should not be in a offended way.
Awesome that it came to h850 so fast, thanks.
23rd April 2016, 08:25 PM |#6  
jcadduono's Avatar
OP Recognized Developer
Flag Thunder Bay
Thanks Meter: 6,176
 
Donate to Me
More
Quote:
Originally Posted by Pinu'u

Up and runing. Bootanimation is not fullscreen, and it looks like wifite does not find any internal wifi (Not that internal will be of any use, but it was shown on my other android device). Need to get a usb-c otg cable now to get my alfa rocking again.
This are just things i find, should not be in a offended way.
Awesome that it came to h850 so fast, thanks.

Yup added a note in the middle of my first post about the internal WiFi. Unfortunately the boot animation was made for us in 1080p and while we could resize it to other resolutions, it wouldn't look very nice stretched out. :x I guess it wouldn't be terrible on 2560x1440, but we can't really be bothered to create multiple boot animation zips right now unless someone wants to help us!

I'm just glad it worked first try, I made a ton of changes in the kernel and was expecting it to crash or not boot. It's nice to have a reliable device to maintain without owning it once in a while, Samsung's S7 is certainly the opposite where compiling even the stock kernel sources results in boot loops.

Also really glad OEMs are including full armhf binary support on their aarch64 devices! We've yet to port NetHunter fully to aarch64, though the installer is ready, the chroot isn't.

Could someone please gather a recovery.log from TWRP after flashing the two zips? Advanced -> Copy log to SDcard, copy it off your sdcard and preferably upload it in your reply. Thanks!
(I'm ensuring that everything is installing correctly with no silent errors)
If you've already installed NetHunter, it's safe to flash the zips again as much as you want!
The Following User Says Thank You to jcadduono For This Useful Post: [ View ]
24th April 2016, 09:35 PM |#7  
Member
Thanks Meter: 24
 
More
nice to see this, current have it running one my oneplus one, will try it on my g5 soon
26th April 2016, 03:40 AM |#8  
Member
Thanks Meter: 5
 
More
It would be very interesting to see a modular bottom modded to support an OTG interface and the insides of a USB wifi dongle...
2nd May 2016, 01:48 PM |#9  
Senior Member
Thanks Meter: 174
 
More
Anybody having problems with adb and bluetooth not working ? Just want to be sure it's me.
2nd May 2016, 02:18 PM |#10  
Miustone's Avatar
Senior Member
Flag Bad Oeynhausen
Thanks Meter: 5,428
 
Donate to Me
More
Quote:
Originally Posted by Pinu'u

Anybody having problems with adb and bluetooth not working ? Just want to be sure it's me.

same here, and on top of that... No Sound at all. System wide. All Sources... Freaky
2nd May 2016, 07:44 PM |#11  
Senior Member
Thanks Meter: 174
 
More
Thx, hopefully after a few updates all is fine .
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes