[root@localhost lib]# pwd
/opt/cBPM-android/criteria-lin/lib
[root@localhost lib]# adb push executer /data/data
3352 KB/s (22209660 bytes in 6.469s)
[root@localhost lib]# adb shell
root@mb526:/ # cd data/data/
root@mb526:/data/data # ./executer
/system/bin/sh: ./executer: No such file or directory
这是因为系统的动态链接器与executer程序中动态链接器的名字或路径不对,执行如下命令:
[root@localhost lib]# pwd
/opt/cBPM-android/criteria-lin/lib
[root@localhost lib]# readelf -l executer
Elf 文件类型为 EXEC (可执行文件)
入口点 0xb138
共有 8 个程序头,开始于偏移量52
程序头:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
PHDR 0x000034 0x00008034 0x00008034 0x00100 0x00100 R 0x4
INTERP 0x000134 0x00008134 0x00008134 0x00013 0x00013 R 0x1
[正在请求程序解释器:/usr/lib/libc.so.1]
LOAD 0x000000 0x00008000 0x00008000 0x526848 0x526848 R E 0x1000
LOAD 0x526ec8 0x0052fec8 0x0052fec8 0x33154 0x509b0 RW 0x1000
DYNAMIC 0x535cd8 0x0053ecd8 0x0053ecd8 0x000e8 0x000e8 RW 0x4
GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0
EXIDX 0x466770 0x0046e770 0x0046e770 0x19900 0x19900 R 0x4
GNU_RELRO 0x526ec8 0x0052fec8 0x0052fec8 0x11138 0x11138 RW 0x8
Section to Segment mapping:
段节...
00
01 .interp
02 .interp .dynsym .dynstr .hash .rel.dyn .rel.plt .plt .text .note.android.ident .ARM.extab .ARM.exidx .rodata
03 .data.rel.ro.local .fini_array .init_array .preinit_array .data.rel.ro .dynamic .got .data .bss
04 .dynamic
05
06 .ARM.exidx
07 .data.rel.ro.local .fini_array .init_array .preinit_array .data.rel.ro .dynamic .got
[root@localhost lib]#
阅读(1619) | 评论(0) | 转发(0) |