速痕-原摩圈 APP分析

version:3.1.0

该app做了一些环境检测,部分越狱或root手机无法打开或闪退

ciphertext算法:

# 时间戳
timeSpan = str(int(time.time()))  # 10位时间戳短位
headers["timestamp"] = timeSpan

# ciphertext算法   随机加密影响不大
cipherBase = "android&"
cipherStr = timeSpan + "androidMQ158000001" + str(random.random()) + str(uuid.uuid4())
print(cipherStr)
cipherLast = hashlib.md5(bytes(cipherStr, encoding="utf8")).hexdigest()
cipherText = base64.b64encode((cipherBase + cipherLast).encode()).decode()
headers["ciphertext"] = cipherText

# sign hmac-sha256算法:

# sign hmac-sha256算法
signStr = "appid=MQ158000001&ciphertext=" + cipherText + "&method=" + method + "&path=" + path + "&timestamp=" + timeSpan
hmac_obj = hmac.new(
    "D4D07E5968CCBB455895BE897A4CAD69".encode('utf-8'),
    signStr.encode('utf-8'),
    hashlib.sha256
)
sign = base64.b64encode(hmac_obj.digest()).decode('utf-8')
headers["sign"] = sign

响应体解密:

hook该方法:

Java.perform(function () {
    let GZIPManager = Java.use("ih1");
    GZIPManager.a.implementation = function(str){
        console.log('a is called:',str);
        let ret = this.a(str);
        console.log('a ret value is: ' + ret);
        return ret;
    };
});

算法还原实现:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Codeooo

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值