sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.33k stars 840 forks source link

objection can't connect to frida-server with wifi but usb works #468

Open geekgu opened 3 years ago

geekgu commented 3 years ago

geekgu:Downloads james$ adb shell dipper:/ $ su - root dipper:/ # cd /data/local/tmp/
dipper:/data/local/tmp # ./fs1500arm64 -l 0.0.0.0:9999 & dipper:/data/local/tmp # ps -ef | grep fs1500arm64
root 11442 11336 6 21:49:43 pts/3 00:00:00 fs1500arm64 -l 0.0.0.0:9999 root 11462 11336 2 21:49:48 pts/3 00:00:00 grep fs1500arm64


(venv3) geekgu:hack james$ frida-ps -ai -H 192.168.31.249:9999 PID Name Identifier
6413 Maaagisk ypklw.shcwc
5809 个性主题 com.android.thememanager
6063 全球上网 com.miui.virtualsim
2620 天气 com.miui.weather2
3106 小爱同学 com.miui.voiceassist
3215 手机管家 com.miui.securitycenter
7762 相机 com.android.camera
5522 设置 com.android.settings
6685 豌豆荚 com.wandoujia.phoenix2

(venv3) geekgu:hack james$ objection -d -N -h 192.168.31.249 -p 9999 -g 'com.miui.voiceassist' explore [debug] Agent path is: /Users/james/project/hack/venv3/lib/python3.7/site-packages/objection/agent.js [debug] Injecting agent... Using networked device @192.168.31.249:9999 [debug] Attempting to attach to process: com.miui.voiceassist [debug] Process attached! Traceback (most recent call last): File "/Users/james/project/hack/venv3/bin/objection", line 10, in sys.exit(cli()) File "/Users/james/project/hack/venv3/lib/python3.7/site-packages/click/core.py", line 764, in call

dipper:/data/local/tmp # kill -9 11442 dipper:/data/local/tmp # ./fs1500arm64 &
[2] 12010 [1] - Killed ./fs1500arm64 -l 0.0.0.0:9999 dipper:/data/local/tmp # ps -ef | grep fs1500arm64
root 12010 11336 4 21:54:53 pts/3 00:00:00 fs1500arm64 root 12049 11336 3 21:55:03 pts/3 00:00:00 grep fs1500arm64


(venv3) geekgu:hack james$ objection -d -g 'com.miui.voiceassist' explore [debug] Agent path is: /Users/james/project/hack/venv3/lib/python3.7/site-packages/objection/agent.js [debug] Injecting agent... Using USB device MI 8 [debug] Attempting to attach to process: com.miui.voiceassist [debug] Process attached! Agent injected and responds ok!

 _   _         _   _

| ||| | ||| | . | . | | -| | | | . | | |__|| |||| ||||| ||(object)inject(ion) v1.11.0

 Runtime Mobile Exploration
    by: @leonjza from @sensepost

[tab] for command suggestions com.miui.voiceassist on (Xiaomi: 9) [usb] #