feat: Implement thread-safe account and statistics management and integrate proxy support for all external requests.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user