Open peace-maker opened 5 months ago
I think we should use the preprocessed assembly and full assembler command in order to avoid stale bugs on pwntools updates
Yeah, that's fine too. I wanted to avoid running any processes. But one instead of several is still an improvement if it prevents subtle bugs in the future.
"The assembler command" is tricky though due to the multi step approach. Building the command line arguments calls which
too to find the binutils tools.
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
andcontext.bits
to see if the exact same shellcode was assembled for the same context before.Fixes #2312