How to debug OWASP ZAP's ascan-rules in Eclipse
※当サイトにはプロモーションが含まれています。
公開日:
更新日:
I’ve tried to add some pieces of information to Add-on Debugging especially for ascan-rules on this entry.
These steps could be applied to other add-ons. For more details, read the build.xml in zap-extensions.
-
Have both zaproxy and zap-extensions open in Eclipse
-
package and deploy ascan-rules in the
zaproxy/src/pluginusing the ant build of zap-extensionsexecute the following commands in terminal
$ cd your/zap-extensions/build $ ant -Djavac.debug=true deploy-ascanrules #compile with debug symbols -
Refresh the zaproxy project
- Right click zaproxy project and select ‘Refresh’
-
Build the zaproxy project
- Right click zaproxy project and select ‘Build Project’
-
Run ZAP in debug mode
-
Put your breakpoint anywhere in the add-on code
-
Execute your scenario
-
When the breakpoint is reached, you may be prompted to define where source are located. Select java project and “zap-extensions”
-
That’s all.
広告
