Path: blob/master/modules/auxiliary/client/mms/send_mms.rb
19670 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Auxiliary::Mms78def initialize(info = {})9super(10update_info(11info,12'Name' => 'MMS Client',13'Description' => %q{14This module sends an MMS message to multiple phones of the same carrier.15You can use it to send a malicious attachment to phones.16},17'Author' => [ 'sinn3r' ],18'License' => MSF_LICENSE,19'Notes' => {20'Stability' => [CRASH_SAFE],21'SideEffects' => [],22'Reliability' => []23}24)25)26end2728def run29phone_numbers = datastore['CELLNUMBERS'].split30print_status("Sending mms message to #{phone_numbers.length} number(s)...")31send_mms(phone_numbers, datastore['MMSSUBJECT'], datastore['TEXTMESSAGE'], datastore['MMSFILE'], datastore['MMSFILECTYPE'])32print_status('Done.')33rescue Rex::Proto::Mms::Exception => e34print_error(e.message)35end36end373839