Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/auxiliary/client/mms/send_mms.rb
19664 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Auxiliary
7
include Msf::Auxiliary::Mms
8
9
def initialize(info = {})
10
super(
11
update_info(
12
info,
13
'Name' => 'MMS Client',
14
'Description' => %q{
15
This module sends an MMS message to multiple phones of the same carrier.
16
You can use it to send a malicious attachment to phones.
17
},
18
'Author' => [ 'sinn3r' ],
19
'License' => MSF_LICENSE,
20
'Notes' => {
21
'Stability' => [CRASH_SAFE],
22
'SideEffects' => [],
23
'Reliability' => []
24
}
25
)
26
)
27
end
28
29
def run
30
phone_numbers = datastore['CELLNUMBERS'].split
31
print_status("Sending mms message to #{phone_numbers.length} number(s)...")
32
send_mms(phone_numbers, datastore['MMSSUBJECT'], datastore['TEXTMESSAGE'], datastore['MMSFILE'], datastore['MMSFILECTYPE'])
33
print_status('Done.')
34
rescue Rex::Proto::Mms::Exception => e
35
print_error(e.message)
36
end
37
end
38
39