sensepost / objection

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

An unexpected internal exception has occurred. If this looks like a code related error, please file a bug report #643

Open macleouc opened 12 months ago

macleouc commented 12 months ago

When launching the Objection script, it reports an error stating that "script has been destroyed".

root@-System-Product-Name:/mnt/almacen/# objection -g com.myapp_pe.dev explore Using USB device Redmi 7 Agent injected and responds ok!

 _   _         _   _

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

 Runtime Mobile Exploration
    by: @leonjza from @sensepost

[tab] for command suggestions com.myappt_pe.dev on (xiaomi: 10) [usb] # android sslpinning disable An unexpected internal exception has occurred. If this looks like a code related error, please file a bug report! script has been destroyed

Python stack trace: Traceback (most recent call last): File "/usr/local/lib/python3.10/dist-packages/objection/console/repl.py", line 371, in start_repl self.run_command(document) File "/usr/local/lib/python3.10/dist-packages/objection/console/repl.py", line 185, in run_command exec_method(arguments) File "/usr/local/lib/python3.10/dist-packages/objection/commands/android/pinning.py", line 26, in android_disable api.android_ssl_pinning_disable(_should_be_quiet(args)) File "/usr/local/lib/python3.10/dist-packages/frida/core.py", line 179, in method return script._rpc_request("call", js_name, args, *kwargs) File "/usr/local/lib/python3.10/dist-packages/frida/core.py", line 86, in wrapper return f(args, **kwargs) File "/usr/local/lib/python3.10/dist-packages/frida/core.py", line 491, in _rpc_request raise result.error frida.InvalidOperationError: script has been destroyed

com.bbva.nxt_peru.dev on (xiaomi: 10) [usb] # exit

Similar issues

639

root@System-Product-Name:/mnt/almacen/# objection --debug -g com.myapp_pe.dev explore [debug] Agent path is: /usr/local/lib/python3.10/dist-packages/objection/agent.js [debug] Injecting agent... Using USB device Redmi 7 [debug] Attempting to attach to process: com.myapp_pe.dev [debug] Unable to find process: com.myapp_pe.dev, attempting spawn [debug] PID 8605 spawned, attaching... [debug] Resuming PID 8605 Agent injected and responds ok!

Environment (please complete the following information):