CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/auxiliary/client/mms/send_mms.rb
Views: 1904
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(update_info(info,
11
'Name' => 'MMS Client',
12
'Description' => %q{
13
This module sends an MMS message to multiple phones of the same carrier.
14
You can use it to send a malicious attachment to phones.
15
},
16
'Author' => [ 'sinn3r' ],
17
'License' => MSF_LICENSE
18
))
19
end
20
21
def run
22
phone_numbers = datastore['CELLNUMBERS'].split
23
print_status("Sending mms message to #{phone_numbers.length} number(s)...")
24
begin
25
res = send_mms(phone_numbers, datastore['MMSSUBJECT'], datastore['TEXTMESSAGE'], datastore['MMSFILE'], datastore['MMSFILECTYPE'])
26
print_status("Done.")
27
rescue Rex::Proto::Mms::Exception => e
28
print_error(e.message)
29
end
30
end
31
end
32
33