楼主,进击的Android注入术《四》中,注入后,importdex.so好像没有执行起来。
现象如下
,4.4.2的系统,大概可能原因是什么?
log:
--------- beginning of /dev/log/system
--------- beginning of /dev/log/main
I/TTT ( 1697): com.demo.inject starts.
I/TTT ( 1697): com.demo.host starts
I/TTT ( 1697): 1
I/TTT ( 1697): 2
I/TTT ( 1697): 3
I/TTT ( 1697): 4
I/TTT ( 1697): 5
I/TTT ( 1697): >>>>>>>>>>>>>I am in, I am a bad boy!!!!<<<<<<<<<<<<<<
I/TTT ( 1697): searchContextForZygoteProcess 000
I/TTT ( 1697): searchContextForZygoteProcess 000 111
I/TTT ( 1697): searchContextForZygoteProcess 000 222
I/TTT ( 1697): searchContextForZygoteProcess
I/TTT ( 1697): searchContextForZygoteProcess 1111
I/TTT ( 1697): 6
I/TTT ( 1697): searchContextForZygoteProcess 2222
I/TTT ( 1697): searchContextForZygoteProcess 333
I/TTT ( 1697): 998
I/TTT ( 1697): 999
I/TTT ( 1697): 1000
I/TTT ( 1697): 1001
I/TTT ( 1697): 1002
I/TTT ( 1697): 1003
I/TTT ( 1697): 1004
I/TTT ( 1697): 1005
I/TTT ( 1697): 1006
I/TTT ( 1697): 1007
I/TTT ( 1697): 1008
I/TTT ( 1697): 1009
I/TTT ( 1697): 1010
I/TTT ( 1697): 1011
I/TTT ( 1731): [+] ptrace attach to [1697] com.demo
I/TTT ( 1731): [+] pc: 40056364, r7: 263
I/TTT ( 1731): [+] the local module is /system/bin/linker
I/TTT ( 1731): [+] the local module is /system/bin/linker
I/TTT ( 1731): [+] remote_dlopen address 0x40016401
I/TTT ( 1731): [+] remote_dlsym address 0x4001636d
I/TTT ( 1731): [+] the local module is /system/lib/libc.so
I/TTT ( 1731): [+] Calling mmap in target process. mmap addr 0x4005c408.
I/TTT ( 1731): [+] Target process returned from mmap, return r0=52587000, r7
=107, pc=0,
I/TTT ( 1731): [+] Target process returned from dlopen, return r0=400293a0,
r7=107, pc=0,
I/TTT ( 1731): [+] Inject success!
I/TTT ( 1731): [+] Inject done!
I/TTT ( 1697): 1012
I/TTT ( 1697): 1013
I/TTT ( 1697): 1014
I/TTT ( 1697): 1015
I/TTT ( 1697): 1016
I/TTT ( 1697): 1017
I/TTT ( 1697): 1018
I/TTT ( 1697): 1019
文件的路径如下:
root@android:/data/local/tmp # ls -l
ls -l
-rwxrwxrwx root root 285374 2014-09-05 16:28 DemoInject2.apk
-rwxrwxrwx root root 9544 2014-09-05 17:29 demo1
-rwxrwxrwx root root 5088 2014-09-09 16:44 libimportdex.so
-rwxrwxrwx root root 13388 2014-09-05 17:34 libinso.so
-rwxrwxrwx root root 13432 2014-09-06 13:37 libmyso.so
-rwxrwxrwx root root 17752 2014-09-06 16:15 poison