能力值:
( LV12,RANK:550 )
|
-
-
2 楼
支持一下
|
能力值:
( LV2,RANK:10 )
|
-
-
3 楼
加上 app 的版本号会更好些哦
最后于 2022-11-16 15:09
被gwljt编辑
,原因:
|
能力值:
( LV1,RANK:0 )
|
-
-
4 楼
加油加油!
|
能力值:
( LV2,RANK:10 )
|
-
-
5 楼
模拟登录代码: from pyDes import CBC, PAD_PKCS5
import time
import base64
import hashlib
import requests
from pyDes import des
"""
加密模式:DES/CBC/pkcs5padding
需pip先安装依赖包
> pip install pyDes
"""
'''
验证:
input
{"equtype":"ANDROID","loginImei":"Android354360070284377","sign":"A8AADB717E1F56B325B3687390C6D069","timeStamp":"1669179310106","userPwd":"edcrfv","username":"13812314569"}
output:
NIszaqFPos1vd0pFqKlB42Np5itPxaNH//FDsRnlBfgL4lcVxjXii3Rz/9qjO8lywAYy6K8YcoQQaOeqZllR9aQXPwOWajsJhvKph1pq0iyaNSw3afbO9E7kophIxKQfL0XlEWx8lfdK6fYvf7zMIP6Lz3UAAgvqw/FmjRRwynKcs8cOxBoHTiP8z0cXK6S8/SiRnPFjHrYy2YyGyxlQziNAC2XVutFoMpbzwE5prao=
'''
def get_md5(s):
m = hashlib.md5(s.encode())
return m.hexdigest()
# com.autohome.ahkit.utils.SecurityUtil.iv
iv = '32028092'
import json
# c3d26dca86259782
key = '65102933'
key = get_md5(key)
# 这里需要转换成byte的hex值
# fromhex函数,用来将hexstr导入bytes对象,相当于用hexstr来创建bytes对象。
key = bytes.fromhex(key)
def fill_timeStamp():
config = {'equtype': 'ANDROID',
'loginImei': 'Android354360070284377',
'userPwd': 'edcrfv',
'timeStamp':str(int(time.time()* 1000)),
# 'timeStamp':'1669179310106', # 验证是否正确
'username': '13812314569'}
return config
def fill_sign(config):
s = 'equtype={equtype}&loginImei={loginImei}&timeStamp={timeStamp}&userPwd={userPwd}&username={username}&key=sdlkjsdljf0j2fsjk'
s = s.format(**config)
sign = get_md5(s).upper()
config['sign'] = sign
return config
def get_json_str():
config = fill_sign(fill_timeStamp())
# json后 , separators=(',', ':')=> 删除 ,与:之间是有空格的
# json后 , sort_keys=True=> 按字典的key排序
return json.dumps(config, sort_keys=True, separators=(',', ':'))
def des_encrypt(s, key=key, iv=iv):
"""
DES 加密
:param s: 原始字符串
:param key: 加密密钥24位
:return: 加密后字符串, base64
"""
key8 = key[:8]
k = des(key8, CBC, iv, pad=None)
en = k.encrypt(s.encode(), padmode=PAD_PKCS5)
return base64.b64encode(en).decode()
# print(des_encrypt(get_json_str()))
header = {
"Host": "api.dodovip.com",
"cache-control": "public, max-age=0" ,
"content-type": "application/json; charset=utf-8",
"user-agent": "Dalvik/2.1.0 (Linux; U; Android 10; SM-N9600 Build/QP1A.190711.020"
}
def login():
url = "http://api.dodovip.com/api/user/login"
data = {
'Encrypt': des_encrypt(get_json_str())
}
res = requests.post(url,headers=header,json=data)
print(res.text)
login()
|
能力值:
( LV1,RANK:0 )
|
-
-
6 楼
想知道加密解密用的软件叫啥名字。
最后于 2022-11-24 15:15
被liukuo362573编辑
,原因:
|
能力值:
( LV2,RANK:10 )
|
-
-
7 楼
|
能力值:
( LV1,RANK:0 )
|
-
-
8 楼
请问一下作者遇到app监测root 无法用反射大师获取到dex 该怎么办
|
|
|