frida_rpc dou音、饿le么 header加密

仅用作学习用途!!!!!

  
var result;

function callEleMeFun(url_path) { //定义导出函数
    Java.perform(function () {
        var a = Java.use('class');//这边改了,需要自己去找饿了么的加密类
        var context = Java.use('android.app.ActivityThread').currentApplication().getApplicationContext();
        var res = a.sneer(context, "4f93e640-5c6f-4980-bd3d-c1256672a64d", url_path, "a");
        result = {"ex_r": res[0], "ex_dc": res[1], "ex_d": res[2]};
    });
    return result;
}

function callDYFun(url) { //定义导出函数
    Java.perform(function () {
        var ss = Java.use('com.ss.sys.ces.gg.tt$1');
        var HashMap = Java.use("java.util.HashMap").$new();
        var jsonObj = Java.use('org.json.JSONObject');
        var str = Java.use("java.lang.String");
        var res = jsonObj.$new(ss.$new().a(url, HashMap));
        result = str.valueOf(res);
    });
    return result;
}

rpc.exports = {
    callsecretfunctioneleme: callEleMeFun,
    callsecretfunctionedy: callDYFun,
};

转载:https://www.cnblogs.com/xbjss/p/13326635.html   2020-05-31(发)

https://github.com/zhaoboy9692/flask_frida_rpc

posted @ 2020-09-02 17:56  小君~  阅读(528)  评论(0编辑  收藏  举报