Skip to content

frida.InvalidOperationError: script has been destroyed #5

Description

@owiofwm2i

in frizzer/fuzzer.py file FridaFuzzer.load_script crashed on self.frida_script.prepare()
it shows

[+] Project: {'fuzzer': {'log_level': 3}, 'target': {'process_name': 'bluetoothd', 'frida_script': 'harness.js', 'remote_frida': True, 'recv_timeout': 0.1, 'fuzz_in_process': True, 'modules': ['/usr/sbin/bluetoothd']}}
[+] Loading script: ./harness.js
Traceback (most recent call last):
  File "../../frizzer/fuzzer.py", line 665, in <module>
    main()
  File "../../frizzer/fuzzer.py", line 647, in main
    if not fuzzer.attach():
  File "../../frizzer/fuzzer.py", line 519, in attach
    self.load_script()
  File "../../frizzer/fuzzer.py", line 150, in load_script
    self.frida_script.prepare()
  File "/Users/freedom/Desktop/MyCodes/toothpicker/venv/lib/python3.8/site-packages/frida/core.py", line 468, in method
    return script._rpc_request('call', js_name, args, **kwargs)
  File "/Users/freedom/Desktop/MyCodes/toothpicker/venv/lib/python3.8/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/Users/freedom/Desktop/MyCodes/toothpicker/venv/lib/python3.8/site-packages/frida/core.py", line 400, in _rpc_request
    raise result[2]
frida.InvalidOperationError: script has been destroyed

here is my frida-compile commands

frida-compile ../projects/sample_magicpairing/magic_pairing.js -o ../projects/sample_magicpairing/harness.js

OS version: macos 11.4 with m1 chip
frida version:15.1.1 and frida ios also 15.1.1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions