offensive-security / kali-nethunter

The Kali NetHunter Project
https://github.com/offensive-security/kali-nethunter/wiki
3.48k stars 890 forks source link

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

Open johanlike opened 5 years ago

johanlike commented 5 years ago

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

simonpunk commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

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 commented 5 years ago

@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 commented 5 years ago

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

kimocoder commented 5 years ago

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

WEIWULUNLUN commented 5 years ago

@kimocoder @simonpunk @johanlike新年快乐

johanlike commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

@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 commented 5 years ago

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

johanlike commented 5 years ago

@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 commented 5 years ago

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

johanlike commented 5 years ago

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

WEIWULUNLUN commented 5 years ago

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

johanlike commented 5 years ago

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

acai66 commented 5 years ago

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

johanlike commented 5 years ago

@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.

kimocoder commented 5 years ago

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

johanlike commented 5 years ago

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

johanlike commented 5 years ago

@kimocoder @WEIWULUNLUN @netnetnetnetnet @acai66 https://github.com/johanlike/Oneplus6-or-6T-Nethunter-Kernel XDA:https://forum.xda-developers.com/oneplus-6t/themes/oneplus6-6t-nethunter-kernel-t3900105

flhang commented 5 years ago

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

johanlike commented 5 years ago

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

flhang commented 5 years ago

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

johanlike commented 5 years ago

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

flhang commented 5 years ago

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