【问题标题】:Get HmacSHA256 key for Instagram private api获取 Instagram 私有 api 的 HmacSHA256 密钥
【发布时间】:2017-05-17 14:58:20
【问题描述】:

我们中的许多人都在使用破解的 Instagram API (https://i.instagram.com/api/v1/)。此 API 需要对一些调用进行签名,如下所示:

        byte[] keyBytes = GenericConstants.SECRET_KEY.getBytes();
        SecretKeySpec signingKey = new SecretKeySpec(keyBytes, "HmacSHA256");
        Mac mac = Mac.getInstance("HmacSHA256");
        mac.init(signingKey);
        byte[] rawHmac = mac.doFinal(json.getBytes());
        byte[] hexBytes = new Hex().encode(rawHmac);
        String signetJson =  String(hexBytes, "UTF-8");

请求发送为signetJson.NORMAL_JSON

问题是SECRET_KEY 对于每个 Instagram 版本都不同,有没有办法从 Android 设备获取它,或者有人可以分享吗? ;)

【问题讨论】:

    标签: android instagram-api


    【解决方案1】:

    您需要一个 gikdbg 和运行 ART 的 Android。

    从 gikdbg,附加 com.instagram.android 进程并查找名为 libstrings.so 的模块

    在调用 strlen 的 crypto_auth_hmacsha256_init 上方设置一个断点,运行以达到断点。从那里,按照转储,通过寄存器内存地址从内存中提取密钥。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-03-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-29
      • 1970-01-01
      相关资源
      最近更新 更多