mirror of
https://github.com/trustedsec/social-engineer-toolkit
synced 2025-03-03 06:47:31 +00:00
better handling and formatting through sms spoofing
This commit is contained in:
parent
9df90d28e9
commit
f64a7d8571
4 changed files with 34 additions and 25 deletions
|
@ -5,6 +5,11 @@ version 7.3
|
|||
* completely rewrote the SMS spoofing module from scratch to use spoofmytextmessage.com which the folks over there are super helpful and provided an undocumented API to be used within SET. This now works great and has been extensively tested.
|
||||
* sped up the load process when using the main menu system the loading would pull from github each time the show_banner() function was called - this only loads once per SET load now
|
||||
* fixed a string integer error from input to raw_input in the RDP DOS use after free in exploits
|
||||
* added libapache2-mod-php to setup.py - needed for credential harvester
|
||||
* added python-requests to setup.py - needed for sms spoofing
|
||||
* added better check for python-requests in sms spoofing
|
||||
* added better formating within sms spoofing
|
||||
* added error handling to sms spoofing if something goes wrong during auth process
|
||||
|
||||
~~~~~~~~~~~~~~~~
|
||||
version 7.2.3
|
||||
|
|
2
setup.py
2
setup.py
|
@ -37,7 +37,7 @@ if platform.system() == "Linux":
|
|||
|
||||
# force install of debian packages
|
||||
subprocess.Popen(
|
||||
"apt-get --force-yes -y install git apache2 libapache2-mod-php python-pymssql build-essential python-pexpect python-pefile python-crypto python-openssl", shell=True).wait()
|
||||
"apt-get --force-yes -y install git apache2 python-requests libapache2-mod-php python-pymssql build-essential python-pexpect python-pefile python-crypto python-openssl", shell=True).wait()
|
||||
|
||||
# If pacman.conf exists, we have a Arch based system
|
||||
elif os.path.isfile("/etc/pacman.conf"):
|
||||
|
|
Binary file not shown.
|
@ -1,28 +1,32 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
from src.core.setcore import *
|
||||
from src.sms.protectedapi import send_sms
|
||||
try:
|
||||
from src.core.setcore import *
|
||||
from src.sms.protectedapi import send_sms
|
||||
import requests
|
||||
|
||||
# to = raw_input(setprompt(["7"], "Enter the phone number to send to"))
|
||||
print("""\n ----- The Social-Engineer Toolkit (SET) SMS Spoofing Attack Vector -----\n""")
|
||||
print("This attack vector relies upon a third party service called www.spoofmytextmessage.com. This is a third party service outside of the control from the Social-Engineer Toolkit. The fine folks over at spoofmytextmessage.com have provided an undocumented API for us to use in order to allow SET to perform the SMS spoofing. You will need to visit https://www.spoofmytextmessage.com and sign up for an account. They example multiple payment methods such as PayPal, Bitcoin, and many more options. Once you purchase your plan that you want, you will need to remember your email address and password used for the account. SET will then handle the rest.\n")
|
||||
print("In order for this to work you must have an account over at spoofmytextmessage.com\n")
|
||||
print("Special thanks to Khalil @sehnaoui for testing out the service for me and finding spoofmytextmessage.com\n")
|
||||
print_error("DISCLAIMER: By submitting yes, you understand that you accept all terms and services from spoofmytextmessage.com and you are fully aware of your countries legal stance on SMS spoofing prior to performing any of these. By accepting yes you fully acknowledge these terms and will not use them for unlawful purposes.")
|
||||
message = raw_input("\nDo you accept these terms (yes or no): ")
|
||||
if message == "yes":
|
||||
print_status("Okay! Moving on - SET needs some information from you in order to spoof the message.")
|
||||
email = raw_input("Enter your email address for the spoofmytextmessage.com account: ")
|
||||
pw = raw_input("Enter your password for the spoofmytextmessage.com account: ")
|
||||
print_status("The next section requires a country code, this is the code you would use to dial to the specific country, for example if I was sending a message to 555-555-5555 to the United States (or from) you would enter +1 below.")
|
||||
tocountry = raw_input("Enter the country code for the number you are sending TO (for example U.S would be '+1')[1]: ")
|
||||
if tocountry == "": tocountry = "+1"
|
||||
fromcountry = raw_input("Enter the country code for the number you are sending FROM (for example U.S. would be '+1')[1]: ")
|
||||
if fromcountry == "": fromcountry = "+1"
|
||||
tonumber = raw_input("Enter the number to send the SMS TO - be sure to include country code (example: +15551234567): ")
|
||||
fromnumber = raw_input("Enter the number you want to come FROM - be sure to include country code (example: +15551234567): ")
|
||||
message = raw_input("Enter the message you want to send via the text message: ")
|
||||
send_sms(email, pw, tocountry, fromcountry, fromnumber, tonumber, message)
|
||||
print("""\n ----- The Social-Engineer Toolkit (SET) SMS Spoofing Attack Vector -----\n""")
|
||||
print("This attack vector relies upon a third party service called www.spoofmytextmessage.com. This is a third party service outside of the control from the Social-Engineer Toolkit. The fine folks over at spoofmytextmessage.com have provided an undocumented API for us to use in order to allow SET to perform the SMS spoofing. You will need to visit https://www.spoofmytextmessage.com and sign up for an account. They example multiple payment methods such as PayPal, Bitcoin, and many more options. Once you purchase your plan that you want, you will need to remember your email address and password used for the account. SET will then handle the rest.\n")
|
||||
print("In order for this to work you must have an account over at spoofmytextmessage.com\n")
|
||||
print("Special thanks to Khalil @sehnaoui for testing out the service for me and finding spoofmytextmessage.com\n")
|
||||
print_error("DISCLAIMER: By submitting yes, you understand that you accept all terms and services from spoofmytextmessage.com and you are fully aware of your countries legal stance on SMS spoofing prior to performing any of these. By accepting yes you fully acknowledge these terms and will not use them for unlawful purposes.")
|
||||
message = raw_input("\nDo you accept these terms (yes or no): ")
|
||||
if message == "yes":
|
||||
print_status("Okay! Moving on - SET needs some information from you in order to spoof the message.")
|
||||
email = raw_input(setprompt(["7"], "Enter your email address for the spoofmytextmessage.com account"))
|
||||
pw = raw_input(setprompt(["7"], "Enter your password for the spoofmytextmessage.com account"))
|
||||
print_status("The next section requires a country code, this is the code you would use to dial to the specific country, for example if I was sending a message to 555-555-5555 to the United States (or from) you would enter +1 below.")
|
||||
tocountry = raw_input(setprompt(["7"], "Enter the country code for the number you are sending TO (for example U.S would be '+1')[+1]"))
|
||||
if tocountry == "": tocountry = "+1"
|
||||
fromcountry = raw_input(setprompt(["7"], "Enter the country code for the number you are sending FROM (for example U.S. would be '+1')[+1]"))
|
||||
if fromcountry == "": fromcountry = "+1"
|
||||
tonumber = raw_input(setprompt(["7"], "Enter the number to send the SMS TO - be sure to include country code (example: +15551234567)"))
|
||||
fromnumber = raw_input(setprompt(["7"], "Enter the number you want to come FROM - be sure to include country code (example: +15551234567)"))
|
||||
message = raw_input(setprompt(["7"], "Enter the message you want to send via the text message"))
|
||||
send_sms(email, pw, tocountry, fromcountry, fromnumber, tonumber, message)
|
||||
|
||||
else:
|
||||
print_status("Okay! Exiting out of the Social-Engineer Toolkit SMS Spoofing Attack Vector...")
|
||||
else:
|
||||
print_status("Okay! Exiting out of the Social-Engineer Toolkit SMS Spoofing Attack Vector...")
|
||||
|
||||
except ImportError:
|
||||
print_error("Looks like you dont have python-requests installed. Please install (apt-get install python-requests) and try again.")
|
||||
|
|
Loading…
Add table
Reference in a new issue