JohnHubcr / xadb

Android逆向自动化脚本,一键开启调试(ida/gdb/lldb),一键查看app、设备信息,一键脱壳,一键开启frida等。32/64位均支持

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xadb

Android逆向自动化操作脚本,一键开启调试(ida/gdb/lldb),一键查看app、设备信息,一键脱壳等等

Install

  • git clone xadb_git_project;
  • cd xadb
  • ./install.sh the_android_sdk_path example:./install.sh ~/xia0/android/sdk
  • If your shell is bash run: source ~/.bash_profile
  • If your shell is zsh run :source ~/.zshrc

Command

adb device   [imei]                              show connected android device basic info 
adb app      [sign/so/pid/apk/debug/dump]        show current app, debug and dump dex  
adb xlog     [package]                           logcat just current app or special package 
adb debug    [ida/ida64,lldb/lldb64, gdb/gdb64]  open debug and setup ida/lldb/gdb debug enviroment 
adb frida/64 start frida server on device        		 
adb pcat     [remote-file]                       copy device file to local 
adb pstree   show the process tree of device
adb -h       show this help usage 
adb update   update xadb for new version!

说明:adb兼容内置的所有命令。在分别在pixel2 Android8 和pixel3 Android9上面测试通过。

mprop只编译了64位的版本,若你为32位的设备,可以自行编译。

在source目录下面提供了mprop的源码及build脚本

关于脱壳,之前基于frida的脱壳脚本只能脱一代壳且兼容性不高,就暂时没放出来。如果有大佬有比较好的方式,可以pr或者联系我完善下这部分。

项目核心开发人员

Update

  • 2019-08-04/support pstree command: adb pstree

    |\
    |  1 root init
    |  |\
    |  |  567 root init subcontext u:r:vendor_init:s0 9
    |  |\
    |  |  568 root init subcontext u:r:vendor_init:s0 10
    |  |\
    |  |  569 root ueventd
    |  |\
    |  |  582 logd logd
    |  |\
    |  |  583 system qseecomd
    |  |   \
    |  |    606 system qseecomd
    |  |\
    |  |  585 system android.hardware.keymaster@4.0-service-qti
    |  |\
    |  |  586 system vndservicemanager /dev/vndbinder
    |  |\
    |  |  587 hsm citadeld
    ...
    

Screeshot

adb-device

adb-app

adb-app-so

adb-app-sign

adb-app-apk

adb-debug-ida

adb-debug-gdb

adb-debug-lldb

adb-frida

adb-xlog

About

Android逆向自动化脚本,一键开启调试(ida/gdb/lldb),一键查看app、设备信息,一键脱壳,一键开启frida等。32/64位均支持

License:MIT License


Languages

Language:Shell 80.6%Language:C 19.4%