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

Config is missing #127

Open
A-Stupu opened this issue Oct 11, 2024 · 4 comments
Open

Config is missing #127

A-Stupu opened this issue Oct 11, 2024 · 4 comments

Comments

@A-Stupu
Copy link

A-Stupu commented Oct 11, 2024

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

@skydeska
Copy link

use : python main.py -c src\config.py

It's work for me

@grappas
Copy link

grappas commented Dec 18, 2024

@skydeska

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
Same result.

What's your output:

pip list
python --version

@Hamsterarsch
Copy link

@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

@ablbd
Copy link

ablbd commented Mar 4, 2025

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.

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

5 participants