-
Notifications
You must be signed in to change notification settings - Fork 124
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
Config is missing #127
Comments
use : python main.py -c src\config.py It's work for me |
python3 main.py -c src/config.py [2024-12-18 18:22:42.488205] Waiting for device
[2024-12-18 18:22:57.289127] Found device = 0e8d:0003
Traceback (most recent call last):
File "main.py", line 237, in <module>
main()
File "main.py", line 42, in main
config, serial_link_authorization, download_agent_authorization, hw_code = get_device_info(device, arguments)
File "main.py", line 166, in get_device_info
config = Config().from_file(config_file, hw_code)
File "/home/grappas/instalancje/bypass_utility/src/config.py", line 25, in from_file
config = json5.load(config)
File "/home/grappas/instalancje/bypass_utility/.venv/lib/python3.8/site-packages/json5/lib.py", line 44, in load
return loads(s, encoding=encoding, cls=cls, object_hook=object_hook,
File "/home/grappas/instalancje/bypass_utility/.venv/lib/python3.8/site-packages/json5/lib.py", line 80, in loads
raise ValueError(err)
ValueError: <string>:1 Unexpected "i" at column 1 I've tried 3.12, 3.9 and 3.8 What's your output: pip list
python --version |
@grappas In addition to downloading this repo, you need to download the exploit repo which contains the default config + required payloads. The default config and the payload folder need to be in the same directory as main.py |
It seams to be an error in your default_config.json5 file. Either try to locate the error by opening it in a standard text editor or re-download the package and replace the json file. |
After calling the main I get "RuntimeError("Default config is missing")" at line 37 even if in the dir src there is a file config.py
The text was updated successfully, but these errors were encountered: