duangsues.is_a? SaltedFish
60 subscribers
609 photos
6 videos
91 files
562 links
🌶🐔🐟 duangsuse 的日常
尤其喜欢发些奇奇怪怪的东西
和转载别人的东西
Download Telegram
貌似没用 Android API,所以我应该可以在 Python 里试试这个函数
duangsues.is_a? SaltedFish
貌似没用 Android API,所以我应该可以在 Python 里试试这个函数
package com.coolapk.market.util

object AuthUtils {
external fun getAS(str: String): String

init {
System.loadLibrary("a")
}
}

用法:以 UUID 为参数调用来生成 Token
QEMU 需求(
开 ARM QEMU 虚拟机
(ADB 真香
(无奈准备 Python 反而比虚拟机更耗时
垃圾酷安下不了应用了,估计是赚炸了(跑
如果我有 qemu-arm ...

su
/data/data/com.hipipal.qpy3/files/bin/python-root

from ctypes import *
import ctypes

c=ctypes.CDLL("/sdcard/liba.so")

c.Java_com_coolapk_market_util_AuthUtils_getAS.restype = c_char_p

c.Java_com_coolapk_market_util_AuthUtils_getAS.argtypes = [c_char_p]

c.Java_com_coolapk_market_util_AuthUtils_getAS

sb=create_string_buffer(b'2e0dc2d2-b18f-47f1-a83a-d503922e8656')

c.Java_com_coolapk_market_util_AuthUtils_getAS(sb)
Segmentation fault



#tech #emmm 老李说的没错,我对底层的确非常无知了(
This media is not supported in your browser
VIEW IN TELEGRAM
算了,直接分析吧
升级了 Cutter
如果 Lite 有缩进语义就不需要 if as suffix 了(
r2 的实验性 aa 好方便啊,还能推出函数的返回类型
[x] Analyze all flags starting with sym. and entry0 (aa)
[x] Analyze function calls (aac)
[x] Analyze len bytes of instructions for references (aar)
[x] Emulate code to find computed references (aae)
[x] Analyze consecutive function (aat)
[x] Constructing a function name for fcn.* and sym.func.* functions (aan)
[x] Type matching analysis for all functions (afta)
const char *
有价值看的函数:


BD(12 Basic Blocks)
BDL(3 Basic Blocks)
BE(9 Basic Blocks)
BEL(Simple,1 Basic Block)
Java_com_coolapk_market_util_AuthUtils_getAS (restype = const char* argtypes=[const char*],1 Basic Blocks)
(Called r、BDL、bd、strlen、memecpy、time、sprintf、strcat、BEL、be、me)

r(Simple,4 Basic blocks,called strlen)

me(6 Basic Blocks,called MI、MU、MF)
工程量比较大...(