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

having trouble from my macbook (please see provided code) #65

Open
toughguystudios opened this issue Dec 26, 2023 · 3 comments
Open

having trouble from my macbook (please see provided code) #65

toughguystudios opened this issue Dec 26, 2023 · 3 comments

Comments

@toughguystudios
Copy link

toughguystudios commented Dec 26, 2023

UPDATE: I downgraded (I believe) my version of protobuf and this is the response I am now getting. I'm using a Macbook btw:

Traceback (most recent call last):
File "/Users/dumper-main/dump_keys.py", line 14, in
device = frida.get_usb_device()
^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/frida/init.py", line 137, in get_usb_device
return get_device_manager().get_usb_device(timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/frida/core.py", line 1178, in get_usb_device
return self.get_device_matching(lambda d: d.type == "usb", timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/frida/core.py", line 86, in wrapper
return f(*args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/frida/core.py", line 1201, in get_device_matching
return Device(self._impl.get_device_matching(lambda d: predicate(Device(d)), raw_timeout))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
frida.InvalidArgumentError: device not found

Hi, I ran the script and received the following response, Can you tell me what it means/what went wrong and how to resolve, Thanks:

Ryans-MBP:dumper-main python3 dump_keys.py
Traceback (most recent call last):
File "/Users/dumper-main/dump_keys.py", line 6, in
from Helpers.Scanner import Scan
File "/Users/dumper-main/Helpers/Scanner.py", line 7, in
from Helpers.wv_proto2_pb2 import SignedLicenseRequest
File "/Users/dumper-main/Helpers/wv_proto2_pb2.py", line 33, in
_descriptor.EnumValueDescriptor(
File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/google/protobuf/descriptor.py", line 789, in new
_message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

@chengnan049
Copy link

Try this #59 (comment)

@toughguystudios
Copy link
Author

Thank you

@yhunlu
Copy link

yhunlu commented Mar 10, 2024

use this Pipfile:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
frida = ""
pycryptodome = "
"
protobuf = "==3.19.0"

[dev-packages]

[requires]
python_version = "3.10"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants