ikoz / AndroidSubstrate_hookingC_examples

AndroidSubstrate_hookingC_examples
57 stars 40 forks source link

Its not working anymore #1

Open pentatonicfunk opened 7 years ago

pentatonicfunk commented 7 years ago

trying to hook getAge but nothing happened, But Hooking on arc4random working

I/INSTAHOOK(26798): MSInitialize Called
I/INSTAHOOK(26798): imagehandle lookup_symbol : 0xb776c2c4
I/INSTAHOOK(26798): sym lookup_symbol : 0xb648c4e0
I/INSTAHOOK(26798): getAgeSym lookup_symbol : 0xb648c4e0
I/INSTAHOOK(26798): getAgeSym lookup_symbol loaded
I/INSTAHOOK(26809): MSInitialize Called
I/INSTAHOOK(26809): imagehandle lookup_symbol : 0xb778b4fc
I/INSTAHOOK(26809): sym lookup_symbol : 0xb617c4e0
I/INSTAHOOK(26809): getAgeSym lookup_symbol : 0xb617c4e0
I/INSTAHOOK(26809): getAgeSym lookup_symbol loaded
I/INSTAHOOK(26817): replaced_arc4random
I/INSTAHOOK(26817): replaced_arc4random
I/PackageParser(26817): io.koz.targetApp1: compat added android.permission.WRITE_EXTERNAL_STORAGE android.permission.READ_PHONE_STATE
D/BluetoothAdapterService(27256): REFCOUNT: CREATED. INSTANCE_COUNT1
I/ActivityManager(26817): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=io.koz.targetApp1/.targetApp1} from pid 27014
I/ActivityManager(26817): Start proc io.koz.targetApp1 for activity io.koz.targetApp1/.targetApp1: pid=27550 uid=10053 gids={50053, 1015, 1028}
D/dalvikvm(27550): Trying to load lib /data/app-lib/io.koz.targetApp1-1/libtargetLib.so 0xa63f08d0
D/dalvikvm(27550): Added shared lib /data/app-lib/io.koz.targetApp1-1/libtargetLib.so 0xa63f08d0
D/dalvikvm(27550): No JNI_OnLoad found in /data/app-lib/io.koz.targetApp1-1/libtargetLib.so 0xa63f08d0, skipping init
I/ActivityManager(26817): Displayed io.koz.targetApp1/.targetApp1: +371ms
I/INSTAHOOK(27550): replaced_arc4random
I/targetApp1-native(27550): [i] Verbose - getAge located at 0xb617c4e0
I/targetApp1-native(27550): [+] John Smith is 21 years old.
I/targetApp1-native(27550): [+] The totally reliable random seed is: 1234
I/targetApp1-native(27550):
I/INSTAHOOK(27550): replaced_arc4random
I/targetApp1-native(27550): [i] Verbose - getAge located at 0xb617c4e0
I/targetApp1-native(27550): [+] John Smith is 21 years old.
I/targetApp1-native(27550): [+] The totally reliable random seed is: 1234
I/targetApp1-native(27550):
huhuang03 commented 6 years ago

@pentatonicfunk Hello, I have the same problem, did you find why.

pentatonicfunk commented 6 years ago

@huhuang03 i didn't, you might wanna try https://frida.re/ though