-
Notifications
You must be signed in to change notification settings - Fork 1
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
Automatically unlock devices (without passcode set) #107
Comments
On Android, this is straightforward, we can just imitate a lock button press via adb (https://stackoverflow.com/a/38032038): $ adb shell input keyevent 26 #Pressing the lock button |
On iOS, this is more tricky and took a bit of reverse engineering. In his MA thesis, @baltpeter used Other vectors, such as this stackoverflow answer were outdated and didn’t work anymore. But I found this promising scan of the And if I run this script in frida, I can simulate a home button press: var server = ObjC.classes.HNDAssistiveTouchServer.sharedInstance();
server._home() The frida process crashes after that, but before that, we get a simulated home button press. We can also do this from the lock screen to unlock the iPhone (if no passcode has been set). |
To find out whether the screen is unlocked, there are several methods on Android. However, I found that the most reliable method seems to look for |
When i tried to use the frida script in the REPL, it only worked if I ran the method after I used frida’s autocomplete feature. Without using it, I got a |
Finding out if an iOS device is locked is a bit harder. You need to listen to the |
Because our analysis starts apps, we need the screen to be unlocked. This should be done automatically, to ensure the device is ready.
The text was updated successfully, but these errors were encountered: