[Kernel][Exynos][BROKEN] Kali NetHunter for the Galaxy S7 Edge

Status
Not open for further replies.
Search This thread

jcadduono

Recognized Developer
Jan 17, 2014
1,492
6,210
29
Thunder Bay
adduono.com


OKAY SO

Currently, I am unable to get even stock kernel sources to boot. I'm not sure what to do to at this point. Waiting on someone else that actually has the device to get this figured out - DO NOT FLASH!

WARNING: This is completely untested, highly theoretical, and possibly dangerous. Flash at your own risk.
Back up your original boot image in TWRP before attempting to flash this! If it doesn't boot, you can simply restore your previous boot image.


This is Kali NetHunter 3.0.5 for the Galaxy S7 Edge.

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 updater 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, 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.

DOWNLOAD

Current version: 3.0.5 (beta, 2016-03-11)

Please be careful to download the right version based on this table:
SM-G935F, SM-G935FD, SM-G935X, SM-G935W8: hero2lte
SM-G930F, SM-G930FD, SM-G930X, SM-G930W8: See proper forum.
All others be sad.

Download is available at: https://idlekernel.com/nethunter/hero2lte/
Grab the 700 MB+ zip.
Kernel-only zip is for upgrading your kernel, or just using the NetHunter kernel by itself. (yes, you can do that!)

BEFORE INSTALLING

IMPORTANT: Kali NetHunter requires write access to your data partition!
Flash this zip in TWRP to allow system modifications and unencrypted data: https://idlekernel.com/fun-stuff-trust-me/no-verity-opt-encrypt.zip
Once that is flashed, go to the wipe page and use the [Format Data] button.
This will wipe all your data, including internal storage!
Boot up your system and set up Android.
Now you can go back into TWRP and flash Kali NetHunter.

Currently, Samsung encryption is not supported by TWRP, so we have to disable it.
Sorry security freaks! There's a lot of irony here, isn't there?

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 (2.68) 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.

Also included is an extra Busybox that gives you full large file support and some extra applets.

FULL FRESH INSTALL STEPS
  1. Install Team Win Recovery Project to your recovery partition.
    Transparent.gif
  2. 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
  3. Download dm-verity and force encryption disabler.
    Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
    Transparent.gif
  4. 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
  5. Download Kali NetHunter.
    Without exiting TWRP, transfer the NetHunter installer zip to your device over MTP* and flash it using [Install] in TWRP.
    Transparent.gif
  6. Go to [Reboot] -> [System].
    Transparent.gif
  7. Wait 5-15 minutes for your device to finish setting itself up.
    Transparent.gif
  8. Open the NetHunter app to initialize the environment
    Transparent.gif
  9. 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

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

UPDATING YOUR ROM

To get all your NetHunter and SuperSU functions back after flashing a new ROM, just flash the ~60 MB update-nethunter-* zip again.

THE KERNEL

The NetHunter kernel for the Galaxy S7 Edge is based on Samsung's OSRC G935FXXU1APAW kernel sources.
It has the following changes:
  • F2FS updated to Jaeguek Kim's latest kernel.org f2fs-stable sources
  • F2FS formatted system, data, and cache partition support
  • UKSM Ultra Kernel Same-page Merging KSM support
  • Updated and enabled USB (OTG) Atheros, Ralink, and Realtek WiFi drivers
  • Simple IO (SIO) scheduler as default IO scheduler
  • USB HID Gadget keyboard support
  • mac80211 packet injection support
  • DriveDroid compatibility
  • Additional drivers built in for the full Kali NetHunter experience
  • Data partition encryption changed from forced to optional (disabled during installation)
  • Disables dm-verity and allows you to boot modified system partitions

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 not be something other than G935F, dangit!)
  • 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 - The keyboard is unusable when using Google Keyboard as your input method. Switch to Hacker's Keyboard.
  • NetHunter Terminal - It doesn't automatically set the columns/rows, so you need to type "resize" sometimes to fix the display.
DEVELOPMENT

You can see my branch of the installer development here: https://github.com/jcadduono/kali-nethunter
Alternatively, the main branch is also available on the Offensive Security GitHub: https://github.com/offensive-security/kali-nethunter
Kernel source: https://github.com/jcadduono/nethunter_kernel_herolte

SCREENSHOTS
1.png
2.png

4.png
3.png

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 Galaxy S7 Edge, Kernel for the Samsung Galaxy S7 Edge

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

Kernel Special Features:

Version Information
Status: Beta
Current Beta Version: 3.0.5
Beta Release Date: 2016-03-11

Created 2016-03-11
Last Updated 2016-04-15
 

riso123

Senior Member
Dec 3, 2010
1,371
241
i got "failed to install from external sd fault :1"......someone can help me?

---------- Post added at 10:00 PM ---------- Previous post was at 09:58 PM ----------



But bootloop now

Are you flashing from twrp posted on the other thread? Another guy has said he can't mount pairings which makes me think this is a similar issue, however you appear to actually be able to flash the file, which means either your partitions have mounted or you are not using twrp?

However the error your getting sounds like mount issues after the kernel flash.

Sent from my SM-G900F using XDA Free mobile app
 

Thiramisu

Senior Member
May 15, 2012
51
2
Are you flashing from twrp posted on the other thread? Another guy has said he can't mount pairings which makes me think this is a similar issue, however you appear to actually be able to flash the file, which means either your partitions have mounted or you are not using twrp?

However the error your getting sounds like mount issues after the kernel flash.

Sent from my SM-G900F using XDA Free mobile app

i flashed the TWRP, and my Phone boot correctly. after i tray to flash update-nethunter-hero2lte-marshmallow-kalifs-full-rolling-3.0.5-20160311-1404.zip my phone have bootloops. i format data before i flash.
 

riso123

Senior Member
Dec 3, 2010
1,371
241
i flashed the TWRP, and my Phone boot correctly. after i tray to flash update-nethunter-hero2lte-marshmallow-kalifs-full-rolling-3.0.5-20160311-1404.zip my phone have bootloops. i format data before i flash.

Sounds like you followed the instructing correctly, however, could you bout to twrp and see if you can browse both your internal and external partitions. I still feels like a mount issue which is likely the recovery more than kernel.

Add you where able to boot after flashing recovery, are you able to now boot with the sd card removed?

Sent from my SM-G900F using XDA Free mobile app
 

Thiramisu

Senior Member
May 15, 2012
51
2
Sounds like you followed the instructing correctly, however, could you bout to twrp and see if you can browse both your internal and external partitions. I still feels like a mount issue which is likely the recovery more than kernel.

Add you where able to boot after flashing recovery, are you able to now boot with the sd card removed? Yes i am able to boot and see the SD Card, its not removed!

Sent from my SM-G900F using XDA Free mobile app

I try to install again update-nethunter-hero2lte-marshmallow-kalifs-full-rolling-3.0.5-20160311-1404.zip I get the Answer: Failed to install
Updater progress ended with Error: 1

i am able to see internal and external partitions

Error: Your data partitions appears to be empty
 
Last edited:

jcadduono

Recognized Developer
Jan 17, 2014
1,492
6,210
29
Thunder Bay
adduono.com
I try to install again update-nethunter-hero2lte-marshmallow-kalifs-full-rolling-3.0.5-20160311-1404.zip I get the Answer: Failed to install
Updater progress ended with Error: 1

i am able to see internal and external partitions
the only useful info you can provide is recovery.log, after trying to flash, go to advanced -> copy log to sdcard, then copy it off mtp storage and post it here
 
  • Like
Reactions: ALLDAT
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 20


    OKAY SO

    Currently, I am unable to get even stock kernel sources to boot. I'm not sure what to do to at this point. Waiting on someone else that actually has the device to get this figured out - DO NOT FLASH!

    WARNING: This is completely untested, highly theoretical, and possibly dangerous. Flash at your own risk.
    Back up your original boot image in TWRP before attempting to flash this! If it doesn't boot, you can simply restore your previous boot image.


    This is Kali NetHunter 3.0.5 for the Galaxy S7 Edge.

    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 updater 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, 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.

    DOWNLOAD

    Current version: 3.0.5 (beta, 2016-03-11)

    Please be careful to download the right version based on this table:
    SM-G935F, SM-G935FD, SM-G935X, SM-G935W8: hero2lte
    SM-G930F, SM-G930FD, SM-G930X, SM-G930W8: See proper forum.
    All others be sad.

    Download is available at: https://idlekernel.com/nethunter/hero2lte/
    Grab the 700 MB+ zip.
    Kernel-only zip is for upgrading your kernel, or just using the NetHunter kernel by itself. (yes, you can do that!)

    BEFORE INSTALLING

    IMPORTANT: Kali NetHunter requires write access to your data partition!
    Flash this zip in TWRP to allow system modifications and unencrypted data: https://idlekernel.com/fun-stuff-trust-me/no-verity-opt-encrypt.zip
    Once that is flashed, go to the wipe page and use the [Format Data] button.
    This will wipe all your data, including internal storage!
    Boot up your system and set up Android.
    Now you can go back into TWRP and flash Kali NetHunter.

    Currently, Samsung encryption is not supported by TWRP, so we have to disable it.
    Sorry security freaks! There's a lot of irony here, isn't there?

    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 (2.68) 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.

    Also included is an extra Busybox that gives you full large file support and some extra applets.

    FULL FRESH INSTALL STEPS
    1. Install Team Win Recovery Project to your recovery partition.
      Transparent.gif
    2. 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
    3. Download dm-verity and force encryption disabler.
      Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
      Transparent.gif
    4. 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
    5. Download Kali NetHunter.
      Without exiting TWRP, transfer the NetHunter installer zip to your device over MTP* and flash it using [Install] in TWRP.
      Transparent.gif
    6. Go to [Reboot] -> [System].
      Transparent.gif
    7. Wait 5-15 minutes for your device to finish setting itself up.
      Transparent.gif
    8. Open the NetHunter app to initialize the environment
      Transparent.gif
    9. 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

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

    UPDATING YOUR ROM

    To get all your NetHunter and SuperSU functions back after flashing a new ROM, just flash the ~60 MB update-nethunter-* zip again.

    THE KERNEL

    The NetHunter kernel for the Galaxy S7 Edge is based on Samsung's OSRC G935FXXU1APAW kernel sources.
    It has the following changes:
    • F2FS updated to Jaeguek Kim's latest kernel.org f2fs-stable sources
    • F2FS formatted system, data, and cache partition support
    • UKSM Ultra Kernel Same-page Merging KSM support
    • Updated and enabled USB (OTG) Atheros, Ralink, and Realtek WiFi drivers
    • Simple IO (SIO) scheduler as default IO scheduler
    • USB HID Gadget keyboard support
    • mac80211 packet injection support
    • DriveDroid compatibility
    • Additional drivers built in for the full Kali NetHunter experience
    • Data partition encryption changed from forced to optional (disabled during installation)
    • Disables dm-verity and allows you to boot modified system partitions

    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 not be something other than G935F, dangit!)
    • 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 - The keyboard is unusable when using Google Keyboard as your input method. Switch to Hacker's Keyboard.
    • NetHunter Terminal - It doesn't automatically set the columns/rows, so you need to type "resize" sometimes to fix the display.
    DEVELOPMENT

    You can see my branch of the installer development here: https://github.com/jcadduono/kali-nethunter
    Alternatively, the main branch is also available on the Offensive Security GitHub: https://github.com/offensive-security/kali-nethunter
    Kernel source: https://github.com/jcadduono/nethunter_kernel_herolte

    SCREENSHOTS
    1.png
    2.png

    4.png
    3.png

    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 Galaxy S7 Edge, Kernel for the Samsung Galaxy S7 Edge

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

    Kernel Special Features:

    Version Information
    Status: Beta
    Current Beta Version: 3.0.5
    Beta Release Date: 2016-03-11

    Created 2016-03-11
    Last Updated 2016-04-15
    5
    Cowards!

    Ahem, anyone tried this yet?

    Sent from my SM-G935F using Tapatalk
    3
    Can u give me a link to this law?

    http://matija.suklje.name/rooting-and-flashing-your-device-does-not-void-the-warranty-in-eu

    but the bigger problem is that if you trip KNOX you would probably never be able to use samsung pay .
    3
    Cowards!

    Ahem, anyone tried this yet?

    Sent from my SM-G935F using Tapatalk

    Someone tried the G930F version for me earlier. They said it worked but they had random reboots once in a while.
    I'm hoping someone will show up and know how to grab /proc/last_kmsg or something. :)
    3
    Would not it be better to close this thread, especially since many users end up in bootloop? I personally feel Fooled!!

    Nobody is forcing you to flash it. The devs giving up his free time working on stuff for your new phone so the least you can do is try and help him out or keep quiet
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone