objection 使用方法


啟動:

objection -g com.android.settings explore

//查看環境
env

//列舉so文件
memory list modules
//列舉so文件導出方法
memory list exports libA3AEECD8.so
//將結果寫入文件中
memory list exports libA3AEECD8.so --json /root/test.json
//查找可以hook的類
android hooking list classes
//查找帶關鍵詞的類
android hooking search classes display
//查看對應類有哪些方法
android hooking list class_methods com.android.settings.DisplaySettings
//生產hook類的代碼
android hooking generate simple
d.d.a.g.c
//hook 類的所以方法
android hooking watch class d.d.a.g.c
android hooking watch class_method com.xxx.xxx.setUrl --dump-args --dump-return
// 幫助類
help
android hooking watch class
//禁用sslpinning
android sslpinning disable
//搜索類的實列
android heap search instances com.example.httptest.MainActivity
android heap execute 0x1fc6 getMethod
//搜索activties
android hooking list activities
android intent launch_activity com.example.httptest.MainActivity
//搜索類中的方法
android hooking search classes com.example.httptest.MainActivity
android hooking list class_methods com.example.httptest.MainActivity$1
android hooking list class_methods com.example.httptest.MainActivity$ChangeOrientation

//內存搜索/修改
memory search "64 65 78 0a 30 33 35 00"
memory search "99999999999" --string
memory write 0x130b4060 "99999999999" --string

//輸出內容保存到文件
objection -g cn.xxx.xxxx  run android hooking list classes > abc.log

//查看/結束任務
jobs list
jobs kill 1qdu22kih04



 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM