summaryrefslogtreecommitdiffstats
path: root/sploit/rev/gadget.py
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2024-05-16 14:31:57 -0400
committerMalfurious <m@lfurio.us>2025-01-02 02:50:40 -0500
commit675aea7d480c72e3b60ad1a41ff97f4e8893621f (patch)
treec6f801f8c829f0331e7f5895f7d185849a968723 /sploit/rev/gadget.py
parent778c0ca5c319a4dd2b34eae62062846e572a2411 (diff)
downloadnsploit-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/rev/gadget.py')
0 files changed, 0 insertions, 0 deletions