View Full Version : OnePlus 5 - Nethunter
Hello everyone!
I want to port the Kali Nethunter rom to the OnePlus 5.
Because it is my first time i need some people who can port it together with me.
Offensive Security has a nice tutorial on their website but its getting complicated when i come to the modify kernel part. :confused:
I really need some help with that.
If you got some tips or advice on how to do it let me know!
Greetings,
Stefjoe
raavan666
2017-08-14, 10:18
Hello everyone!
I want to port the Kali Nethunter rom to the OnePlus 5.
Because it is my first time i need some people who can port it together with me.
Offensive Security has a nice tutorial on their website but its getting complicated when i come to the modify kernel part. :confused:
I really need some help with that.
If you got some tips or advice on how to do it let me know!
Greetings,
Stefjoe
I found a way to "port" but not the entire kernel.
I managed to create chroot and can run Kali shell after one failed trail.
IMPORTANT : It went into bootloop(only boots into twrp) once while trying to remount /system as rw. But then I figured out SElinux must be disabled. You know what to do if it goes into a bootloop, but just take a backup (nandroid backup didn't work for me)
And I also lost all of my data after I flashed stock recovery.
Everything seems to be working fine. But there is a problem with the Nethunter 3.0.
The
apt-get does not work.
However, I pinged google.com and I get replies.
So, we need to install metapackages manually. At least for now.
What I did :
1. Download OnePlus One nethunter 3.0 ROM
2. Locate the apks (<nethunter_extracted>/data/app)
3. Install in this order :
• Nhterminal
• VNC
• Nethunter app
4. Open the Nethunter app and install the chroot
( I selected full chroot, however, you may choose minimal chroot too instead )
5. From any root explorer, we need to copy the files that are under /data/data/com.offsec.nethunter/files/scripts/*
to
/system/bin
(If you don't find the .../files/scripts, open Nethunter app and try again)
6. After copying the files to /system/bin,
There are three important files :
•bootkali
•bootkali_bash
•bootkali_login
We need to symlink these ↑
Important : we need to make the /system writable first.
Run from AndroidSU shell:
#setenforce 0
#mount -o rw,remount /system
*[Edit]*
Before linking, you may need to delete the existing bootkali, bootkali_bash and bootkali_login from /system/bin/ first.
OnePlus5:/system/bin# unlink bootkali bootkali_bash bootkali_login
Then, linking :
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali /system/bin/bootkali
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali_bash /system/bin/bootkali_bash
ln -s /data/data/com.offsec.nethunter/files/scripts/bootkali_login /system/bin/bootkali_login
You can remount /system to read-only if you wish to.
7. Next, install BusyBox to /system/bin
Usually, it is installed to /su/xbin.
But we need to install to /system/bin too.
This step is necessary.
8. Now, the Kali shell works fine.
Try running
#bootkali in AndroidSU shell and you should be in the Kali shell
You can also open Nhterminal app and select Kali.
9. You may install the other apks now.
Enjoy ~ !! :D
Sure, which ROM do you use?
raavan666
2017-08-20, 13:23
I used the stock Oxygen 4.5.8
But we need a stable kernel with all the USB drivers, HID, etc.
I've heard that it's complicated.
It would be very helpful if someone could port the Nethunter to base Oxygen 4.5.x ROM.
I will do that. But I don't have the device, so you'll have to test the kernel yourself. I do have experience with porting and am porting OPO and OPX variations of the kernels.
raavan666
2017-08-20, 18:19
Okay, I'll do that. But I have no idea about what can go wrong.
So assist me through the entire process and any warnings, softwares if I hard-bricked the device, etc.
There cannot be a hard-brick, only soft-brick (boot-loop) which can be solved easily but dirty-flashing the rom again. I will let you know when I'm finished.
raavan666
2017-08-20, 20:01
Roger that.
harshakutty
2017-10-17, 04:51
can u can sent me the link for kali nethunter oneplus 5 and supporting kernel plz ? please build the rom fully we waiting early