GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Sulk/Sulk.py at main · pablokbg/Sulk

Expand file tree

/

Sulk.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
108 lines (88 loc) · 3.48 KB
/

Sulk.py

Copy path

File metadata and controls

108 lines (88 loc) · 3.48 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Libraries
import requests
import os
from config import API_KEY
from config import file
# Colors
class colors:
HEADER = '\033[1;35m'
OKBLUE = '\033[94m'
OKCYAN = '\033[96m'
OKCYANL = '\033[1;36m'
OKGREEN = '\033[92m'
OKGREENL = '\033[1;32m'
OKREDL = '\033[1;31m'
WARNING = '\033[93m'
FAIL = '\033[91m'
ENDC = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
# Functions
def banner():
clear()
print(colors.OKBLUE + """
▄▄▄▄▄ ▄ █ █ █▀
█ ▀▄ █ █ █▄█
▄ ▀▀▀▀▄ █ █ █ █▀▄
▀▄▄▄▄▀ █ █ ███▄ █ █
█▄ ▄█ ▀ █
▀▀▀ ▀
""" + colors.ENDC)
print(colors.WARNING + "Sulk (SMS Bulk) - Bulk SMS using the textbelt API | " + colors.OKGREEN + "Author: " + colors.WARNING + "pablokbg | " + colors.OKGREEN + "Website: " + colors.WARNING + "https://pablokbg.com\n" + colors.ENDC)
def clear():
os.system("clear")
def error():
banner()
print("[" + colors.FAIL + "x" + colors.ENDC + "] Error, that answer was not expected.\n")
exit()
def main():
banner()
message = input("[" + colors.OKCYAN + ">" + colors.ENDC + "] Enter the message you want to send: ")
banner()
confirm = input("[" + colors.HEADER + "?" + colors.ENDC + "] Are you sure to send the message [y/n]: ")
if confirm in ['n', 'N', 'No', 'no', 'NO']:
banner()
confirm2 = input("[" + colors.HEADER + "?" + colors.ENDC + "] Do you want to leave Sulk [y/n]: ")
if confirm2 in ['n', 'N', 'No', 'no', 'NO']:
main()
elif confirm2 in ['y', 'Y', 'Yes', 'yes', 'YES']:
exit()
else:
error()
elif confirm in ['y', 'Y', 'Yes', 'yes', 'YES']:
banner()
script_dir = os.path.dirname(__file__)
path = os.path.join(script_dir, file)
with open(path) as f:
numbers = [x.strip() for x in f.readlines()]
true_count = 0
false_count = 0
for number in numbers:
payload = {
"phone": number,
"message": message,
"key": API_KEY
}
resp = requests.post(
'https://textbelt.com/text',
data = payload
)
if resp.json()['success']:
true_count += 1
else:
false_count += 1
print("[" + colors.OKCYAN + ">" + colors.ENDC + "] " + number + " ({})".format(colors.OKGREEN + 'Success' + colors.ENDC if resp.json()['success'] else colors.FAIL + 'Failed' + colors.ENDC))
print('\fTotal: {} ({}: {} | {}: {})'.format(len(numbers), colors.OKGREEN + 'Success' + colors.ENDC, true_count, colors.FAIL + 'Failed' + colors.ENDC, false_count))
quota = requests.get('https://textbelt.com/quota/'+ API_KEY)
quota = quota.json()['quotaRemaining']
quota = str(quota)
print('Remaining messages: {}\f'.format(colors.WARNING + quota + colors.ENDC))
else:
error()
if __name__ == '__main__':
try:
main()
except KeyboardInterrupt:
banner()
print("[" + colors.OKREDL + "x" + colors.ENDC + "] Leaving from Sulk ...\n")
exit()
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.