forked from AbdulRKB/Anonymous-SMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
spalk.py
77 lines (67 loc) · 2.2 KB
/
spalk.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from datetime import datetime
import numbers
import click
import requests
import os
import http.server
import socketserver
import socket
from webbrowser import open
def sendsms():
number = click.prompt('[+] Enter the number (Include country code e.g. +1): ')
message = click.prompt('\n[+] Enter the message: ')
URL = "https://textbelt.com/text"
DATA = {'phone': number, 'message': message, 'key': 'textbelt'}
response = requests.post(URL, DATA).json()
if response['success']:
click.secho("[+] Sent Message Successfully!", fg="green")
else:
click.secho("[-] There was an error!", fg="red")
return None
def share_files():
path = str(input('[+] Enter PATH to directory which you want to share (user . for current directory): '))
os.chdir(path)
ip = socket.gethostbyname(socket.gethostname())
Handler = http.server.SimpleHTTPRequestHandler
try:
print(f"Serving files at http://{ip}:5003")
with socketserver.TCPServer(("", 5003), Handler) as httpd:
click.secho('[+] Press CTRL+C to Exit', fg="red")
httpd.serve_forever()
except KeyboardInterrupt:
click.secho("[-] Thanks for using this tool.", fg="red")
exit(0)
def spoof_email():
URL = "http://cntreon.000webhostapp.com/email/"
open(URL)
click.secho('[+] Email Website Opened', dim=True)
def header():
h=f'''
_____ ____ ___ __ __ __
/ ___// __ \/ | / / / //_/
\__ \/ /_/ / /| | / / / ,<
___/ / ____/ ___ |/ /___/ /| |
/____/_/ /_/ |_/_____/_/ |_| [{datetime.now().date()}]
{'-'*32}
[1] Send SMS Anonymously
[2] Share Files (Same WiFi Network)
[3] Email Spoofer
[0] Exit
'''
click.secho(h, fg="green")
option = click.prompt('[+] Select an Option: ', type=int)
return option
def confirm_option(option):
match option:
case 0:
click.secho("[-] Thanks for using this tool.", fg="red")
exit(0)
case 1:
sendsms()
case 2:
share_files()
case 3:
spoof_email()
case _:
exit(0)
confirm_option(header())