mirror of
https://github.com/WhaleFell/SMSBoom.git
synced 2026-07-05 19:36:23 +08:00
🐞 Fix: 完善功能, 修复之前乱写的Bug.
- 通过代理调用短信接口, 支持http, socks4, socks5代理. - 使用随机的User-Agent. - 可指定轰炸次数, 轰炸间隔时间.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# encoding=utf8
|
||||
# 储存数据库模型
|
||||
from utils import default_header_user_agent
|
||||
from . import db
|
||||
from datetime import datetime
|
||||
from . import ModelView
|
||||
@@ -7,10 +8,6 @@ import json
|
||||
from typing import Union, Optional
|
||||
from pydantic import BaseModel
|
||||
|
||||
default_header = {
|
||||
"User-Agent": "Mozilla/5.0 (Linux; U; Android 10; zh-cn; Mi 10 Build/QKQ1.191117.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.147 Mobile Safari/537.36 XiaoMi/MiuiBrowser/13.5.40"
|
||||
}
|
||||
|
||||
|
||||
class ApisModelVies(ModelView):
|
||||
create_template = 'api_edit.html'
|
||||
@@ -38,7 +35,7 @@ class API(BaseModel):
|
||||
desc: str = "Default"
|
||||
url: str
|
||||
method: str = "GET"
|
||||
header: Optional[Union[str, dict]] = default_header
|
||||
header: Optional[Union[str, dict]] = default_header_user_agent()
|
||||
data: Optional[Union[str, dict]]
|
||||
|
||||
def replace_data(self, content: Union[str, dict], phone) -> str:
|
||||
|
||||
Reference in New Issue
Block a user