In this post we will go through installation of NetHunter with full kernel support on OnePlus 7 Pro device. The main benefit is to have drivers support for internal or external devices such as Wi-fi, Bluetooth, HID, BadUSB and SDR gadgets. Our goal will be to flash stock OOS 10, open bootloader, flash custom TWRP recovery, root, install custom kernel and flash NetHunter. If you rather prefer video tutorials, feel free to check installation of rootless NetHunter on YouTube. This is a technical tutorial with risks involved. Because of that, I am not responsible for any damage that you might cause to your device.
If you don’t want to take the risk of rooting your Android device but still install NetHunter, you can follow my previous blog Installation of rootless Kali NetHunter.
Install stock Oxygen OS 10
NetHunter is a chroot (rootfs called by Kali NetHunter) and not a custom ROM that can be flashed. Simply put, it’s a system within a system. Because of that, it requires some prerequisites such as the exact version of the operating system with a particular Android version to be installed on the device. At the time of writing this post, NetHunter can be installed only on over stock OxygenOS versions 10 and 11. In further steps, we will install OOS 10 using official MSM Download tool in emergency (EDL) mode provided and verified by OnePlus. This will factory reset all your data, make sure to create a backup first.
As a prerequisite, you need to have downloaded Android SDK tools (adb and fastboot) on your computer. You can download them from official android website for your platform.
Instructions
- Disable drivers signing verification on Windows computer using CMD executed with Admin privileges and reboot PC.
bcdedit /set testsigning on
- Download and install Qualcomm drivers
- Download OOS 10 ROM: guacamoleb_14_P.32_210127.zip
- Unzip downloaded ROM, and run
MsmDownloadTool V4.0.exe
- Power off OnePlus 7 Pro. Simultaneously press volume up and volume down buttons for 5 seconds and connect the device to computer. Once the MSM Download Tool recognizes the device (connected instead of N/A) click on Start button. You have to do it within around 15 seconds, since after ~30seconds the device will go into bootloader mode and it will not be recognized. After a few minutes device will reboot
- Setup device
- Enable USB debugging and unlock bootloader
- Go to
Settings
->About Phone
and tap 7 times onBuild Number
- Tap back button and to go
Developers options
and enableUnlock bootloader
andADB debugging
- Go to
- Reboot Android into bootloader mode using adb command:
adb reboot bootloader
- From bootloader unlock OEM, using command:
fastboot oem unlock
- Device will be wiped
Device should now be successfully flashed with Stock OOS 10 ROM and have open bootloader.
Install TWRP recovery and root
After we successfully unlocked the bootloader, we can install custom recovery. From recovery we will install Magisk; this will patch the boot image and allows us to use root permissions. Without having custom recovery, we wouldn’t be able to root the device and install NetHunter.
Instructions
- Enable USB debugging (mentioned above)
- Download and copy to Android both TWRP and Magisk: twrp-3.4.0-10-guacamole-unified-installer-mauronofrio.zip and Magisk-v23.0.zip
- Download TWRP: twrp-3.4.0-10-guacamole-unified-Q-mauronofrio.img
- Reboot Android into bootloader mode using adb command:
adb reboot bootloader
- Boot downloaded TWRP from PC using command:
fastboot boot twrp-3.4.0-10-guacamole-unified-Q-mauronofrio.img
- From booted TWRP install copy TWRP (
twrp-3.4.0-10-guacamole-unified-installer-mauronofrio.zip
) and Magisk (Magisk-v23.0.zip
) - Reboot to system
- Open and setup Magisk app (update & install)
- For clarification, you can verify if device was successfully rooted via adb commands:
adb shell and su
Disable encryption and dm-verity
We need to disable force encryption of data partition, to read user data. Disable dm-verity, which is a kernel feature to check the integrity of boot image. Flashing the zip file mentioned in Instruction section, allows user to also enable or disable disk quota, that grants the system to get storage statistics faster and it should even improve system stability, necessarily it don’t have to be disabled.
Instructions
- Download and copy to Android Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip
- Reboot Android into recovery mode using adb command:
adb reboot recovery
- Got to Wipe and tap on
Format data
, write “yes” as confirmation. - Reboot to recovery
- From TWRP install Magisk (
Magisk-v23.0.zip
) again - From TWRP install
Disable_Dm-Verity_ForceEncrypt_11.02.2020.zip
- Reboot to system
- Setup device (don’t enable any lock screen security)
- Open and setup Magisk app (update & install)
Install NetHunter
Everything is now ready for NetHunter to be installed. We will proceed with flashing custom kernel separately, then NetHunter image and once again, we need to flash Magisk and dm-verity.
Instructions
- Enable USB debugging
- Download and copy to Android: kernel-nethunter-2021.3-oneplus7-oos-ten.zip, and latest version of NetHunter image for OnePlus 7 / 7 Pro / 7T / 7T Pro (Ten)
- Reboot Android into recovery mode using adb command:
adb reboot recovery
- Install kernel (
kernel-nethunter-2021.3-oneplus7-oos-ten.zip
) - Install NetHunter image (in my case
nethunter-2022.4-oneplus7-oos-ten-kalifs-full.zip
)- If installation ends with error, “Not enough free space in your /system to continue!“, as you can see in Figure 3, then you have to resize /system partition.
- Fix it by going to
Wipe
->Advanced wipe
-> select/system
->Repair or Change File System
->Resize File System
- Repeat step 5)
- Install Magisk
- Install dm-verify
- Reboot to system
- Open NetHunter app and update via NetHunter App Store (not necessary)
- Start chroot in NetHunter
- Restart device
- Disable system updates:
su -c pm disable com.oneplus.opbackup
- In
NetHunter Terminal
app, launch upgrade and update command:sudo apt update && sudo apt full-upgrade -y
Congratulation! If you carefully followed all the steps, you should have Kali NetHunter successfully installed on your OnePlus 7 device.
Conclusion
Installing Kali NetHunter on a OnePlus 7 device opens up a world of possibilities for mobile penetration testing and ethical hacking. By following the step-by-step instructions outlined in this blog post, you can unleash the power of Kali Linux on your OnePlus 7, turning it into a powerful tool for assessing the security of networks and systems.
We discussed the prerequisites, such as unlocking the bootloader and enabling USB debugging, and explained how to flash the NetHunter image onto the device using TWRP recovery. We also highlighted the importance of taking backups and ensuring compatibility with the specific OnePlus 7 model.
Once you have successfully installed Kali NetHunter, you gain access to a wide range of powerful tools and capabilities tailored for mobile penetration testing. You can perform network scans, exploit vulnerabilities, and analyze traffic, all from the convenience of your OnePlus 7 device.
MI mobile how can pattern lock remove and no remove my personal data how can possible
Can I use guacamoleb_14_P.32_210127.zip on a Oneplus 7 (Not pro) (GM1900) ?
Yes, you can. I have a Oneplus 7 and it works. I’ve used the Nethunter image (nethunter-2022.2-oneplus7-oos-ten-kalifs-full.zip) from this page: https://linuxtracker.org/index.php?page=torrent-details&id=1e84f666c28d4cbe3322389b2bde57abae1cc2e3
Note: After install kernel and Nethunter image don’t reinstall Magisk again and leave Magisk version 23.3 (Before install kernel and nethunter image take care of Don’t update Magisk to latest version, just install needed package asked automatically when you open Magisk app). I don’t know if after it is needed to reinstall dm-verify, for me works without reinstall it so after install nethunter image, just reboot to system and follow with:
9) You can try to follow this step (update nethunter app from nethunter store). I didn’t do it.
10)Start chroot in NetHunter
11)Restart device
12)Disable system updates: su -c pm disable com.oneplus.opbackup
13)In NetHunter Terminal app, launch upgrade and update command: sudo apt update && sudo apt full-upgrade -y
I’ve followed that sequence because I’ve found Magisk crash not granting super user permissions but by this noted way seems to work fine. Now I will give a shot to the features to test what really work and not.
I have onplus7 pro and i got “Device Image Mismatch Error” in MSM Download Tool … Any advice?
Howcome you didn’t use OxygenOS 11 instead of 10 since it’s newer? You wrote that it works with 11?
these files are not for OnePlus 7 Pro…these are guacamoleb files these files are not for OnePlus 7 Pro…these are guacamoleb files these files are not for OnePlus 7 Pro…these are guacamoleb files
Hello
nethunter libnfc seems not recognize nfc capabilities of oneplus 7 pro. Is this normal?
Can install kali on other android phone such as rog phone 2, samsung or huawei, oppo.?
I have managed to install Kali NetHunter on Oneplus 7 Pro Version 11. My question is this…Does Kali NetHunter running on OnePlus 7 have more capabilities on Version 10 than on Version 11? Because I read somewhere on the Kali.org website that the Kernel for Onplus 7 Pro Version 10 has (RTL8188EUS) and (Internal Bluetooth). Where as the Kernel for Version 11 does not have it included. Is it essential or needed for Kali NetHunter to have these 2 capabilities to run efficiently? And what exactly does RTL8188EUS do?
Hello.
Can you please provide instructions how to install nethunter on Oneplus7 Pro Version 11?
You can find this in youtube “David Bombal, Kali Linux on rooted Android”
Does the device re encrypt after all this? that would be one of my biggest worries.
hey i need the image the nethunter image you have i can not find it anywhere. i have spent hour after hour looking is there anyway you could email it to me or i donno set up a mega link or something where you could share it please
Following exactly/ this worked on my OnePlus 7, but not any of my OnePlus 7 Pro (s). OnePlus 7 Pro Msmdownloadtool : Device not match image.
Maybe you are running a different version of msmdownloadtool (if flashing different version as OOS 10 in the image), but the functionality is the same.