-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHigh_Octane_Sendit_Spammer.py
179 lines (176 loc) · 9 KB
/
High_Octane_Sendit_Spammer.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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
import os, threading
import sys
import colorama, random
import requests, subprocess
import json, random, string, time
sent = 0
def clear():
os.system('cls')
colorama.init()
clear()
def header():
print(colorama.Fore.RED + '=============================================================================================================================================================')
header = r'''
__ ___ __ ____ __ _____ ___ __ _____
/ / / (_)___ _/ /_ / __ \_____/ /_____ _____ ___ / ___/___ ____ ____/ (_) /_ / ___/____ ____ _____ ___ ____ ___ ___ _____
/ /_/ / / __ `/ __ \ / / / / ___/ __/ __ `/ __ \/ _ \ \__ \/ _ \/ __ \/ __ / / __/ \__ \/ __ \/ __ `/ __ `__ \/ __ `__ \/ _ \/ ___/
/ __ / / /_/ / / / / / /_/ / /__/ /_/ /_/ / / / / __/ ___/ / __/ / / / /_/ / / /_ ___/ / /_/ / /_/ / / / / / / / / / / / __/ /
/_/ /_/_/\__, /_/ /_/ \____/\___/\__/\__,_/_/ /_/\___/ /____/\___/_/ /_/\__,_/_/\__/ /____/ .___/\__,_/_/ /_/ /_/_/ /_/ /_/\___/_/
/____/ /_/
'''
print(colorama.Fore.MAGENTA + header + '\n' + colorama.Fore.RED + '=============================================================================================================================================================')
header()
print(colorama.Fore.CYAN + 'Input enter to continue.')
def options():
_options = {'threaded' : False, 'fromfile' : False, 'random' : True}
while True:
if not _options['threaded']:
print(colorama.Fore.MAGENTA + f'[1] threaded ({colorama.Fore.RED + "O" + colorama.Fore.MAGENTA})\t\t\t', end='')
elif _options['threaded']:
print(colorama.Fore.MAGENTA + f'[1] threaded ({colorama.Fore.GREEN + "O" + colorama.Fore.MAGENTA})\t\t\t',end='')
if not _options['random']:
print(colorama.Fore.MAGENTA + f'[2] random sticker ({colorama.Fore.RED + "O" + colorama.Fore.MAGENTA})\t\t\t',end='')
elif _options['random']:
print(colorama.Fore.MAGENTA + f'[2] random sticker ({colorama.Fore.GREEN + "O" + colorama.Fore.MAGENTA})\t\t\t',end='')
if not _options['fromfile']:
print(colorama.Fore.MAGENTA + f'[3] from file ({colorama.Fore.RED + "O" + colorama.Fore.MAGENTA})')
if _options['fromfile']:
print(colorama.Fore.MAGENTA + f'[3] from file ({colorama.Fore.GREEN + "O" + colorama.Fore.MAGENTA})')
optionsinput = input('\n(?)>')
clear()
header()
print(colorama.Fore.CYAN + 'Input enter to continue.')
if optionsinput == '1':
if _options['threaded']:
_options['threaded'] = False
elif not _options['threaded']:
_options['threaded'] = True
if optionsinput == '2':
if _options['random']:
_options['random'] = False
elif not _options['random']:
_options['random'] = True
if optionsinput == '3':
if _options['fromfile']:
_options['fromfile'] = False
elif not _options['fromfile']:
_options['fromfile'] = True
if optionsinput == '':
return _options
if optionsinput.lower() == 'enter':
return _options
_options = options()
def getdata():
if _options['fromfile']:
if os.path.exists(r'.\idlist.csv'):
pass
else:
open(r'.\idlist.csv', 'x')
clear()
header()
message = input(colorama.Fore.CYAN + 'Input message: ' + colorama.Fore.GREEN)
print(colorama.Fore.RED + '\n=======================================\n')
if not _options['fromfile']:
recipient_identity = input(colorama.Fore.CYAN + 'Input recipient identity: ' + colorama.Fore.GREEN)
print(colorama.Fore.RED + '\n=======================================\n')
else:
data = open(r'.\idlist.csv').read()
data = data.splitlines()
for string in data:
if string == '':
data.remove('')
if len(data) == 0:
quit('please put at least 1 recipient identity in idlist.csv')
recipient_identity = data
if _options['threaded']:
thread_amount = input(colorama.Fore.CYAN + 'Input thread amount: ' + colorama.Fore.GREEN)
print(colorama.Fore.RED + '\n=======================================\n')
else:
thread_amount = None
if not _options['random']:
custom_sticker = input(colorama.Fore.CYAN + 'Input custom sticker value: ' + colorama.Fore.GREEN)
print(colorama.Fore.RED + '\n=======================================\n')
else:
custom_sticker = None
datalist = {"message" : message, "recipient_identity" : recipient_identity, "thread_amount" : thread_amount, "custom_sticker" : custom_sticker}
return datalist
thinglist = [
"afcbd83d-3246-4bc3-85d5-9e12a78a5583",
"bc5fa35b-ed8f-41ae-8ab7-ac9cdc9a8a92",
"7b931a0f-4851-4055-bc1a-f92fb35c5b1c",
"e98d7864-8d81-47ea-ae56-6985c7e1c287",
"f9a31b88-3e55-43ee-a5ae-b5528a978942",
"7d0cb5c8-5799-435b-a88a-c216da7403ad",
"73435224-c222-4c0e-8b80-56920148b6b9",
"5566df4d-c026-4721-9629-d6be8df5276c",
"19f21547-0b6f-44ea-b968-58f97c85dab3",
"f406d572-fe8f-4af7-ae1a-da109c60b0c4",
"16ed4963-d0c8-465b-9693-db5357bd0028",
"9b619faf-d200-4e6c-b0e4-8180dbad97a0",
"9df93fcc-4b99-4aee-8916-f1cf2ca1e9bb",
"fdb4ddf7-a0f8-4dde-90de-281fb100a9bb"]
def send_message(datalist):
global sent
while True:
try:
try:
if _options['random']:
sticker = random.choice(thinglist)
else:
sticker = datalist['custom_sticker']
if _options['fromfile']:
for _id in datalist['recipient_identity']:
head = {'app-id': 'c2ad997f-1bf2-4f2c-b5fd-83926e8f3c65', 'app-version': '1.0'}
data = {"recipient_identity": {"type": "id", "value": _id},
"type": "sendit.post-type:question-and-answer-v1", "data": {"question": datalist['message']},
"ext_data": {"sticker_id": sticker,
"author_shadow_token": 'a5f367a7-f909-4dec-b26c-74f5eac361cd'}, "timer": 0}
response = requests.post(url='https://api.getsendit.com/v1/posts', json=data, headers=head).text
status = json.loads(response)['status']
if status == 'success':
sent += 1
print(colorama.Fore.GREEN + '\r' + f'success! message {sent} ', end='')
elif status == 'failure':
print(colorama.Fore.RED + '\r' + f'message failed to send.', end='')
else:
head = {'app-id': 'c2ad997f-1bf2-4f2c-b5fd-83926e8f3c65', 'app-version': '1.0'}
data = {"recipient_identity": {"type": "id", "value": datalist['recipient_identity']},
"type": "sendit.post-type:question-and-answer-v1", "data": {"question": datalist['message']},
"ext_data": {"sticker_id": sticker,
"author_shadow_token": 'a5f367a7-f909-4dec-b26c-74f5eac361cd'}, "timer": 0}
response = requests.post(url='https://api.getsendit.com/v1/posts', json=data, headers=head).text
status = json.loads(response)['status']
if status == 'success':
sent += 1
print(colorama.Fore.GREEN + '\r' + f'success! message {sent} ', end='')
elif status == 'failure':
print(colorama.Fore.RED + '\r' + f'message failed to send.', end='')
#print(status + '\n')
except KeyboardInterrupt:
print(colorama.Fore.BLUE + '\nexiting!!')
quit()
except:
pass
if _options['threaded']:
try:
datalist = getdata()
threadamount = int(datalist['thread_amount'])
threads = []
for i in range(threadamount):
t = threading.Thread(target=send_message, args=[datalist])
t.daemon = True
threads.append(t)
for i in range(threadamount):
threads[i].start()
for i in range(threadamount):
threads[i].join()
except KeyboardInterrupt:
print(colorama.Fore.BLUE + '\nexiting!!')
quit()
elif not _options['threaded']:
try:
datalist = getdata()
send_message(datalist=datalist)
except KeyboardInterrupt:
print(colorama.Fore.BLUE + '\nexiting!!')
quit()