You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shellcraft templates are a really nice feature when needing to write custom shellcode but there is currently no easy way to do this.
The best way I can come up with is something like the following:
How could this look like? I'd imagine the custom templates tend to be architecture specific. So maybe a folder like ~/.config/pwntools/shellcraft which gets checked? Then you'd have to create the directory structure like amd64/linux/thething.asm which would be available through the ordinary API.
That wouldn't be very portable though when passing the exploit script around. Maybe something like the internal API but well defined to add arbitrary files to the shellcraft module is the way to go? Maybe even support to add them inline without requiring a file.
Feel free to contribute any shellcode templates you deem useful and missing:) What is the use case that made you want this feature?
yeah in my head something like the internal API but allowing arbitrary files
the main use case is if i want to use a template but slightly modify it for particular one-off situations/challenges but it wouldn't make sense to upstream
Shellcraft templates are a really nice feature when needing to write custom shellcode but there is currently no easy way to do this.
The best way I can come up with is something like the following:
But copying files to shellcraft's template folder and relying on internal interfaces to do this does not seem ideal
The text was updated successfully, but these errors were encountered: