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

Editing of LC_ENCRYPTION_INFO_64 by Python API #1173

Open
NewDwarf opened this issue Feb 26, 2025 · 1 comment
Open

Editing of LC_ENCRYPTION_INFO_64 by Python API #1173

NewDwarf opened this issue Feb 26, 2025 · 1 comment

Comments

@NewDwarf
Copy link

I faced with the problem, LIEF python API doesn't write the changes related to the Mach-O LC_ENCRYPTION_INFO_64 load command.

app = lief.parse("HelloApp")
...
app.encryption_info.crypt_size = 622592    # set new crypt size value
app.write("HelloApp.mod") 

I would expect the changes, specific to LC_ENCRYPTION_INFO_64, are applied into the HelloApp.mod but this not happens.
This was tested on lief 0.16.4-10f74acf with python 3.9.6 on macOS sequoia.

@romainthomas
Copy link
Member

Ack

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

No branches or pull requests

2 participants