Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

添加随机选择Device和os版本的功能,绕过风控,让登陆可以成功 #124

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 16 additions & 3 deletions swjsq.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import binascii
import tarfile
import atexit
import random
try:
import ssl
import hashlib
Expand Down Expand Up @@ -51,9 +52,21 @@
log_file = 'swjsq.log'

login_xunlei_intv = 600 # do not login twice in 10min

DEVICE = "SmallRice R1"
OS_VERSION = "5.0.1"
DEVICES = ['Xiaomi MI 6' ,'Xiaomi Mi 5X','Xiaomi Redmi Note 3',
'Xiaomi Redmi Note 4X','Xiaomi MIX 2 Mi Mix 2',
'Huawei BLN-AL20 Honor 6X',
'Huawei NXT-AL10 Mate 8','Huawei ALP-L29 Mate 10' ,'Huawei LON-AL00 Mate 9',
'Huawei EVA-L09 P9 Standard Edition','Huawei EVA-AL00 P9 Premium Edition',
'Huawei WAS-AL00 Honor 8 Lite', 'Huawei BLN-TL10 Honor 6X',
'Lenovo ZUK Z2121 ZUK Z2 Pro',
'LeTV Le X620 Le 2',
'OPPO 6607 U3','OPPO R9s Plus'
'Samsung SM-G9350 Galaxy S7 Edge', 'Samsung SM-N9200 Galaxy Note 5',
'Vivo X9s Plus','Vivo X9','Vivo Xplay6','Vivo Y927']
OS_VERSIONS = ['7.0','7.1.1','6.0', '6.0.1', '5.1.1', '5.0.2','5.1.2']

DEVICE = random.choice(DEVICES)
OS_VERSION = random.choice(OS_VERSIONS)

header_xl = {
'Content-Type':'',
Expand Down