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

context.cyclic_size doesn't update when using context.binary = ELF('./prog') #2407

Open
mosheDO opened this issue May 15, 2024 · 0 comments
Open

Comments

@mosheDO
Copy link

mosheDO commented May 15, 2024

when using context.binary it changes the context.bit from 4 to 8 in case the binary is 64 bit
but the context.cyclic_size doesn't change from 4 to 8 as will
in my opinion this is a bug

In [1]: from pwn import *

In [2]: context.cyclic_size
Out[2]: 4

In [3]: context.bits
Out[3]: 32

In [4]: context.binary = ELF('./task_patched', checksec=False)

In [5]: context.cyclic_size
Out[5]: 4

In [6]: context.bits
Out[6]: 64

Adding the code here should help
self.cyclic_size = binary.bytes

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

1 participant