Path: blob/master/modules/auxiliary/client/sms/send_text.rb
19500 views
##1# This module requires Metasploit: https://metasploit.com/download2# Current source: https://github.com/rapid7/metasploit-framework3##45class MetasploitModule < Msf::Auxiliary6include Msf::Auxiliary::Sms78def initialize(info = {})9super(10update_info(11info,12'Name' => 'SMS Client',13'Description' => %q{14This module sends a text message to multiple phones of the same carrier.15You can use it to send a malicious link to phones.1617Please note that you do not use this module to send a media file (attachment).18In order to send a media file, please use auxiliary/client/mms/send_mms instead.19},20'Author' => [ 'sinn3r' ],21'License' => MSF_LICENSE,22'Notes' => {23'Stability' => [CRASH_SAFE],24'SideEffects' => [],25'Reliability' => []26}27)28)29end3031def run32phone_numbers = datastore['CELLNUMBERS'].split33print_status("Sending text (#{datastore['SMSMESSAGE'].length} bytes) to #{phone_numbers.length} number(s)...")34send_text(phone_numbers, datastore['SMSSUBJECT'], datastore['SMSMESSAGE'])35print_status('Done.')36rescue Rex::Proto::Sms::Exception => e37print_error(e.message)38end39end404142