sensepost / objection

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

启动objection时候,我打印frida的基本信息报错,但是打印env没有报错 #535

Open L-kook opened 2 years ago

L-kook commented 2 years ago

com.android.settings on (Android: 8.0.0) [usb] # frida An unexpected internal exception has occurred. If this looks like a code related error, please file a bug report! 'filename'

Python stack trace: Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/objection/console/repl.py", line 371, in start_repl self.run_command(document) File "/usr/local/lib/python3.9/dist-packages/objection/console/repl.py", line 185, in run_command exec_method(arguments) File "/usr/local/lib/python3.9/dist-packages/objection/commands/frida_commands.py", line 38, in frida_environment ('Script Filename', frida_env['filename']), KeyError: 'filename'

CDuPlooy commented 2 years ago

How did you install objection?

saucer-man commented 2 years ago

me too,I alse meet this problem,and I install objection bypip3 install objection

Irhtn commented 2 years ago

frida版本过高,我之前用的python 3.10和frida15.1.17,切换到了python 3.7,frida=14.2.18后可以正运行

leonjza commented 2 years ago

Make sure you are running the latest version of objection. Since at least v 1.11.0 that key is no longer available. Update with pip3 install -U objection.

leonjza commented 2 years ago

Apologies, I spotted the bug now! Thanks!

leonjza commented 2 years ago

Actually, I'm confused by this one. We're referencing the key here, and even if it were null, it's populated here. Will debug.