2016-2-12 10:24
PC: win7 64 sp1
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Author: zouwei
# @Last Modified by: zouwei
# @Last Modified time: 2016-02-05 00:53:46
class CONFIG:
HOST_ANDROIDSERVER_PATH = 'C:/IDA/dbgsrv'
ADB_PATH = 'C:/adb/adb'
AAPT_PATH = 'H:/adt-bundle-windows-x86-20140702/sdk/build-tools/android-4.4W/aapt'
APK_PATH = 'c:/x51.apk'
[+] Restarting ADB server as ROOT...
Restart ADB as ROOT successed!
[+] Detecting devices...
('List of devices attached \r', '\n', '8c23aab1\tdevice\r\n\r\n')
[+] Get devices successfully
0: 8c23aab1
[+] Using '8c23aab1' as target device
[+] Checking the state of the adb connnect......
[+] adb connnected well!
[+] Exec su -c ' ls -l /data/local/tmp ' .
[+] Exec push C:/IDA/dbgsrv /data/local/tmp/my_android_server .
[+] push C:/IDA/dbgsrv to /data/local/tmp/
[+] Begin adb port forwarding......
[+] Exec forward tcp:23946 tcp:23946 .
[+] Exec su -c ' chmod 777 /data/local/tmp/my_android_server ' .
[+] exec the my_android_server.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[+] Unknown id: chmod
[W] Now you maybe need to wait several seconds, please be patient......
[+]
(Not Run Android_Server) 这个是我后加的
++++++++++++++++++++++++++++++++++++++++++++++++
[+] Begin launch 'x51.apk' in debug mode......
[+] PackageName is ' com.h3d.qqx5 '
[+] MainActivity is ' com.h3d.qqx5.ui.view.MainFragmentActivity '
[W]=== Now please attach process 'com.h3d.qqx5' in IDA
[W]=== Have you attached successfully?(N or Enter):
图片的话,只能加我q,我用邮箱给你发信息了,你登陆下就知道我q了