Comments (12)
Not really, just try unplugging and replugging the cables. Maybe also try rebooting the devices.
from android-pin-bruteforce.
So just drop it and move on in life I guess :D
from android-pin-bruteforce.
@ante1377 you could help me improve the troubleshooting section of the README. Perhaps while you do this, you will find the solution for your phone.
I think it would be useful to have a series of questions with yes/no answers. Can you do a trial run of answering these questions, and help me edit this to make it clear for other people?
I noted in the diag output that it looks like your NetHunter phone sent the enter key correctly at first, but failed on a later attempt. Maybe the keys are sent too quickly or the cables are faulty?
Answer Section
My phones
- The make and model of my NetHunter Android phone :
- The make and model of my locked Android phone :
Can I send any keys
- Are your cables correctly connected?
- Is your NetHunter Android phone capable of emulating a keyboard?
- Does your OTG cable work?
- Does the script correctly send keys to a text editor in Windows/Linux/MacOS?
- Can you send keys to Windows/Linux/Macos from the command line?
- Can you send keys to the locked phone from the command line?
- Does the phone accept keyboard input when it is locked?
- Did you try a different locked phone?
Sending the correct keys
- What keys will bring up the PIN prompt?
- What keys should be sent after the PIN is entered?
Troubleshooting
-
Did you try rebooting both phones?
-
Did you try unplugging and replugging the cables?
-
Did you try new cables including the OTG cable?
-
The output of the diag command
<paste output here
Troubleshooting Instructions Section
Can I send any keys?
Are your cables correctly connected?
The Nethunter phone should have a regular USB cable attached.
The OTG cable should be connected to the locked Android phone.
Refer to the graphic in the README on how to connect the phones.
Is your NetHunter Android phone capable of emulating a keyboard?
- Check that the
/dev/hidg0
device is present - Check that the
/system/xbin/hid-keyboard
binary is present
The diag command will check that these files are present.
bash ./android-pin-bruteforce diag
If these files are present but the script doesn't work, try using another Android app to emulate a keyboard such as https://store.nethunter.com/en/packages/remote.hid.keyboard.client/
Does your OTG cable work?
Connect a keyboard or mouse to any phone using the OTG cable. Confirm that the cable works with a different phone and any device.
Try using a different OTG cable. Even if it works, perhaps it does not fit well with your locked phone.
Does the script correctly send keys to a text editor in Windows/Linux/MacOS?
- Connect your NetHunter phone to your laptop.
- Open a text editor such as Notepad
- Run the script
- Confirm that keys are sent to your laptop
Can you send keys to Windows/Linux/Macos from the command line?
Try testing sending keys from the NetHunter command line.
echo "enter" | /system/xbin/hid-keyboard /dev/hidg0 keyboard
echo "a b c" | /system/xbin/hid-keyboard /dev/hidg0 keyboard
Can you send keys to the locked phone from the command line?
Same as above.
Does the phone accept keyboard input when it is locked?
Connect a USB keyboard through the OTG cable to the locked phone. This technique requires emulating a keyboard, so if the phone does not accept USB keyboard input while it is locked, this attack will not work.
Note that some devices will not permit you to use a new or unknown USB device while it is locked.
Did you try a different locked phone?
Same as above but with a different locked phone.
Sending the correct keys
What keys will bring up the PIN prompt?
Using a keyboard, try keys and combinations of keys including:
- CTRL + ESCAPE
- ESCAPE
- SPACE
What keys should be sent after the PIN is entered?
Usually this is enter
but you might need to send other keys.
Troubleshooting
- Reboot the phones.
- Unplug and replug the cables.
- Try new cables including the OTG cable
- Paste the output of the diag command,
bash ./android-pin-bruteforce diag
from android-pin-bruteforce.
I would love to help you write a good troubleshooting guide. While reading through this guide I found something to have at the top of the troubleshooting!
_Does the phone accept keyboard input when it is locked?
Connect a USB keyboard through the OTG cable to the locked phone. This technique requires emulating a keyboard, so if the phone does not accept USB keyboard input while it is locked, this attack will not work.
Note that some devices will not permit you to use a new or unknown USB device while it is locked._
I saw that this above and it should be the very first to try on the locked phone since it brings you to a dead stop if it's not working. I tried above on both trial phones *HTC and neither of these accept the USB keyboard, the first is running a CM kernel and opens up a navigation app, the other HTC that has a O2 provider image actually hangs and reboots once you unplug the keyboard, does not take any input at all though. Verified the cabling and keyboard with the nethunter phone (Nexus 5) and a android tablet (Lenovo TB-8504X). So I guess I'm out of luck with this. The application works fine with the Nexus 5 and the Tablet.
from android-pin-bruteforce.
What are the exact make and model of the phones that won't accept input from a keyboard? I will add that information to the wiki https://github.com/urbanadventurer/Android-PIN-Bruteforce/wiki/Phone-Database
from android-pin-bruteforce.
What are the exact make and model of the phones that won't accept input from a keyboard? I will add that information to the wiki https://github.com/urbanadventurer/Android-PIN-Bruteforce/wiki/Phone-Database
That link is empty, just got another OTG cable and low and behold this one seems to work. Not that the buttons in the script seem to be suitable but I am able to use the keyboard now and if I manually open the "enter pin" it does put pins in there :) just need to figure out the key-combo now.
from android-pin-bruteforce.
@ante1377 that's great news. So you just needed a new OTG cable!
from android-pin-bruteforce.
@ante1377 that's great news. So you just needed a new OTG cable!
Any ideas how to setup a new keyset? Can't see how to "swipe up" somehow. Also not sure why the other cables worked with other phones but not with the HTC One X. Would probably need someone else with a HTC One X to confirm properly in case there is a pin issue on the actual phone itself.
from android-pin-bruteforce.
If swiping up with keyboard input is not possible then we will need to look at options to emulate mouse input.
Have you tried combinations of keys with CTRL, ALT, SHIFT, etc?
from android-pin-bruteforce.
If swiping up with keyboard input is not possible then we will need to look at options to emulate mouse input.
Have you tried combinations of keys with CTRL, ALT, SHIFT, etc?
Have not been able to find any other way then using the mouse left click and drag it north!
from android-pin-bruteforce.
Hi @ante1377 Mouse emulation is on the roadmap.
from android-pin-bruteforce.
pulled the latest android-pin-bruteforce v.02 and it seems to have done something so now the keys get sent and its also working with an edit of my htc.config file. :)
HTC ONE X
from android-pin-bruteforce.
Related Issues (20)
- does it work in termux HOT 3
- 10,000 pins were successfully tried and the correct pin was not found. HOT 6
- HID device (/dev/hidg0) not found HOT 2
- HID USB device Not Ready HOT 2
- [FAIL] hid-keyboard executable (/system/xbin/hid-keyboard) not found. Hint: You can configure an alternative location for this file with the HID_KEYBOARD variable in the config file.Locked phone: XXX, Nethunter phone: XXX - Bug description HOT 2
- Locked phone: XXX, Nethunter phone: Xioami Redme 9 - hid usb not able HOT 3
- Hid device HOT 1
- Tablet support? HOT 1
- does it work on cubot kingkong3? HOT 1
- Locked phone: XXX, Nethunter phone: XXX - Bug description HOT 5
- [FAIL] HID device (/dev/hidg0) not found HOT 10
- Locked phone: POCO F3, Nethunter phone: Sony Xperia Z1 - Sending custom return buttons HOT 6
- Stop BF when it finds correct PIN? HOT 1
- hid-keyboard: cannot execute: required file not found. HOT 2
- Problems with nethunter rootless HOT 1
- Too many attempts timer HOT 5
- Help HOT 1
- Locked phone: XXX, Nethunter phone: XXX - Bug description HOT 1
- How to get it running on Kali on a Laptop via USB-C
- Tshs phone brutefukrce HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-pin-bruteforce.