-
Notifications
You must be signed in to change notification settings - Fork 0
/
smsspoof.py
59 lines (46 loc) · 1.91 KB
/
smsspoof.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import os
import requests
from colorama import Fore, Style, init
# Initialize colorama to support colored output on Windows
init(autoreset=True)
# Clear the screen
os.system('cls' if os.name == 'nt' else 'clear')
# Print the ASCII art in green color
print(Fore.GREEN + r"""
_____ __ __ _____ _____ _____ ____ ____ ______
/ ____|| \/ | / ____| / ____|| __ \ / __ \ / __ \ | ____|
| (___ | \ / || (___ | (___ | |__) || | | || | | || |__
\___ \ | |\/| | \___ \ \___ \ | ___/ | | | || | | || __|
____) || | | | ____) | ____) || | | |__| || |__| || |
|_____/ |_| |_||_____/ |_____/ |_| \____/ \____/ |_| """)
# Set the screen back to the default color
print(Style.RESET_ALL)
# Prompt the user to enter the API key
api_key = input("Enter API Key (press Enter for default 'textbelt'): ")
# Set a default value if no input is provided
api_key = api_key.strip() or 'textbelt'
# Prompt the user to enter the target phone number
target_phone_number = input("Enter Target Phone Number: ")
# Replace PH with the inputted phone number
phone_message = {
'phone': target_phone_number,
'message': '', # Placeholder for the message
'key': api_key,
}
# Prompt the user to enter the message
target_message = input("Enter Message: ")
phone_message['message'] = target_message # Replace MSG with the inputted text
# Print the entered values
print(f"Target Phone Number: {target_phone_number}")
print(f"Message: {target_message}")
print(f"API Key: {api_key}")
# Ask the user if the information is correct
confirmation = input("Phone Number, Message, and API Key correct? (y/n): ")
if confirmation.lower() == 'y':
# If the user confirms, make the API request
resp = requests.post('https://textbelt.com/text', data=phone_message)
# Print the API response
print(resp.json())
else:
# If the user does not confirm, exit the script
print("Stopping Script")