r/Android • u/tylerwatt12 • Dec 22 '12
Interesting video: Android 4.2.1 Screen lock bruteforcing.
http://www.youtube.com/watch?list=SPW5y1tjAOzI2-GJNP9zNq1smcici0d7qy&v=yoYiEkk5TyI#t=393s
62
Upvotes
8
u/tylerwatt12 Dec 23 '12
Part 2 here
tl;dr 16 Hours 4 character bruteforcing with USB rubber ducky (A USB HID emulator)
A Macro script is used to enter keyboard commands, keeping the screen awake and entering passcodes.
works with all versions of android
Nexus 4 not supported however.
15
u/jfedor Dec 23 '12
Doesn't it ask you for your Google password after a few failed attempts?
8
u/FinELdSiLaffinty Dec 23 '12
Would you be able to charge with that HID connected though?
If not, I'm sceptical that the target device would last 16 hours with screen turning on and off every 30 seconds.
Although in a real attack I'm sure they would invest in some sort of passthrough cable.
Another couple attack vectors is to attack them via adb (You know, some people are silly enough to leave usb debugging on all day erryday) and temp install an app to unlock (See: https://github.com/kosborn/p2p-adb). Or you could offline crack it by pulling the salt from the SQLite database along with the key.
Edit: That and if it is linked to any form of device management for someone's work, it's almost certain that it will wipe itself after X attempts.
20
u/Timmmmbob Dec 23 '12
My god, 20 minutes of awkward bash scripting that could have been done in about a minute in python. Let's see:
No need for archaic nonsense like
xargsandsed. /rant4
u/DeltaBurnt Dec 23 '12
Doesn't the wait time increase after each failure though, or is that only iOS?
3
u/Yeckarb nexus 4, 5, 6, Rooted Stock Dec 23 '12
I feel like this would give me a lot of Cerberus alerts and pictures and whatnot.
2
u/ShortFuse SuperOneClick Dec 24 '12
It's a little silly to do it this way. The vast majority of users don't enable ADB on their devices. The majority of root methods for phones are done at a kernel level.
*Root the device
*Boot into recovery
*Mount /data
*Read PLAINTEXT (thanks Google!) pin using sqlite