Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phone just restarts,crash. Expecting request from tejado , hopes he is okay:) #52

Open
Tarif542 opened this issue Nov 30, 2024 · 1 comment

Comments

@Tarif542
Copy link

I used a Redmi 10 2022 (codename selene, MTK chipset) with a compiled NetHunter kernel (4.14) and a Wi-Fi adapter. Wi-Fi cracking is working fine, but it doesn’t fully meet my needs. So, I started working on HID attacks, but none of the methods I’ve tried have worked so far. Here’s a summary of my steps:

Steps I’ve Taken:
USB Gadget Tool Attempts:

used the USB Gadget tool in NetHunter. When I pressed the "+" button and selected "Keyboard & Mouse," my phone crashed every time.
I added the keyboard and mouse functions manually using the Gadget tool app and wrote a Ducky script. I launched the attack, first using Kali NetHunter and then Rucky. However, my computer didn’t detect the attack from my phone—it simply didn’t work.
I then flashed a clean Hydrogen kernel and repeated the same steps. Unfortunately, the result was the same.
Kernel HID Patching:

I applied a generic HID kernel patch for kernel 4.9 to my 4.14 kernel. The patching process was successful, and it created keyboard.hid and mouse.hid files in the gadget directory of the source code.
After compiling and flashing the kernel, the issue persisted. Whenever I pressed the "+" button in the USB Gadget tool app, my phone crashed. Adding any function caused a crash. Whether I opened the NetHunter terminal, selected HID, or used Rucky, my phone crashed every time
.

I kindly request guidance on what steps I should take next. Thank you!

(Note: Apologies for any errors—I'm not very fluent in English.)

@tejado
Copy link
Owner

tejado commented Dec 18, 2024

Hey hey,

yes - I'm very okay - thanks for asking.
So your device is crashing immediately on creating the gadget and not when you active it (as at that step, it is already creashed) ? Can you somehow get the kernel logs (under root) to see any messages in that period of time of the gadget add and creash?

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

No branches or pull requests

2 participants