-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to differentiate scripts' output #5113
Comments
Change ZestZapRunner to not set the script console writer as output writer if the script context writer is already set, while both end up in the script console the latter allows the core to intercept the writes. For the cases the context writer is not set the writes are not intercepted. Update changes in ZapAddOn.xml file. Related to zaproxy/zaproxy#5113 - Allow to differentiate scripts' output
Change ZestZapRunner to not set the script console writer as output writer if the script context writer is already set, while both end up in the script console the latter allows the core to intercept the writes. For the cases the context writer is not set the writes are not intercepted. Update changes in ZapAddOn.xml file. Related to zaproxy/zaproxy#5113 - Allow to differentiate scripts' output
Add a listener for script output, which provides the script and the output being written. Part of zaproxy#5113 - Allow to differentiate scripts' output
Add a listener for script output, which provides the script and the output being written. Part of zaproxy#5113 - Allow to differentiate scripts' output
Along with this change, what do you think about using the main Output panel for script outputs, and removing the existing output panel within the Script console? |
I'm torn about it. Part of me says we should differentiate more (tabs for scripts and their output). On the flip side reducing components is also good (it's 2023 if we can differentiate output then people can process externally if needed or we add some sort of optional/on-the-fly filtering functionality). |
That wouldnt work for people using ZAP in "Full Layout" mode. |
From zaproxy/community-scripts#127, e.g.:
ZAP should allow to differentiate the scripts' output instead of requiring the users to do that manually, currently ZAP outputs to the same UI component without any distinction.
Add-on:
Script Console
It also requires core changes to let the Script Console know which script is writing to the output.
The text was updated successfully, but these errors were encountered: