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
Labels
Comments
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Instead of reassembling the same instructions again in
asm
, cache the result locally to speed up succedent calls with the same input.The text was updated successfully, but these errors were encountered: