Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/auxiliary/client/sms/send_text.md
Views: 11788
Vulnerable Application
The auxiliary/client/sms/send_text
module allows you to send a malicious text/link to a collection of phone numbers of the same carrier.
In order to use this module, you must set up your own SMTP server to deliver messages. Popular mail services such as Gmail, Yahoo, Live should work fine.
Options
CELLNUMBERS
The 10-digit phone number (or numbers) you want to send the text to. If you wish to target against multiple phone numbers, ideally you want to create the list in a text file (one number per line), and then load the CELLNUMBERS option like this:
Remember that these phone numbers must be the same carrier.
SMSCARRIER
The carrier that the targeted numbers use. See Supported Carrier Gateways to learn more about supported carriers.
SMSSUBJECT
The text subject.
SMSMESSAGE
The text message you want to send. For example, this will send a text with a link to google:
The link should automatically be parsed on the phone and clickable.
SMTPADDRESS
The mail server address you wish to use to send the text messages.
SMTPPORT
The mail server port. By default, this is 25
.
SMTPUSERNAME
The username you use to log into the SMTP server.
SMTPPASSWORD
The password you use to log into the SMTP server.
SMTPFROM
The FROM field of SMTP. In some cases, it may be used as SMTPUSER
.
Supported Carrier Gateways
The module supports the following carriers:
AllTel
AT&T Wireless
Boost Mobile
Cricket Wireless
Google Fi
T-Mobile
Verizon
Virgin Mobile
Note: During development, we could not find a valid gateway for Sprint, therefore it is currently not supported.
Finding the Carrier for a Phone Number
Since you need to manually choose the carrier gateway for the phone numbers, you need to figure out how to identify the carrier of a phone number. There are many services that can do this, such as:
Note: If the phone is using Google Fi, then it may appear as a different carrier.
Gmail SMTP Example
Gmail is a popular mail server, so we will use this as a demonstration.
Assuming you are already using two-factor authentication, you need to create an application password.
After creating the application password, configure auxiliary/client/sms/send_text this way:
set cellnumbers [PHONE NUMBER]
set smscarrier [CHOOSE A SUPPORTED CARRIER]
set smsmessage "[TEXT MESSAGE]"
set smtpaddress smtp.gmail.com
set smtpport 587
set smtpusername [USERNAME FOR GMAIL]
(you don't need@gmail.com
at the end)set smtppassword [APPLICATION PASSWORD]
And you should be ready to go.
Yahoo SMTP Example
Yahoo is also a fairly popular mail server (although much slower to deliver comparing to Gmail), so we will demonstrate as well.
Before using the module, you must do this to your Yahoo account:
Sign in to Yahoo Mail.
Turn on Allow apps that use less secure sign in.
After configuring your Yahoo account, configure auxiliary/client/sms/send_text this way:
set cellnumbers [PHONE NUMBER]
set smscarrier [CHOOSE A SUPPORTED CARRIER]
set smsmessage "[TEXT MESSAGE]"
set smtpaddress smtp.mail.yahoo.com
set smtpport 25
set smtpusername [USERNAME FOR YAHOO]@yahoo.com
set smtppassword [YAHOO LOGIN PASSWORD]
And you're good to go.
Scenarios
After setting up your mail server and the module, your output should look similar to this: