寫在前面:
本文僅限交流學習使用,請勿使用在任何非法商業活動,禁止用於非法用途。否則後果自負。如有侵權,請告知刪除,謝謝!
隨著元宇宙概念的興起,國內數字藏品市場也隨之發展起來,由於NFT的特性,因此,國內更多用“數字藏品”來表示。數字藏品交易平臺,是NFT數字藝術品交易的基礎設施,正在呈現出強勁的發展趨勢。
環境
windows10
Nexus 5X(已root)
jadx
BlackDex32
python3.7.2
frida 12.8.0
抓包
https://api-app.ibox.art/nft-mall-web/v1.1/nft/user/login
Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: zh-Hans-CN;q=1, en-CN;q=0.9
Connection: keep-alive
Content-Length: 45
Content-Type: application/json
Host: api-app.ibox.art
IB-APP-VERSION: 1.1.3
IB-DEVICE-ID: 1796j7e5-97e7-499f-b515-7fbb8fds12762
IB-PLATFORM-TYPE: ios
IB-TRANS-ID: ec465gh35-7ff7-42e6-bf82-c19sd46ge3bf_iOS
User-Agent: Box/1.1.3 (iPhone; iOS 15.3.1; Scale/2.00),BoxApp
wToken: e647_uxbnmgn1x3q4uKIl34OyAvHxRugJ0DSkK5nieNSTPtjRbXk5TCvBuN0IoZ/7q3T4GNMk8jK/++wDj4m7Jt8X1Xioyp/UQSoK++VT7EPzKVlUt2NXP4OZu4AZAWCKw+tgrBUdV8mWmzDhgnSK4pgN55dOsI/4Q+c0Tyc1WLD+MsoUgFF+wnzp3e++3AZvFlMS8wFfEF4mkEf/GRsZP3gEp4drE5n8vCQfv1LZ6AJ0w/rNnetE19ia3fSR+poqK97&b7ee_80691B702C79BA20B03FF244FS43FE7ACA9254090BD35B29B8A7
{"code": "000000","phoneNumber": "11111111111"}
反編譯
Java.perform(function () {
var application = Java.use("android.app.Application");
application.attach.overload('android.content.Context').implementation = function (context) {
var result = this.attach(context); // 先執行原來的attach方法
var classloader = context.getClassLoader(); // 獲取classloader
Java.classFactory.loader = classloader;
var RootCheckUtil = Java.classFactory.use("com.ibox.libs.common.utils.RootCheckUtil");
//由於app檢測root環境後無法正常執行,hook該方法修改返回值即可解決
RootCheckUtil.a.implementation = function () {
return false;
}
RootCheckUtil.b.implementation = function () {
return false;
}
AliTigerTallyManager.d.implementation = function (str) {
var result = this.d(str);
console.log("wToken: " + result);
return result;
}
}
}
);