feat: Implement thread-safe account and statistics management and integrate proxy support for all external requests.

This commit is contained in:
2026-02-13 03:32:27 +08:00
parent 1c58279292
commit ef23318090
12 changed files with 1041 additions and 84 deletions

View File

@@ -2,7 +2,7 @@ import uuid
import base64
from curl_cffi import requests # 用于模拟指纹
from config import CLAUDE_URL
from config import CLAUDE_URL, get_proxy
from models import ClaudeAccount
from identity import random_ua
@@ -48,7 +48,8 @@ def attack_claude(target_email):
CLAUDE_URL,
json=payload,
headers=headers,
impersonate="chrome124"
impersonate="chrome124",
proxies=get_proxy(),
)
if response.status_code == 200:
@@ -132,7 +133,8 @@ def finalize_login(magic_link_fragment):
verify_url,
json=payload,
headers=headers,
impersonate="chrome124"
impersonate="chrome124",
proxies=get_proxy(),
)
if response.status_code == 200: