-
Notifications
You must be signed in to change notification settings - Fork 2
ScriptConsole
The ZAP Scripting Console is a plugable extension that can be added to the latest version of ZAP.
It allows you to access internal ZAP data structures dynamically using any scripting language that supports JSR 223, including
- ECMAScript / Javascript (built in)
- Groovy http://groovy.codehaus.org/
- Python http://www.jython.org
- Ruby - http://jruby.org/
- and many more...
In order to install the Script Console
- Download the extension jar from the zap-extensions project
- Move the jar into the 'plugins' directory where ZAP is installed
- Restart ZAP
Note that only ECMAScript (Javascript) support is built in - for other languages you will need to download the relevant jar(s), copy them into the 'lib' directory and restart ZAP.
You will now have access to the Script Console as seen here (click for the full size image):
For some examples on what you can do in the console please see: InternalDetails.
And for full details of all of the classes see the JavaDocs or (of course) the source code.
Any problems, get in touch via the developer-group.
You may find it difficult to get access to some of the ZAP data structures as some of it is not as accessible as it should be. If so then please let us know - we are committed to exposing anything that could be useful.
Please tell us if you develop any useful scripts and we'll publish them (with full credit of course).
But be aware that scripts run with the same permissions as ZAP, so do not run any scripts that you do not trust!