Android Settings Remove Device Locks (4.0-4.3)
This module exploits a bug in the Android 4.0 to 4.3 com.android.settings.ChooseLockGeneric class. Any unprivileged app can exploit this vulnerability to remove the lockscreen. A logic flaw / design error exists in the settings application that allows an Intent from any application to clear the screen lock. The user may see that the Settings application has crashed, and the phone can then be unlocked by a swipe. This vulnerability was patched in Android 4.4.
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use post/android/manage/remove_lock msf post(remove_lock) > sessions ...sessions... msf post(remove_lock) > set SESSION <session-id> msf post(remove_lock) > show options ...show and set options... msf post(remove_lock) > run