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

Cache assembler output #2312

Open
peace-maker opened this issue Nov 29, 2023 · 0 comments · May be fixed by #2358
Open

Cache assembler output #2312

peace-maker opened this issue Nov 29, 2023 · 0 comments · May be fixed by #2358
Labels

Comments

@peace-maker
Copy link
Member

Instead of reassembling the same instructions again in asm, cache the result locally to speed up succedent calls with the same input.

peace-maker added a commit to peace-maker/pwntools that referenced this issue Feb 25, 2024
To speed up repeated runs of an exploit, cache the assembled output.

Use a sha1 hash of the shellcode as well as relevant context values
like `context.arch` and `context.bits` to see if the exact same
shellcode was assembled for the same context before.

Fixes Gallopsled#2312
@peace-maker peace-maker linked a pull request Feb 25, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant