silentsignal / burp-piper

Piper Burp Suite Extender plugin
https://blog.silentsignal.eu/2020/03/27/unix-style-approach-to-web-application-testing/
GNU General Public License v3.0
115 stars 12 forks source link

Support for configuration snippets embeddable into scripts #8

Open dnet opened 4 years ago

dnet commented 4 years ago

When sharing useful scripts that can be used by Piper, it might help installing such a script if the YAML configuration could be embedded in a multiline comment or string. This way, the script itself would ignore it, but Piper could "install" the script by parsing the embedded YAML metadata.

An imaginary example:

-----BEGIN PIPER METADATA-----
Type: messageViewer
Placeholder: SCRIPTNAME

prefix: [python, SCRIPTNAME]
inputMethod: stdin
name: Widget frobnicator
filter:
  regex:
    pattern: ^widget
-----END PIPER METADATA-----