迅雷云监工crysadm+和手机APP共存解决办法

按照下面的直接复制到编辑的文件内就OK了

login.py修改old_login函数

def old_login(username, md5_password):
exponent = int("010001", 16)
modulus = int("D6F1CFBF4D9F70710527E1B1911635460B1FF9AB7C202294D04A6F135A906E90E2398123C234340A3CEA0E5EFDC"
"B4BCF7C613A5A52B96F59871D8AB9D240ABD4481CCFD758EC3F2FDD54A1D4D56BFFD5C4A95810A8CA25E87FDC75"
"2EFA047DF4710C7D67CA025A2DC3EA59B09A9F2E3A41D4A7EFBB31C738B35FFAAA5C6F4E6F", 16)

param = '{"cmdID":1,"isCompressed":0,"rsaKey":{"n":"D6F1CFBF4D9F70710527E1B1911635460B1FF9AB7C202' \
'294D04A6F135A906E90E2398123C234340A3CEA0E5EFDCB4BCF7C613A5A52B96F59871D8AB9D240ABD4481CCFD758EC3F2FDD54A' \
'1D4D56BFFD5C4A95810A8CA25E87FDC752EFA047DF4710C7D67CA025A2DC3EA59B09A9F2E3A41D4A7EFBB31C738B35FFAAA5C6F4' \
'E6F","e":"010001"},"businessType":67,"passWord":"%s","loginType":0,"platformVersion":1,' \
'"verifyKey":"","sessionID":"","protocolVersion":100,"userName":"%s","extensionList":"",' \
'"sequenceNo":10000002,"peerID":"%s","clientVersion":"1.0.0","appName":"ANDROID-com.xunlei.redcrystalandroid"}'

hash_password = hex(pow_mod(StrToInt(md5_password), exponent, modulus))[2:].upper().zfill(256)

_chars = "0123456789ABCDEF"

peer_id = "E564A24FF0838C30"

param = param % (hash_password, username, peer_id)

headers = {'user-agent': "RedCrystal/1.5.0 (iPhone; iOS 8.4; Scale/2.00)"}
r = requests.post("https://login.mobile.reg2t.sandai.net/", data=param, headers=headers, verify=False)

login_status = json.loads(r.text)

return login_status

api.py中找到所有并修改

if len(cookies.get('sessionid')) == 128:
cookies['origin'] = '4'
else:
cookies['origin'] = '7'

 

 网盘下载http://pan.baidu.com/s/1nucxhNV

 

云监工和手机app共存修改方法.txt

打赏
4 条评论
      1. 我按着改了,然后就不显示登录界面了。而且关于api那个改法我没看懂,我直接搜索替换的,不知道对不对。请指教

  1. def get_can_drawcash(cookies): cookies[‘origin’] = ‘4’ if len(cookies.get(‘sessionid’)) == 128 else ‘1’ body = dict(v=’1′, appversion=appversion) return api_post(url=’/?r=usr/drawcashInfo’, data=body, cookies=cookies)像这段,怎么改呢?我没看懂。

发表一条评论