diff options
author | Malfurious <m@lfurio.us> | 2024-05-16 14:31:57 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2025-01-02 02:50:40 -0500 |
commit | 675aea7d480c72e3b60ad1a41ff97f4e8893621f (patch) | |
tree | c6f801f8c829f0331e7f5895f7d185849a968723 /sploit/payload/rop.py | |
parent | 778c0ca5c319a4dd2b34eae62062846e572a2411 (diff) | |
download | nsploit-675aea7d480c72e3b60ad1a41ff97f4e8893621f.tar.gz nsploit-675aea7d480c72e3b60ad1a41ff97f4e8893621f.zip |
payload: Separate length and bytes calculations
Previously, the len(payload) operation required the generation of the
full payload binary content, in order to count how many bytes long it
was. This is no longer the case, as there are opportunities for
optimizations, primarily regarding fixed-length dynamic payload entries
where we can simply grab the size parameter without having to generate a
buffer.
In addition to potential speedups, this fix also allows the user to
insert PayloadEntry pointers for fields which are not yet present in the
payload being built (ie: whenever the pointer is to exist before the
pointed-to data). Whereas previously, the inability to generate the
ill-formed pointer would break length calculations necessary to insert
additional data.
Signed-off-by: Malfurious <m@lfurio.us>
Diffstat (limited to 'sploit/payload/rop.py')
0 files changed, 0 insertions, 0 deletions