Android-PIN-Bruteforce icon indicating copy to clipboard operation
Android-PIN-Bruteforce copied to clipboard

Locked phone: Xiaomi MI9T Nethunter phone: OnePlus 6T - HID USB device not ready

Open Y-afes opened this issue 3 years ago • 16 comments

Xiaomi mi9t nethunter 2021.1 IMG_20210421_062302

[Fail] HID USB device not ready. /system/xbin/hid-keyboard returned 127

how can we solve the problem my friend

Y-afes avatar Apr 21 '21 03:04 Y-afes

Try unplugging and replugging the cables.

urbanadventurer avatar Apr 21 '21 03:04 urbanadventurer

Xiaomi mi9t nethunter 2021.1 IMG_20210421_062302

[Fail] HID USB device not ready. /system/xbin/hid-keyboard returned 127

how can we solve the problem my friend

same problem here.

tried to restart devices. unplug and replug cables. nothing helped. Running Kali Nethunter 2021 on a OnePlus 6T

rotatoria avatar Apr 24 '21 22:04 rotatoria

The problem disappeared when I changed the cable on the otg cable, but it does not enter the screen even though there is the correct pin in the list and it does not mark the correct pin. Is there a config file for nexus 5 and mi9t?

Y-afes avatar Apr 25 '21 06:04 Y-afes

I'm pleased to hear that it works with a new OTG cable. @Klavyeli let's try to make a config file for your Nexus 5 and Mi9T.

Can you try plugging a real keyboard into your phone to discover the correct key, or combination of keys to use. First, you need to find the keys that bring up the PIN prompt. This is defined in KEYS_BEFORE_EACH_PIN. Next, you need to find what key sends the PIN. It is usually enter and defined in KEYS_AFTER_EACH_PIN.

You can send keys during the cooldown period to dismiss popups and other messages. This is defined in KEYS_STAY_AWAKE_DURING_COOLDOWN.

After you have the right keys, you'll need to figure out the timing.

urbanadventurer avatar Apr 26 '21 00:04 urbanadventurer

Have similar problem with my Nexus 5 Nethunter 2021

[FAIL] HID USB device not ready. /system/xbin/hid-keyboard returned 5.

Tried reboot victim phone. Tried different OTG cable. Tried sending from Nexus 5 to Windows 10 CMD (working) Tried swapping from MTP to Charge and back in Dev options (no change) Any ideas where to dig?

Victim is a HTC One S also tried on another HTC. Waiting for my other OTG dongels to try it on a Oneplus 5T.

ante1377 avatar Apr 26 '21 14:04 ante1377

The problem disappeared when I changed the cable on the otg cable, but it does not enter the screen even though there is the correct pin in the list and it does not mark the correct pin. Is there a config file for nexus 5 and mi9t?

Have you tried the DuckHunter HID from within Nethunter?

ante1377 avatar Apr 26 '21 14:04 ante1377

@ante1377 did you try connecting a USB keyboard to the OTG cable?

urbanadventurer avatar Apr 26 '21 15:04 urbanadventurer

OTG cable?

Yes it works fine typing via a usb keyboard through the cable, think I only tried one of the three I bought to test with.

ante1377 avatar Apr 26 '21 15:04 ante1377

Tried all these three just now and they all work. IMG_20210426_175614

ante1377 avatar Apr 26 '21 15:04 ante1377

adb logcat over :5555 does not display anything of interest that I can see.

ante1377 avatar Apr 26 '21 16:04 ante1377

@ante1377 please open a new issue for your phone

urbanadventurer avatar Apr 27 '21 00:04 urbanadventurer

@urbanadventurer Dude, how do you use it to see the correct key combination and keys that bring up the PIN prompt?

Y-afes avatar Apr 29 '21 01:04 Y-afes

@Klavyeli to figure out the correct key combination you need to connect a real keyboard to the OTG cable and try different keys.

urbanadventurer avatar Apr 29 '21 02:04 urbanadventurer

@Klavyeli Did you have any success in discovering a keyboard sequence to bring up the PIN prompt? Did you try combining keys with CTRL, SHIFT, ALT, etc?

urbanadventurer avatar May 25 '21 02:05 urbanadventurer

I had same issue and I had success opening terminal with supersu permissions

bitShakeMX avatar Aug 27 '21 06:08 bitShakeMX

Here is the solution https://youtu.be/OoMctGTSQ-A

IamCOD3X avatar Jan 09 '23 01:01 IamCOD3X