Skip to content
This repository has been archived by the owner on Apr 25, 2019. It is now read-only.

See how I run nethunter on oneplus6 and 6T and run the latest pie OOS BETA system. #1245

Open
johanlike opened this issue Jan 15, 2019 · 31 comments

Comments

@johanlike
Copy link

my kernel is 4.9X how to patch HID????

@simonpunk
Copy link

@johanlike
Try this, https://drive.google.com/file/d/1z-3p1DEkKykqb_wYzYqnXPdmh9ArRTOw/view?usp=drivesdk
but I dont have a device to test. If you manage to build the kernel with my patch, please do let me know, thanks.

@johanlike
Copy link
Author

@simonpunk Hello simonpunk, thank you very much for replying to my question. I have been following you on both the XDA forum and github. If the patch is used like this (patch -p1 OP6.hid.patch), unfortunately, this patch cannot be successfully injected. Now I only have the OP6T phone, but the OP6 and OP6T use the same kernel, but the Qualcomm 845 processor. There is no /drivers/usb/gadget/android.c file in the project that builds the kernel. Here is the link to the project I used to build the kernel:
https://github.com/OnePlusOSS/android_kernel_oneplus_sdm845
https://gitlab.com/HolyAngel/op6/tree/oos/drivers/usb/gadget
The following is a screenshot of the injection (it stuck for a very long time at the time of injection):

1
Thank you again for helping me, thank you very much.

@johanlike
Copy link
Author

@simonpunk I have now fixed the support for the external OTG wireless card and hackrf one, rtl-sdr, and it works fine. It would be great if you were fixing the HID feature. Please contact me if there is anything that can help you. thank you for your help.

@simonpunk
Copy link

@johanlike shouldn't it be "patch -p1 < OP6.hid.patch" ?? I'd like to know how you managed to build a working kerne, please do let me know how, thanks.

@johanlike
Copy link
Author

Oh no, I forgot this symbol, thank you for reminding me that I am passing the Chinese New Year is equivalent to American Christmas. I wish you all the best here, a rich night.Wishing you health and happiness in the year to come @simonpunk

@johanlike
Copy link
Author

@simonpunk The patch can now be injected normally. Later I will try to build a new kernel. I will tell you if the kernel is available. If it is available, I will share it with you. Thank you again for your help. thank you very much.

@simonpunk
Copy link

@johanlike Your're welcome, and Happy Chinese New Year too. Just ping me later. :)

@kimocoder
Copy link
Contributor

kimocoder is watching.. I also have the flar2 kernel ready for testing soon.
OnePlus 6 support would be awesome!

@WEIWULUNLUN
Copy link

@kimocoder @simonpunk @johanlike新年快乐

@johanlike
Copy link
Author

@simonpunk Hello simonpunk I have compiled the HID kernel today, but when I started HID with the nethunter-app you posted on github, it gave me a hint like this:

123456
What is the cause of this? ? I have already opened the HID function option in the kernel. Why is this prompt still appearing, or the patch is not working, or am I having problems during the compilation process? If you see it, please reply me. Thank you for your help and wish you a happy life.

@johanlike
Copy link
Author

@simonpunk Hello simonpunk If I open the HID attack with kali's official nethunter app, /dev/hidg0 has this file in this location, even if I give 666 permission, it will not work properly, but if you open the HID attack with the nethunter compiled on github, there is no Hidg* this file, what is the reason for this? Thank you again for helping me, I wish you good luck every day.

@simonpunk
Copy link

simonpunk commented Feb 5, 2019

@johanlike sorry for late reply. And sorry I forgot to mention that you have to define a service for hid function first. If you dont have my init.nethunter.rc installed in android root folder, it wont activate the function. You can downlod my OP5 kernel zip in my google drive and extract that rc file, you will see how it works.

But there is still a way to achieve this. If you are using my nethunter-app, in the USB Army fragment, you can run the switch_on_HID.sh script in the script runner section, it should be able to bring up the HID function as well as the /dev/hidg0-1, then you can test it again in the app and be reminded that chroot is required. The script may be depreciated though as I havent tested it for a long time.

Or if you can send me a copy of your kernel zip, i can try to patch another one for you to test.

@johanlike
Copy link
Author

@simonpunk Hello, you can reply to me, I am already very happy, and you have provided me with help, I don't mind waiting for the length of time. Because I am in China, you are in a distant country, because of the geographical location, we may not have the same time and life. Here is a screenshot of my running switch_on_HID.sh:
666
888
Even though I installed the init.nethunter.rc file to the Android root directory, it didn't work. Here is my screenshot:
999
777
I am very grateful that you can help, I am happy to share my zip copy and compile the configuration file. Here is my file compression package:
https://drive.google.com/file/d/1AWtVr-DZ_hBgzFjVJVPkfYrlBcML5vKc/view
Here is the link to the project I used to build the kernel:
https://gitlab.com/HolyAngel/op6
Please contact me if you have any questions, I will try my best to help. Thank you again for your help. Thank you。

@simonpunk
Copy link

simonpunk commented Feb 6, 2019

@johanlike Do you have telegram? I think it's better to talk in telegram as there are few things I want to explain to you and see if you did it in a wrong way. You can find my telegram id from my signature of my XDA thread. Thanks.

Edit: I have patched your kernel zip, here it is, hope it works. op6_kernel_zip

@johanlike
Copy link
Author

@simonpunk hello simonpunk,I think so too. I just finished watching the movie. Now we are late at night. Please wait for me to add your telegram immediately.

@netnetnetnetnet
Copy link

netnetnetnetnet commented Feb 6, 2019

@johanlike 啥是hid ,nethunter支持6t吗?。新年快乐

@johanlike
Copy link
Author

@simonpunk Hello simonpunk 。I have seen your latest kernel, and I will test it right away. It's a pity that I added your telegram and can't send you a message because the national telegram does not allow people in my country to send messages overseas. I will try to appeal to the telegraph official. thank you for your help.

@johanlike
Copy link
Author

@netnetnetnetnet 简单来讲就是硬件攻击,新年快乐。

@johanlike
Copy link
Author

@netnetnetnetnet https://t.me/nethunter666 电报链接。

@WEIWULUNLUN
Copy link

@johanlike完整的内核只有14M嘛?我想在我的op6上测试你的内核。

@johanlike
Copy link
Author

@WEIWULUNLUN 上面有simonpunk的修改后的版本,那是我的V2版本他修改后算是V3了,今天凌晨我和他一直在探讨怎么修补。在他的帮助下能成功调出HID并在我的kali linux 电脑leafpad上面输出数据,可是应用程序有点BUG还需要完善。人很好,而且非常耐心的帮助我修补和测试,真是十分感激他。再次感谢 @simonpunk Thank you again for your help. Thank you。

@acai66
Copy link

acai66 commented Feb 7, 2019

Have you compiled the kernel to add USB WiFi support? I'm using oneplus 6 and looking forward to your great jobs.

@johanlike
Copy link
Author

@acai66 Yes, I have completed WIFI and SDR support and are now completing the final HID fix. If you can't wait, you can use the kernel above.

@johanlike johanlike changed the title how to patch oneplus 6 or 6t HID kernel?? See how I run nethunter on oneplus6 and 6T and allow the latest pie OOS BETA system. Feb 7, 2019
@johanlike johanlike changed the title See how I run nethunter on oneplus6 and 6T and allow the latest pie OOS BETA system. See how I run nethunter on oneplus6 and 6T and run the latest pie OOS BETA system. Feb 7, 2019
@kimocoder
Copy link
Contributor

Any progress here? I'll be happy to try the kernel 🙂

@johanlike
Copy link
Author

Yes, I have fixed the HID function and the nethunter app. It is expected to be released to XDA and github two days later. The demo video can be viewed at https://t.me/nethunter666 @simonpunk @kimocoder @WEIWULUNLUN @netnetnetnetnet @acai66 Thank you again for your help. Thank you@simonpunk

@flhang
Copy link

flhang commented Feb 18, 2019

@johanlike 这个可以完美使用了么, 可以的话, 我去买个oneplus6t 。

@johanlike
Copy link
Author

@flhang 已经可以完美使用具体可以看我的主页,我会不定期更新.

@flhang
Copy link

flhang commented Feb 23, 2019

@johanlike 我晕, 我刚买了一个, 你就把github给删了?

@johanlike
Copy link
Author

@flhang 我也不想删,但是有些人叽叽歪歪的说着说那。我辛辛苦苦编译免费开放给他们用,没得句谢谢感激之类的好话,还要倒打一钯,你说这让我怎么能释怀,项目我已经停止更新,如果你需要下载可以到我提交历史哪里点进去下载,或者到别人分支下载。

@flhang
Copy link

flhang commented Feb 23, 2019

@johanlike 多好的项目啊。。。,删了可惜了。 哪个分支可以下载, 我记得还有一大堆操作说明,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants