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
The payload templates can be for example JSON structures that the payload needs to get added into.
pencode tries to read following directories on startup to determine available templates:
$HOME/.pencode/templates/
/etc/pencode/templates/
The template files which have a file extension .penc will be read into memory and the basename of the template file name will be added to pencode "action" list.
Within the payload template, a keyword #PENCODE# will be replaced with the payload read from stdin or passed from the previous step of the chain.
In the example use case in order to first base64 encode the payload, then add it to a JSON structure in a template, and to URL encode the resulting string:
We have a payload file: /home/username/.pencode/templates/json_template_example.penc, so a new "action" named json_template_example is added for pencode command.
Our command line would hence be: pencode base64 json_template_example urlencode
The payload templates can be for example JSON structures that the payload needs to get added into.
pencode
tries to read following directories on startup to determine available templates:$HOME/.pencode/templates/
/etc/pencode/templates/
The template files which have a file extension
.penc
will be read into memory and the basename of the template file name will be added topencode
"action" list.Within the payload template, a keyword
#PENCODE#
will be replaced with the payload read from stdin or passed from the previous step of the chain.In the example use case in order to first base64 encode the payload, then add it to a JSON structure in a template, and to URL encode the resulting string:
We have a payload file:
/home/username/.pencode/templates/json_template_example.penc
, so a new "action" namedjson_template_example
is added forpencode
command.Our command line would hence be:
pencode base64 json_template_example urlencode
Subtasks for this issue:
pencode
is run without arguments: Templating: List available templates when pencode is run without arguments #10The text was updated successfully, but these errors were encountered: