urbanadventurer / Android-PIN-Bruteforce

Unlock an Android phone (or device) by bruteforcing the lockscreen PIN. Turn your Kali Nethunter phone into a bruteforce PIN cracker for Android devices! (no root, no adb)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Locked phone: ? NetHunter phone: Samsung S7. usb-devices script failed

Wahaj787 opened this issue · comments

Hi
I'v fully working nethunter on my samsung s7.
I've also two hid interference and both are working.
I can also send input to my pc....
But when I connect the cell phone with same cable. It shows me this error.
Dunno why usb-devices is returning nothing.
Here's the output:
_root@kali:~/Android-PIN-Bruteforce# bash
android-pin-bruteforce crack diag Android PIN brute-force ::
version 0.1 [INFO] # Diagnostic info [PASS] HID device
(/dev/hidg0) found crw-------. 1 root root 240, 0 Jun 23
04:23 /dev/hidg0 [PASS] hid-keyboard executable
(/system/xbin/hid-keyboard) found -rwxrw-r--. 1 root root
18256 Jan 10 2019 /system/xbin/hid-keyboard[PASS]
usb-devices executable (/usr/bin/usb-devices) found
-rwxr-xr-x. 1 root root 4169 Jan 26 20:04
/usr/bin/usb-devices[INFO] ## Executing Command:
/usr/bin/usb-devices [FAIL] usb-devices script failed.
Return code 1. [INFO] ## Finding Android Phone USB Device
[INFO] Expected result, no device found. [INFO] ## Sending
Enter Key recv report: 00 [PASS] Key was sent succeessfully.
[INFO] ## Executing Command: /system/bin/getprop |grep usb
getprop: property_list [INFO] ## Executing Command: dmesg |
grep -i usb | tail [23568.718793] usb: config_buf f->hid
[23568.718821] usb: set_interface_count next_interface_id=3
[23568.727952] android_usb gadget: high-speed config #1:
android [23568.728012] usb: set_config e Function FS
Gadget[0] [23568.728068] usb: set_config e hid[1]
[23568.728135] usb: set_config e hid[2] [23568.728190] usb:
SET_CON [23568.728217] usb: set_config_number single config
num=0 [23568.728322] usb: android_work
config=0000000000000000,connected=1,sw_connected=1
[23568.728559] usb: android_work sent uevent
USB_STATE=CONFIGURED [INFO] # Troubleshooting tips - Check
the NetHunter phone is succesfully emulating a keyboard by
connecting it to a computer with a regular charging/data USB
cable. Open a text editor like Notepad and you should see it
sending PINs. Note that you do not need an OTG cable for
this. - Check the Nethunter phone has a regular USB cable
attached, and the locked phone has an OTG adaptor attached.

  • Try using different cables/adaptors. You may have a faulty
    cable/adaptor. - Perform a hard reset of both phones by
    holding down the power button for 20 seconds. - Try this
    command: /system/bin/setprop sys.usb.config hid
    root@kali:~/Android-PIN-Bruteforce#
    _

From the output it looks like the script is successfully sending keys. The usb-devices command is only used to check whether your cables are connected the wrong way.

Does this problem still occur after rebooting, or plugging and unplugging the cables?

Are you using the config.samsung.s7 config file, for example ./android-pin-bruteforce -c ./config.samsung.s7 crack?

Do you see any PINs being entered into the phone?

What happens if you run /usr/bin/usb-devices in a terminal?

By the way, when you copy and paste output, it is easier to read if you use ``` before and after the text ```.

Hi
Problem is still the same.... Even after rebooting and changing cables
Yes I also tried ./android-pin-bruteforce -c ./config.samsung.s7 crack but still it's not sending keys.
And /usr/bin/usb-devices return nothing....
Also lsusb is showing nothing

OK.. what happens if you plug a USB keyboard into your Samsung S7?

Well I dont have a usb keyboard but usb mouse is working fine and wireless keyboard is also working

What is the make and model of your locked phone?

If you NetHunter is on your Samsung S7 then you do not need to use the config.samsung.s7 config file. The config file is for the locked phone.

I have the same problem with my S5.
It seems, that the folder /usr doesn't exist.