• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL] [KALI-NETHUNTER] Burgerhunter/Dumplinghunter [OOS]

Search This thread

bhaveshppatel

New member
Jul 1, 2016
2
0
Hello
I have oneplus 5t ENCRYPTED with 9.0.11 Pie and nethunter kernel, magisk and recovery twrp-3.3.1-x_blu_spark_v9.101_treble-op5_op5t installed.
I managed to upgrade to android 10 without any loss of data by doing the following
1. Remove any fingerprint, patern, password, face data from security and lock screen settings.
2. Open magisk app DISABLE and DELETE all the modules you have. Restart the phone.
3. Download latest blu_spark twrp, latest magisk installer, latest stock rom (ANDROID 10) and latest kali nethunter kernel from @simonpunk2013.
4. Open latest stock rom with total commander app and delete compatibility.
5. Reboot to twrp.
6. Wipe cache and davlik / ART cache
8. Flash latest stock rom, reboot to bootloader and flash blu_spark twrp, reboot to recovery.
9. Flash nethunter kernel
10. Flash latest magisk installer.
11. Reboot to Android.
12 After the phone restarts reinstall all your modules including the nethunter module from @simonpunk2013 (otherwise the nethunter app will not work). (OPTIONALY) Otherwise you can download the official nethunter app and try it.
14. The latest kernel of @simonpunk2013 (9.0.11) works fine with android 10. Also monitor mode of wlan0 works fine. I just tested it.

Many thanks
hello can some help i am not able to download latest rom from simonpunk2013 .the drive link dont work. can some help me with latest rom for one plus 5 .i need oneplus 5t ENCRYPTED with 9.0.11 Pie and nethunter kernel, magisk and recovery twrp-3.3.1-x_blu_spark_v9.101_treble-op5_op5t.
 

covar

Senior Member
May 6, 2018
120
19
hello can some help i am not able to download latest rom from simonpunk2013 .the drive link dont work. can some help me with latest rom for one plus 5 .i need oneplus 5t ENCRYPTED with 9.0.11 Pie and nethunter kernel, magisk and recovery twrp-3.3.1-x_blu_spark_v9.101_treble-op5_op5t.
At the first page of this thread you will find only the nethunter kernel from the gitlab page of simonpunk2013. After that you have to download the official rom from the official site of oneplus and follow the above instructions.
 

covar

Senior Member
May 6, 2018
120
19
Hello
I'm trying to recompile nethunter kernel for onplus5T in order to enable RFCOMM support for bluetooth devices.
I have download the source kernel from here https://github.com/arter97/android_kernel_oneplus_msm8998 (it is a custom kenel) and i have followed the instructions as showed. For some reason export CROSS_COMPILE does not work. Even if i download another toolchain still i have the same problem.
Please help.
 

Attachments

  • 4.jpg
    4.jpg
    394.5 KB · Views: 10

Top Liked Posts

  • There are no posts matching your filters.
  • 50
    nethunter-git-logo-700x395.png

    Here's Burgerhunter/Dumplinghunter, a nethunter kernel for the oneplus 5/5T !

    You know why you are here...


    • Burgerhunter kernel aim to port Kali Nethunter to the OP5, Kali nethunter is the entire Kali Linux operating system in a chroot on your phone.
      In short Kali nethunter allows (nearly) any kali tool you love to run from your device and more !
      For more information, RTFM --> https://github.com/offensive-security/kali-nethunter/wiki

    About the kernel:
    • This kernel is built based on Official OOS kernel, franco kernel, or ElementalX.
    • This kernel is available for Official OOS ROM!
    • Selinux is always set to permissive mode.
      [*]HID patch, some wifi packet injection patches, also enable the ECM protocol which allows you to share your device's network on Mac OS directly without any rndis driver installed. Added some drivers for external usb devices, like HackRF, proxmark3, serial adapters, etc.
    • Wireguard is patched.
    • Compile toolchain: gcc-arm-8.3-2019.03-x86_64-aarch64-elf & gcc-arm-8.3-2019.03-x86_64-arm-eabi
    • Nethunter kernel for OP5/5T is constantly updated.
    • Internal wifi monitor mode is supported now with latest nethunter kernel(OOS 9.0.11), but no packet injection ATM, however PMKID can still be catched. Details here: https://twitter.com/kimocoder/status/1243314073464377344

    Source references:

    Things you can play with this nethunter kernel:
    • Wifi penetration as long as you got a working dongle, or just use internal wifi monitor mode to capture the PMKID.
    • Perform HID attack with mouse & keyboard on all OS.
    • CDROM & Mass storage simulation supported with latest nethunter app or Drivedroid.
    • RNDIS & ECM simulation against Windows, Linux & Mac OS. Using RNDIS on Windows/Linux, and ECM on Linux/Mac OS(without any rndis driver installed on Mac OS).
    • Working macchanger.
    • The usual utilities you used to play with Kali OS(limited to armhf and arm64).

    Recommendations

    Things you'll need for wifi penetration test:
    • A usb c otg adapter. (you can also buy another otg with additional ethernet port.)
    • A usb wifi dongle capable of monitor mode, you can try some with realtek/ralink/atheros chipset. AWUS036H / AWUS036NEH works great !

    Please read through those words highlighted in RED!! DON'T ASK FOR HELP if you didn't follow the exact steps from the instruction, because I CAN'T help if you do it on your own way!!


    ↓↓↓↓ INSTALLATION SECTION ↓↓↓↓

    [[[[[ Things you need before start flashing ]]]]]
    1. Make sure you enable the USB debugging in developer option and confirm ADB is working.
    2. A working twrp recovery, I recommend the "codeworkx" version, just search the latest updated one on XDA for downloads.
    3. Latest magisk installer zip.
    4. Nethunter kernel zip.
      [*]Optional: A chroot tarball file if you choose to install the chroot by restore method, it can be downloaded from the Download section below.
    5. Push all of them in the root of your /sdcard folder.

    [[[[[ Before going any further, please check the following things below ]]]]]
    1. Make a full nandroid backup. (always recommended in case you want to roll back the previous state) But for the data in /sdcard, you better make them a copy to other places as well.
      [*]If you have kali chroot installed before, and you want to clean install the nethunter kernel, so please try to remove the chroot folder in twrp recovery first, just remove the whole directory: "/data/local/nhsystem" in twrp. But if you failed deleting the chroot folder, please format your data partition, and format it with ext2 format, and then format it again back to ext4.

    ** For those who are switching ROM from between STABLE and OPENBETA, please do go for CLEAN INSTALLATION **

    [[[[[ CLEAN INSTALLATION ]]]]]

    1. Boot into twrp recovery.
    2. Follow these steps:
      ---wipe partitions including dalvik cache, cache, system, data & internal storage.
      ---Swipe to factory reset.
      ---Select "Format data", then type "yes".
      These three steps should clear all your data in /sdcard and all the encrypted or unencrypted partition as well. Then proceed to next step.
    3. Place all the needed files in /sdcard through MTP or adb from your PC.
    4. Flash official oos stock ota ROM zip, then reboot to bootloader.
    5. Flash twrp recovery again, and reboot to recovery. (because the stock ota ROM zip will overwrite the recovery.)
    6. Flash nethunter kernel.
    7. Flash official magisk installer zip.
    8. Reboot into system.
      [*]Download my nethunter-tribute app(see "Download" section below), open it and navigate to Chroot Manager fragment, and choose the way you want to install the chroot.(more info on "Chroot installation and trouble shooting" section below)
    9. Download and install official nethunter app store apk, and then install the latest version of nethunter app and nethunter terminal app. And finally install the Kali Chroot in nethunter app's Chroot Manager.
    10. Open magisk manager -> Downloads, search for "Wireless Firmware for Nethunter" by rithvikvibhu, download and install it, reboot again. (This step is trying to install a magisk module which includes the wireless firmware required by some external usb WiFi dongle)
    11. Happy Hunting.

    [[[[[ DIRTY INSTALLATION ]]]]]
    * For devices that have magisk installed already.

    1. Make sure your devices have magisk installed already, and using a working twrp recovery(codeworkx or bluespluk).
    2. Place all the needed files in /sdcard.
    3. Reboot into twrp recovery.
    4. Flash nethunter kernel.
    5. Flash official magisk installer zip.
    6. Reboot into system.
      [*]Download my nethunter-tribute app(see "Download" section below), open it and navigate to Chroot Manager fragment, and choose the way you want to install the chroot.(more info on "Chroot installation and trouble shooting" section below)
    7. Download and install official nethunter app store apk, and then install the latest version of nethunter app and nethunter terminal app. And finally install the Kali Chroot in nethunter app's Chroot Manager.
    8. Open magisk manager -> Downloads, search for "Wireless Firmware for Nethunter" by rithvikvibhu, download and install it, reboot again. (This step is trying to install a magisk module which includes the wireless firmware required by some external usb WiFi dongle)
    9. Happy Hunting.

    [[[[[ How to dirty update OOS ROM without losing any data?]]]]]

    1. Make NANDROID backup as always.
    2. Make sure you have downloaded the official full stock rom zip(not ota, size should be larger than 1.5g).
      [*]Reboot into twrp recovery, and wipe dalvik cache & cache partitions.
    3. Flash official stock ota zip, then reboot into bootloader and re-flash the twrp recovery again.
    4. Re-flash nethunter kernel.
    5. Re-flash magisk installer zip
    6. Reboot into system.
    7. Now all data in /data partition should remain unchanged which means all your files are still there, but the OOS version is upgraded.


    ↓↓ Chroot installation and trouble shooting ↓↓
    [*]Install the official nethunter app via official nethunter app store first, and install the kali chroot via Chroot Manager in nethunter app.
    [*]If you are trying to remove the chroot and encounter some permission issue that not allowing your to delete the folder, your /data partition may possibly corrupt already, and the only way to solve it is to format the /data partition, or wipe out the whole phone. sometimes you won't be even able to format it, then you will need to proceed "change the filesystem" of /data to ext2 first, it can force format the /data partition and make it to ext2, then change it back to ext4. Now you can re-install the ROM zip and start it all over again.

    ↓↓↓↓ USB ARMY ↓↓↓↓

    How to bring up HID ?? (For OnePlus5/5T only)

    • Now you can do it from my latest modded nethunter app called nhtribute in the USB Army fragment.
    Or, you can do it manually following the guide below:

    • Make sure you have the kernel flashed properly, and confirmed wifi is working.
    • Now, you can switch the usb to different status, currently you have the options belows:
      Code:
      setprop sys.usb.config reset
      setprop sys.usb.config win,hid
      setprop sys.usb.config win,mass_storage
      setprop sys.usb.config win,rndis
      setprop sys.usb.config win,hid,mass_storage
      setprop sys.usb.config win,rndis,hid
      setprop sys.usb.config win,rndis,mass_storage
      setprop sys.usb.config win,rndis,hid,mass_storage
      setprop sys.usb.config mac,hid
      setprop sys.usb.config mac,mass_storage
      setprop sys.usb.config mac,ecm
      setprop sys.usb.config mac,hid,mass_storage
      setprop sys.usb.config mac,ecm,hid
      setprop sys.usb.config mac,ecm,mass_storage
      setprop sys.usb.config mac,ecm,hid,mass_storage
    • [reset] -> reset the usb state to [mtp] or [mtp,adb]
    • [win] -> target on Windows or Linux
    • [mac] -> target on Mac OS
    • [hid] -> enable HID
    • [rndis] -> enable RNDIS if your target is Windows or Linux.
    • [ecm] -> enable ECM if your target is Mac OS.
    • [mass_storage] -> enable MASS_STORAGE
    • Alternatively you can append ",adb" to the end of each command above that enables adb as well.
    • So you can bring up the HID, RNDIS/ECM and mass_storage at the same time, it would be useful if you don't have any keyboard or bootable usb or network at that moment.
      [*]Also, for HID attack, I have added the code to "bootkali" for checking if the target PC has your HID drives installed before executing the ducky script.
      [*]The usb interface is actually setup and described in init.nethunter.rc file at your android root folder, please take a look.
    How can I share my device's network after switching the usb state to RNDIS/ECM ??
    • First, make sure your usb state is on RNDIS or ECM, please note that these is no network assigned to your RNDIS(rndis0) or ECM(usb0) interface every time you switch to them.
    • All these jobs can be done in the nethunter app or by executing the "auto_network_sharing.sh", place that script into "/sdcard/nh_files/punkscripts/"
    • Feel free to modify or add up your code and share your idea to improve the script.

    Thanks to:

    The Kali NetHunter team, arter97(op5/5t kernel source), nikhil18, adinkwok, flar2(ElementalX kernel), Atarii(Magisk module for nethunter) and many more !!!

    My github source

    Nethunter kernel source for OP5/5T:
    https://gitlab.com/simonpunk/op5_arter97_nethunter_kernel/-/tree/op5-nethunter-pie
    Nethunter kernel zip for OP5/5T:
    https://gitlab.com/simonpunk/OP5_Anykernel3_Nethunter/-/tree/master/release
    Modded anykernel3 build script:
    https://gitlab.com/simonpunk/OP5_Anykernel3_Nethunter
    Modded nethunter app for OnePlus5/5T(old repo, no longer maintained.):
    https://github.com/simonpunk/nethunter-app
    Official nethunter terminal:
    https://gitlab.com/kalilinux/nethunter/apps/kali-nethunter-term/-/tree/nethunter


    ↓↓↓↓ DOWNLOAD SECTION ↓↓↓↓

    Nethunter Kernel for OP5/5T:
    https://gitlab.com/simonpunk/OP5_Anykernel3_Nethunter/-/tree/master/release

    Magisk wireless firmware module zip for nethunter:
    Please search for "wireless firmware for nethunter" by rithvikvibhuin and install it in the magisk manager app.

    Nethunter app:
    Official nethunter app can be installed via official nethunter store app.

    Nethunter terminal app:
    Official nethunter terminal app can be installed via official nethunter store app.

    Kali Chroot:
    Kali Chroot can be installed and configured via latest version of official Nethunter app.


    Last updated: [2020-03-27]
    1. Updated instruction guide.

    XDA:DevDB Information
    Burgerhunter/Dumplinghunter, Kernel for the OnePlus 5

    Contributors
    Arka1n, simonpunk2013
    Kernel Special Features:

    Version Information
    Status: Nightly

    Created 2017-07-18
    Last Updated 2020-04-21
    5
    Happy New Year, Guys, I have compiled another nethunter kernel for OnePlus5T(OOS 4.7.6)

    Nethunter kernel for OP5T

    I just complied and I don't have the device, so I can't not test it. If anyone willing to try, go to the link above and find the zip file.

    And, the same, remember to make backup before going further, I am not responsible for any loss.
    5
    [2019-01-01]
    1. Updated nethunter kernel for OP5-5T OOS Pie.
    2. Updated nethunter app for some changes because of Pie.
    3. VNC viewer not getting a normal screen when connecting to kali's vncserver, will keep trying to fix it and if you know how to fix it, please let me know!!
    4. Many folks on internet report some apps keep crash the phone, it happens on my phone as well, even my magisk manager crashed one time. So I think this is likely because some apps are not yet updated. Or we still need to wait for magisk update or other app's update.

    Now here are some instructions for those who wants to dirty flash upgrading from Oreo to Pie without full wipe, thanks to xda folks.
    1. Firstly, download the official Pie ROM, the latest Magisk zip, the latest build of codeworkx recovery for Pie(Do not flash it ATM), and download a app called "ZArchiver" from google play.
    2. Open "ZArchiver" app and navigate to your Pie ROM zip, then "tap it" -> "View" -> "long press the compatibility.zip" -> "Delete"
    3. Reboot into recovery, flash the Pie ROM zip
    4. Reboot into bootloader, now flash the latest codeworks recovery.
    5. Reboot into recovery, flash the nethunter kernel, and then magisk zip.
    6. reboot into system. (Please be reminded that the whole step will take you more than 30 mins, just be patient if your splash screen stay still or the red circle keep loading)
    7. Open Magisk, install the magisk_nethunter_module_Pie.zip, and reboot again.
    8. If you find your app is working abnormal, maybe you can try to wipe the cache in recovery or clear the app cache individually.
    4
    Updated kernel to OP5 (open_beta7) & 5T (open_beta5)
    Check out my Google drive, thank you.

    EDIT: Sorry, I updated the wrong versions for 5T, I have re-uploaded again.
    4
    Okay Guys, here you go.
    Nethunter kernel for OnePlus5:
    https://drive.google.com/open?id=1D57nJDBirCuSvzFGqIuR5qDrpNNBpchc

    You may find the latest nethunter kernel and other useful scripts exclusive for OnePlus5 in google drive linked above.

    And here is just my personal guideline to flash my nethunter kernel.
    Note: things to do before flash.
    1. Always make backup whenever you flash another rom or kernel.
    2. Clear dalvik cache and Cache whenever you are going to flash other zip.

    Steps for those who are on the clean stock OOS rom(rooted or non-rooted) with NO nethunter installed before, and want to use magis: instead of supersu.
    1. Make sure you are on the Stock OOS, as other custom OOS may have different modification in their roms which my kernel won't work with.
    2. Check your OOS version, in this case lets say 4.5.15, then download the right kernel version for your device, the zip is named as [kernel-nethunter-oneplus5-nougat(OOS_X.X.XX)-Date]
    3. Make sure download the latest twrp recovery and flash it.
    4. Boot into twrp recovery, clear dalvik cache cache and flash the the kernel zip.
    5. flash latest magisk installer zip.
    6. Reboot and open nethunter app,
    7. download the magisk-hunter module in the OP, and install it through magisk app.
    8. Reboot again, open nethuter app, allow all the access. Then go to Kali chroot manager, and download the nuthunter system.
    9. Done, you can check whether you can switch different usb mode between HID, MASS_STORAGE, RNDIS and ECM using my script named as [usb_army.sh]

    How to use the script:
    1. Download the punkscript folder and place it somewhere in /sdcard/, and run the script by executing the command: "sh /sdcard/xxxx.sh" in Android environment, not Kali.
    2. usb_army.sh is used to switch the usb status.
    3. others are payload scripts. And posiontab.sh works on windows only right now, I still have to take a look what might go wrong with the setting.

    Should you have any question you can leave a comment, and I will try my best to help you and answer your question. And thank you guys for appreciating my work.