I've just added a new mode to ZAP - attack mode :)
In this mode ZAP will automatically active scan all new nodes that are in scope as they are discovered.
This could be via proxied requests or either of the spiders.
So it wont actually do anything unless you define one or more contexts that are in scope.
Theres a new thread that gets notified of all new nodes added to the sites tree, and if they are in scope then it adds them to a queue of nodes to be attacked.
Theres also a footer count which shows you how many nodes are in the queue.
There are a couple of relevant options (which do have some help text;) but I wont explain them now - if they dont make sense then let me know and I'll see if I can make them clearer.
One of them uses a new dialog that allows you to get ZAP to remember your decision and not be prompted again, so thats also available for other code to use.
Right now it will just use the 'default' scan profile.
However I'm also working on improving the scan profiles, and will introduce a new 'attack scan profile' which will be used for this mode.
This will allow you to tweak exactly what rules get run in this mode independently of the rules that get run at any other time.
At the moment its just labelled as "ATTACK mode" - I'm wondering if we should make it even more obvious, eg by adding a 'flashing light' animated gif, or changing the background or ???
Any questions or issues then let me know..
Simon