Skip to content

TypeError: not a function with Frida 17.0.7 #45

@rmelotte

Description

@rmelotte

Using fridump with frida 17.0.7 leads to the following error:

$ python3 ./fridump.py --usb -s Chromium 
/home/rme/builds/fridump/dumper.py:24: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if diff is 0:
/home/rme/builds/fridump/dumper.py:36: SyntaxWarning: "is not" with a literal. Did you mean "!="?
  if diff is not 0:

        ______    _     _
        |  ___|  (_)   | |
        | |_ _ __ _  __| |_   _ _ __ ___  _ __
        |  _| '__| |/ _` | | | | '_ ` _ \| '_ \
        | | | |  | | (_| | |_| | | | | | | |_) |
        \_| |_|  |_|\__,_|\__,_|_| |_| |_| .__/
                                         | |
                                         |_|
        
Current Directory: /home/rme/builds/fridump
Output directory is set to: /home/rme/builds/fridump/dump
Creating directory...
Starting Memory dump...
/home/rme/builds/fridump/./fridump.py:119: DeprecationWarning: Script.exports will become asynchronous in the future, use the explicit Script.exports_sync instead
  agent = script.exports
Traceback (most recent call last):
  File "/home/rme/builds/fridump/./fridump.py", line 120, in <module>
    ranges = agent.enumerate_ranges(PERMS)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rme/builds/frida-tools/venv/lib/python3.11/site-packages/frida/core.py", line 180, in method
    return script._rpc_request(request, data, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/rme/builds/frida-tools/venv/lib/python3.11/site-packages/frida/core.py", line 86, in wrapper
    return f(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^
  File "/home/rme/builds/frida-tools/venv/lib/python3.11/site-packages/frida/core.py", line 497, in _rpc_request
    raise result.error
frida.core.RPCException: TypeError: not a function
    at enumerateRanges (/script1.js:5)
    at call (native)
    at handleRpcMessage (/frida/runtime/message-dispatcher.js:39)
    at handleMessage (/frida/runtime/message-dispatcher.js:25)

Has anyone else noticed the same issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions