[Kernel+] Kali NetHunter for the OnePlus 3 & 3T

Search This thread

fredrickz

Senior Member
May 27, 2012
69
72
inform me if u created one,

Oxygen OS Oreo 5.x.x and LineageOS 15.1 Kernel updated with nethunter and drivedroid support. See links below. Packet injection and monitor mode works on all chroot . eg - LinuxDeploy and Nethunter

https://forum.xda-developers.com/on...nel-coconut-kernel-lineage-15-1-oreo-t3902479

and

https://forum.xda-developers.com/oneplus-3/development/kernel-coconut-kernel-oos-oreo5-x-x-t3902040

---------- Post added at 08:59 AM ---------- Previous post was at 08:56 AM ----------

inform me if u created one,

I am not able to install, I got the below error "Your data partition appears to be empty"

After flashing stock rom or wiping data partition you need to reboot and run the initial setup. After finishing that, you can flash nethunter from twrp.
 
  • Like
Reactions: Limitscrw

metaspook

Recognized Developer
Sep 12, 2014
328
581
Oxygen OS Oreo 5.x.x and LineageOS 15.1 Kernel updated with nethunter and drivedroid support. See links below. Packet injection and monitor mode works on all chroot . eg - LinuxDeploy and Nethunter

https://forum.xda-developers.com/on...nel-coconut-kernel-lineage-15-1-oreo-t3902479

and

https://forum.xda-developers.com/oneplus-3/development/kernel-coconut-kernel-oos-oreo5-x-x-t3902040

---------- Post added at 08:59 AM ---------- Previous post was at 08:56 AM ----------





After flashing stock rom or wiping data partition you need to reboot and run the initial setup. After finishing that, you can flash nethunter from twrp.

Will it work for "OnePlus 3T" ???
 

fredrickz

Senior Member
May 27, 2012
69
72
Will it work for "OnePlus 3T" ???

I haven't personally tried, but it should work as the source from which i built is for both.
Make sure that you are on the latest firmware.
That means you should have either flashed OOS 5.0.8 full Rom zip file or, flashed the firmware plus modem collection 5.0.8. Currently it works in stock OOS 5.x.x and lineageos 15.1 or ROMs based on these.
The USB WiFi drivers will only work on latest firmware.
For stock OOS 5.0.8, you also need to enable USB otg storage from settings--> advanced
Read the full post in the thread.
 

iM7md

New member
Nov 26, 2017
3
0
Oxygen OS Oreo 5.x.x and LineageOS 15.1 Kernel updated with nethunter and drivedroid support. See links below. Packet injection and monitor mode works on all chroot . eg - LinuxDeploy and Nethunter

https://forum.xda-developers.com/on...nel-coconut-kernel-lineage-15-1-oreo-t3902479

and

https://forum.xda-developers.com/oneplus-3/development/kernel-coconut-kernel-oos-oreo5-x-x-t3902040

---------- Post added at 08:59 AM ---------- Previous post was at 08:56 AM ----------





After flashing stock rom or wiping data partition you need to reboot and run the initial setup. After finishing that, you can flash nethunter from twrp.

did wipe data partition via twrp recovery and device rebooted but its stuck on 1+ boot screen! I am not able to run the initial setup!
 

fredrickz

Senior Member
May 27, 2012
69
72
If you are trying to install nethunter, first flash stock rom having nethunter support. Then reboot and finish the initial setup.
Then install kali chroot by flashing the proper zip
Then flash the nethunter kernel and reboot
 

fredrickz

Senior Member
May 27, 2012
69
72
did wipe data partition via twrp recovery and device rebooted but its stuck on 1+ boot screen! I am not able to run the initial setup!

stock rom w/ nethunter support like what exactly?

https://build.nethunter.com/nightly/2019.03-13-0514/
See the above page. It's has nethunter kernels and rom overlay for supported devices.
If you want to install nethunter, you need to check this page if it supports your device and if it does, you should check what Android versions are supported.
Then flash any of the supported Android, run the initial setup. Then from twrp flash nethunter generic installer and then the kernel from the link above. Then reboot your device.
You can also compile a missing kernel yourself for your device.
 
  • Like
Reactions: Limitscrw

aiamuzz

Senior Member
Dec 24, 2011
495
46
Hi,

OP 3T has released their latest(Final) update Version 9.0.6 ...

This tutorial seems to speak only about Nougat ...

Anybody here who have installed Kali-Nethunter on OOS 9.0.5 or OOS 9.0.6 on a device with multirom(as a secondary ROM) ?
If so please post the instructions sets and links to the files used in the installation.

thanks.
 
  • Like
Reactions: geiszla

malguru

New member
Dec 8, 2019
1
0
id be looking for that too aiamuzz
been trying to install nethunter on oneplus3t for weeks with no success!! does this thing actuall work at all and if so whats the combination?
minefield
 

iamgenius

New member
Dec 3, 2019
3
2
I tried to load nethunter into my oneplus 3T but failed. I need your help

Hi to all. Before I start my very first post, I just want to say thanks to the xdadevelopers forums overall. It has helped me many times in the past. It is a very nice place.

Okay, so I have installed kali nethunter into my nexus 6P angular before and as I remember the instructions were easy to follow. That was back in 2016. If I remember correctly, it was the offensive security website that I used and followed. Now it is different, and I'm lost between offensive security, kali linux forums, github, and gitlab. The instructions are scattered all around.

I want to load nethunter into my oneplus 3T as it is a compatible devices as per this link:



However, the specific image for oneplus 3T is not found in the offensive security page:


In fact, not all compatible devices found in the first link can be found in the second link. So, what gives? What am I missing?

It sounds like I have to download some files from the nightly builds. I found this page after a little search. I read the OP several times. And it seems like I have to first load the recovery zip from twrp.me, load the generic nethunter zip, and finally load the nethunter kernel specific to my device. Is this the right order??? Anyways, I loaded the twrp image successfully. Before that I have copied the generic nethunter image and kernel into device sdcard. While in recovery, I tried to install the generic nethunter image but I get an error. I also tried to install it using adb sideload but it also fails (it stops at 50%).

These are the specific files I used:
TWRP image:


Generic nethunter zip:


Nethunter kernel:


This is the error I get in recovery:


And this is information about my device:


You can see that my devices is using oxygen 4.1.6 and android 7.1.1
A note: in the gitlab link above, it says that my oneplus 3T shoud be on 6.0.1 or 7.0.0. If this is the reason, how do I go back??

Did you spot any other mistakes? I will be really grateful if you can help me guys. Thanks.

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

Sorry, I had to delete the links because of the website policy. I can include them later on or send them to somebody who can post them.
 

iamgenius

New member
Dec 3, 2019
3
2
Hi to all. Before I start my very first post, I just want to say thanks to the xdadevelopers forums overall. It has helped me many times in the past. It is a very nice place.

Okay, so I have installed kali nethunter into my nexus 6P angular before and as I remember the instructions were easy to follow. That was back in 2016. If I remember correctly, it was the offensive security website that I used and followed. Now it is different, and I'm lost between offensive security, kali linux forums, github, and gitlab. The instructions are scattered all around.

I want to load nethunter into my oneplus 3T as it is a compatible devices as per this link:



However, the specific image for oneplus 3T is not found in the offensive security page:


In fact, not all compatible devices found in the first link can be found in the second link. So, what gives? What am I missing?

It sounds like I have to download some files from the nightly builds. I found this page after a little search. I read the OP several times. And it seems like I have to first load the recovery zip from twrp.me, load the generic nethunter zip, and finally load the nethunter kernel specific to my device. Is this the right order??? Anyways, I loaded the twrp image successfully. Before that I have copied the generic nethunter image and kernel into device sdcard. While in recovery, I tried to install the generic nethunter image but I get an error. I also tried to install it using adb sideload but it also fails (it stops at 50%).

These are the specific files I used:
TWRP image:


Generic nethunter zip:


Nethunter kernel:


This is the error I get in recovery:


And this is information about my device:


You can see that my devices is using oxygen 4.1.6 and android 7.1.1
A note: in the gitlab link above, it says that my oneplus 3T shoud be on 6.0.1 or 7.0.0. If this is the reason, how do I go back??

Did you spot any other mistakes? I will be really grateful if you can help me guys. Thanks.

---------- Post added at 04:19 PM ---------- Previous post was at 04:16 PM ----------

Sorry, I had to delete the links because of the website policy. I can include them later on or send them to somebody who can post them.

Something I forgot to mention was that I had to run fastboot oem unlock so that I can unlock the boot loader and then flash the recovery image.
If you need more information or details, please let me know.

---------- Post added at 06:56 PM ---------- Previous post was at 06:50 PM ----------

---------- Post added at 07:06 PM ---------- Previous post was at 06:56 PM ----------

id be looking for that too aiamuzz
been trying to install nethunter on oneplus3t for weeks with no success!! does this thing actuall work at all and if so whats the combination?
minefield


May I know the steps you followed? And the specific details about your device? The oxygen os version and the android version?

I wonder if nethunter is only compatible with a certain oos version and a certain android verison !
 
Last edited:
  • Like
Reactions: LeiaBorg

iamgenius

New member
Dec 3, 2019
3
2
The TWRP was the culprit

For those who read my post and probably having the same issue: I was able to go back to Oxygen 4.0.2 and Android 7.0.0, but still it didn't work. I was using the latest custom recovery to my oneplus 3T. Only after I switched to using TWRP 3.3.0-0 (Two versions before the last) the flashing worked and I was able to load the generic nethunter and then the nethunter kernel. Kali nethunter is now working inside my oneplus 3T device. I was told to try older versions of TWRP by somebody in gitlab. Thanks to him. I also later discovered that it could actually work with Android 7.1 as I have seen with some other posts and videos. I don't know why TWRP 3.1.1-1 is NOT working.

I will start playing with it now and see. Hopefully no more issues.
 
  • Like
Reactions: LeiaBorg

LeiaBorg

New member
Dec 16, 2019
1
0
Thanks but no external WIFI adapter found

For those who read my post and probably having the same issue: I was able to go back to Oxygen 4.0.2 and Android 7.0.0, but still it didn't work. I was using the latest custom recovery to my oneplus 3T. Only after I switched to using TWRP 3.3.0-0 (Two versions before the last) the flashing worked and I was able to load the generic nethunter and then the nethunter kernel. Kali nethunter is now working inside my oneplus 3T device. I was told to try older versions of TWRP by somebody in gitlab. Thanks to him. I also later discovered that it could actually work with Android 7.1 as I have seen with some other posts and videos. I don't know why TWRP 3.1.1-1 is NOT working.

I will start playing with it now and see. Hopefully no more issues.

THank you for finding this. I too now have Nethunter running on my Oneplus 3t. However, I can't get external Wifi adapters to be found. I tried the TP-link-WN722N v1, and ALFA AWU036NHA but they didn't even light up. I've checked that the lasted drivers are installed and did apt update and Upgrade. Also I flashed the oos Nethunter kernal for the 3t after the generic one. Still no dice.
I'm wondering if the phone's port is damaged but it can read USB sticks ok. Anyone else have this issue? Thanks.
OOs ver 4.5.0. Android version 7.1.1 with nethunter-generic-armhf-kalifs-minimal-rolling-2019.03-13-0514.zip and kernel-nethunter-oneplus3T-oos-nougat-2019.03-13-0514.zip

EDIT: in kali mode terminal , type modprobe ath9k_htc and now the external wifi adapteTP-link-WN722Nr will be recognized when airmon-ng is entered! :D
 
Last edited:

tigre-bleu

New member
Jun 17, 2020
1
0
Lineage 17.1

Hi,

I try to install Nethunter 2020.2 (Oneplus3 Any Ten) on an Oneplus3T with LineageOS 17.1 (Android 10).

Lineage Works very well but after applying the kali zip from twrp, the device does not boot anymore (Black Screen). Did anyone tried this with success?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 40

    OKAY SO

    I present to you: Kali NetHunter 3.15.4 for the OnePlus 3 and OnePlus 3T

    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.4 (stable, 2017-02-02)

    Please be careful to download the right version based on this table:
    OnePlus 3: kernel-nethunter-oneplus3-nougat
    OnePlus 3T: kernel-nethunter-oneplus3-nougat
    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!
    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 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. 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
    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. Go to [Reboot] -> [System].
      Transparent.gif
    6. Wait 2-5 minutes for your device to finish setting itself up.
      Transparent.gif
    7. Open the NetHunter app to initialize the environment
      Transparent.gif
    8. 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 OnePlus 3/3T 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 OnePlus 3 & 3T is based on OnePlus's OxygenOS 4.0.2 GitHub kernel sources.
    It has the following changes:
    • Rebased on top of CodeAurora msm-3.18 for msm8996 7.0 tag: LA.UM.5.5.r1-02500-8x96.0 (2017-01-22)
    • Updated to the latest Linux mainline stable - 3.18.47
    • SELinux Permissive (required for DriveDroid until I fix policy injection rules, it will pretend to be Enforcing)
    • 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
    • Kernel module support, insert your own modules! (modprobe available in Kali chroot)
    • CIFS, NFS, USB serial available through included kernel modules
    • VerifiedBoot=green status hack to pass SafetyNet (may not work with SuperSU, remove SuperSU from the installer if this is important!)

    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
    OnePlus 3T NetHunter kernel source: https://github.com/jcadduono/android_kernel_oneplus_msm8996/commits/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 OnePlus 3 & 3T, Kernel for the OnePlus 3T

    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.4
    Stable Release Date: 2017-02-02

    Created 2016-11-27
    Last Updated 2017-02-03
    3
    That's pretty cool, but I guess for me if I need it, I usually grab a laptop for it. IMO, this is not for most people. Seriously, if you have more tools to do a bunch of pen-test stuff on your phone, the very same phone that you use for other daily routine stuff, it also means those daily routine daily apps could have access to your pen-test tools also. It's like having a bunch of lock picking tools available in your garage when a thief trying break in to your house.

    On the plus side, the lock picking tools in the garage are locked in a safe (SuperSU permission requests), so those thieves can't access them unless they hold a gun to you and say "open the damn safe! ... in 3...2...1...accept supersu request!" :p
    3
    Kernel

    Hi , I build kernel for OP3T based on dorimanx kernel. Included all nethunter modules except bluetooth usb. Give it a try guys
    3
    OOS4 Nougat test build #1 : https://build.nethunter.com/test-builds/oneplus/kernel-nethunter-oneplus3-nougat-test1.zip

    Please report back!

    After testing stability on stock, flash: https://build.nethunter.com/nightly...-kalifs-full-rolling-3.15.4-20170116-1311.zip
    This will install the rest of NetHunter to continue testing WiFi pen, HID attacks, etc.

    This is for both OnePlus 3 and OnePlus 3T.

    Notice: This build is forced in SElinux Permissive as NetHunter is not fully compatible with Nougat's policies. It will say it is in Enforcing mode only to pass SafetyNet CTS!
    2
    It doesn't seem to be detecting my alfa awus036NHA (atheros ar9271) Can someone confirm? OP3T

    If you go into a Kali terminal and type ifconfig, you don't have a wlan1 device? Have you tried downloading USB host viewer from play store and seeing if the device shows up there?