Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
macleouc opened this issue Oct 6, 2023 · 0 comments
Labels
freshissue Default label for new, untriaged issues.

Comments

@macleouc
Copy link

macleouc commented Oct 6, 2023

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):

  • Device: [Xiaomi Redmi 7]
  • OS: [Android 10]
  • Frida Version [16.1.4]
  • Objection Version [1.11.0]
@macleouc macleouc added the freshissue Default label for new, untriaged issues. label Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
freshissue Default label for new, untriaged issues.
Projects
None yet
Development

No branches or pull requests

1 participant