zaproxy/community-scripts

Break example

Naramsim opened this issue · 2 comments

Hi, it would be useful to add an example on how to use breaks (breakpoints).

https://github.com/zaproxy/zaproxy/wiki/ApiGen_break

Thats non tricky - you essentially need to provide your own interface, either graphical or command line.
It can definitely be done, but possibly not in a simple example.
Do you have a need to do this? If so what are you trying to do and we might be able to offer more advice...

I basically need to stop the traffic when I intercept a request, in order to clear the cookies/relaunch the browser to perform other tasks (programmatically).

So an example could be: Visit login page with selenium, submit login, intercept login request, stop traffic, restart browser and clear cookies, resend login request without a parameter (ie: Referer), check response, end (This procedure should be automatic, nothing manual)