zaproxy / zaproxy

The ZAP by Checkmarx Core project
https://www.zaproxy.org
Apache License 2.0
12.72k stars 2.27k forks source link

ZAP add-on generator #519

Open zapbot opened 9 years ago

zapbot commented 9 years ago
When creating an add-on theres a load of boilerplate code to write.
I cut and paste it from other add-ons, but its still time consuming.
One option would be to create an program (or even an add-on;) that generated addons.
So the user would be presented with a selection of choices, eg:
This addon needs:
[ ] an info tab (the bottom one)
[ ] a work tab (the Request/Response one)
[ ] a selection tab (like the Sites tree)
This add should listen for events:
[ ] Session changed
etc
It could even prompt for further info, like which of various templates to use for the
tabs, right click options etc etc

It could then generate the required code, and maybe even update the relevant build
file and even build the skeleton add-on.

Original issue reported on code.google.com by psiinon on 2013-02-14 13:32:22

varshav21 commented 6 years ago

Hi I'd like to take up this project as part of Gsoc. Is anyone already working on it?

kingthorin commented 6 years ago

There was some work done, see this thread for info: https://groups.google.com/forum/#!searchin/zaproxy-develop/generator%7Csort:date/zaproxy-develop/7U0oA8S58Ww/F9I2xVR3AwAJ

I don't think it got finished though.

varshav21 commented 6 years ago

I've been researching this problem and have discovered many helpful links. I'm creating an add on that generates skeleton add ons. How should I approach the issue and what are the options I should offer?

psiinon commented 6 years ago

I'd definitely have a look at https://github.com/blay12cedric/gen - that was showing a lot of promise, and so it would be good to build on that. Maybe also start a list of the options that you think it should support, and then we can comment on those and add to them?