官方檔案地址:https://github.com/sensepost/objection/wiki/Screenshots
1.安裝
pip install objection
2.安卓用法
命令查看
objection --help
objection
#前提frida-server的啟動
objection -g 包名 explore
#指定ip和埠的連接
objection -N -h xx.xx.xx.xxx -p xxx -g packageName explore
Spawn方式Hook
#為了避免錯過hook時機,采用附加模式,在objection 啟動時就注入app
objection -g packageName explore --startup-command "你要執行的oc命令"
hook指定類
android hooking watch class 包名.類名 # hook類的所有方法
android hooking watch class_method 包名.類名.方法 # 默認會Hook方法的所有多載
android hooking watch class_method 包名.類名.方法 "引數1,引數2" # 如果只需hook其中一個多載函式 指定引數型別 多個引數用逗號分隔
#其中引數
–-dump-args: 顯示引數;
--dump-return: 顯示回傳值;
--dump-backtrace: 顯示堆疊
#設定回傳值(只支持bool型別)
android hooking set return_value com.xxx.xxx.methodName false
#Spawn方式hook時候列印引數
objection -g packageName explore --startup-command "android hooking watch class_method '類名' --dump-args --dump-return --dump-backtrace"
android hooking list classes # 列出記憶體中所有的類
android hooking list class_methods 包名.類名 # 列出類的所有方法
android hooking search classes 包名包含的關鍵詞 # 在記憶體中所有已加載的類中搜索包含特定關鍵詞的類
android hooking list activities #列舉activity
android intent launch_activity [activity_class] #啟動activity
android hooking list services #列舉services
android intent launch_service [services_class] #啟動services
android heap search instances 包名.類名 --fresh # 搜索堆中的實體
android heap execute 地址(hashcode的地址) 方法名 # 呼叫實體的方法
android sslpinning disable #屏蔽SSL 校驗, 使得ssl pinning失效
Memory 指令
memory list modules # 查看記憶體中加載的庫
memory list exports libssl.so #查看庫的匯出函式
memory list exports libart.so --json /root/libart.json #將結果保存到json檔案中
memory search --string --offsets-only #搜索記憶體
memory search "00 00 00 00 00 00 00"
任務管理
#查看任務串列
jobs list
#關閉任務
jobs kill jobid
3.ios相關指令
參考檔案:https://nosec.org/home/detail/2192.html
查看運行的程式
frida-ps -Uia
連接上應用
objection --gadget "com.apple.AppStore" explore
禁用SSL pinning功能
ios sslpinning disable
監聽類呼叫的方法
比如"ProfileHomeViewController"
ios hooking watch classProfileHomeViewController
Hook oc方法
ios hooking watch method"-[ProfileHomeViewController loginOrRegisterButtonTap]"
儲keychain的內容
ios keychain dump #就能轉儲keychain的內容,有時,我們能夠從中發現應用程式存盤的敏感資訊,
繞過越獄檢測
ios jailbreak disable
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/542199.html
標籤:其他
下一篇:BC4-牛牛學說話之-浮點數
