-
Notifications
You must be signed in to change notification settings - Fork 732
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
Locked phone: Nexus 5, Nethunter phone: Xiaomi Redmi Note 3 - hid-keyboard works, usb-devices detected, but its not cracking (even when correct pin in the list) #20
Comments
If you can't see PINs being entered then that is not normal behaviour. What config are you using, and have you tried the config files I made for the Motorola G4 and G5? If those config files do not work then you may need to experiment using a keyword to find out what keys must be pressed before entering a PIN, such as ESCAPE, ENTER, SPACE, CTRL-ESCAPE and so on. With that information you could make a new config file. |
attached config and config.default (please note that on phone I kept file names as config and config.default just for uploading here i renamed to .txt |
Ah got it. I will give a try. |
This variable might need to change By the way, you can use it like this.
|
Guess I am making progress now, When I tried config.motorola.moto-g4-plus I can see first PIN in the list being printed on locked phone and saw Wrong PIN . |
Any tips on how to make the README easier to understand would be helpful. Let me know how your journey goes. |
Sure. I am trying by connecting an actual keyboard and recording what keystrokes will get to the PIN screen. space + enter goes to PIN screen But after that, if I type another PIN it is not being inputted (even though I am on PIN screen), looks like the cursor went out some where. |
I connected a physical keyboard to my locked phone and , In short, I have to hit tab key 4 times after every incorrect PIN, how can I put this in to config? |
I have just added the space_enter key combination. You will need to download the latest version of the source code for this feature. The part of the config to change is this: Hopefully this works. Let me know how you go. If not, do any other keys other than space + enter work to bring up the PIN screen? I added this to this part of the script: function send_keys() {
prompt="$1"
delay="$2"
for key in $prompt; do
case $key in
"ctrl_escape")
send_key "left-ctrl escape"
;;
"ctrl-escape")
send_key "left-ctrl escape"
;;
"space_enter")
send_key "spacebar return"
;;
"space-enter")
send_key "spacebar return"
;;
|
I downloaded latest android-pin-bruteforce and added KEYS_BEFORE_EACH_PIN="space_enter tab tab tab tab" to config.motorola.moto-g4-plus . When I try, its not going to PIN screen any more. With KEYS_BEFORE_EACH_PIN="ctrl_escape enter" in config.motorola.moto-g4-plus and latest android-pin-bruteforce , at least its going to the PIN screen and input the first PIN in the list and try it. Its the next PIN onwards, its not able to input. I will find out if any key other than space + enter takes me to PIN screen. Note: The locked phone I am trying is Nexus 5 |
I set, And tried setting below to and its going PIN screen, but not selecting PIN field. And tried setting below to Now going to PIN screen and get selected and first PIN get inputted correctly. But after 1st PIN inputted, PIN field selection gone. I know that tab tab tab tab (4 times tab keys) will bring back the selection. But some how not able to make the script do that. |
Can you combine those? KEYS_BEFORE_EACH_PIN="ctrl_escape enter tab tab tab tab" Above you wrote : That is different to: |
I tried |
I have added |
That did not help either. I was thinking of sending keystrokes using hid-keyboard and get the working pattern. echo left-ctrl escape enter | hid-keyboard /dev/hidg0 keybaord also spacebar an allowed keystroke or is it space ? |
The following command should work in a shell script:
The /system/xbin/hid-keyboard will combine some keys, but combined keys can only be used in this script when an underscore joins them, for example with ctrl_escape. |
@simtcrom were you successful in making a config file for your Nexus 5? |
Try making a script like this for testing:
|
I got busy with work. |
Have you had a chance to look at this again? |
Sorry I could not. Busy at work place. |
|
To test if its working, I modified optimised-pin-length-4.txt to have only 9 in the list with one of them being my correct pin.
I have a working nethunter phone (redmi note 3) and working locked phone (nexus 5).
Connected otg cable to locked phone and normal micros usb cable to nethunter phone.
ran command bash ./android-pin-bruteforce crack
I can see nethunter phone tried one by one pins in optimised-pin-length-4.txt, it even tried the actual pin and went further. But locked phone did not unlock.
When observed locked phone's PIN screen , I do not see pins being entered there by nethunter phone is that normal behavior?
To test hid-keyboard actually works, I opened a notepad on locked phone and ran the command again on nethunter phone, I could see pins being printed there.
The text was updated successfully, but these errors were encountered: