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

opscrypto.py encrypt won't work #88

Open
Tintarul opened this issue Oct 9, 2023 · 1 comment
Open

opscrypto.py encrypt won't work #88

Tintarul opened this issue Oct 9, 2023 · 1 comment

Comments

@Tintarul
Copy link

Tintarul commented Oct 9, 2023

First issue: encrypt uses /settings.xml instead of /Setting.xml
Second Issue:

C:/my/path>py opscrypto.py encrypt C:/my/path/extracted
Oneplus CryptTools V1.4 (c) B. Kerler 2019-2021
----------------------------

Encrypting prog_firehose_ddr.elf, pos=0
Traceback (most recent call last):
  File "C:/my/path/opscrypto.py", line 748, in <module>
    main()
  File "C:/my/path/opscrypto.py", line 677, in main
    item, pos = encryptitem(key, item, directory, pos, wf)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:/my/path/opscrypto.py", line 504, in encryptitem
    assert item.attrib["FileOffsetInSrc"] == str(start), (item, item.attrib["FileOffsetInSrc"], str(start))
           ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
KeyError: 'FileOffsetInSrc'
@snkj22
Copy link

snkj22 commented Dec 26, 2023

Traceback (most recent call last):
File "D:\enc\opscrypto.py", line 748, in
main()
File "D:\enc\opscrypto.py", line 685, in main
item, pos = copyitem(item, directory, pos, wf)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\enc\opscrypto.py", line 534, in copyitem
assert item.attrib["FileOffsetInSrc"] == str(start), (item, item.attrib["FileOffsetInSrc"], str(start))
AssertionError: (<Element 'program' at 0x00000263F9A5FBF0>, '6303712', '5820663')

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

2 participants