-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdydebug.bat
54 lines (38 loc) · 948 Bytes
/
dydebug.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
@echo off
rem Android动态调试自动化脚本
rem
rem __author__ : Tasfa
rem __info__ : www.tasfa.cn
rem __e-mail__: root#tasfa.cn
rem
rem
rem 启动监听server
start cmd /k "android_server_listen.py"
rem 设置时间延迟
choice /t 2 /d y /n >nul
rem 启动转发
start cmd /c "adb_forward_dbg.bat"
start cmd /c "adb_forward_dbg.bat"
echo Do you want to attach the target ?
choice /c:yn
if errorlevel 2 goto debug
if errorlevel 1 goto attach
goto :eof
:debug
rem 启动activity
start cmd /k "am-start.py"
choice /t 8 /d y /n >nul
rem 启动ida
start E:\IDA\IDA_Pro_v6.8_and_Hex-Rays_Decompiler_(ARM,x64,x86)_Green\idaq.exe
rem 启动ddms
choice /t 30 /d y /n >nul
start cmd /k "ddms"
rem 启动jdb-connect
choice /t 8 /d y /n >nul
start cmd /k "jdb-connect.bat"
goto :eof
:attach
echo Do you want to start IDA ?
choice /c:yn
if errorlevel 2 exit
if errorlevel 1 start E:\IDA\IDA_Pro_v6.8_and_Hex-Rays_Decompiler_(ARM,x64,x86)_Green\idaq.exe