开始任务:超级管理员支持安全中心通过外部邮箱验证码修改密码

This commit is contained in:
xuans committed 2026-09-15 17:25:53 +08:00
1 parent fa885c8563
commit 5199de3fac
70 files changed
+1474

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import urllib.request, ssl, json, http.cookiejar
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
cj = http.cookiejar.CookieJar()
opener = urllib.request.build_opener(urllib.request.HTTPSHandler(context=ctx), urllib.request.HTTPCookieProcessor(cj))
for pwd in ["12345678", "123456", "testuser2", "Password123!", "Tester123456!"]:
login_payload = json.dumps({"account": "testuser2", "password": pwd}).encode("utf-8")
req = urllib.request.Request("https://47.108.78.12/api/v1/login", data=login_payload, headers={
"Content-Type": "application/json",
"Host": "mail.solit.cn",
"Origin": "https://mail.solit.cn"
})
try:
resp = opener.open(req, timeout=5)
res = json.loads(resp.read().decode())
print(f"Pwd {pwd} -> errorNo: {res.get('errorNo')}, errorMsg: {res.get('errorMsg')}")
except Exception as e:
print(f"Pwd {pwd} -> exception: {e}")