Enable/disable passive scripts through config file

26 views
Skip to first unread message

Timeless - Born of Indian wisdom

unread,
Mar 12, 2023, 1:45:31 PM3/12/23
to OWASP ZAP User Group
Hi,

Can we enable/disable passive scripts through config file for automation purposes.

Thanks,

Muhammad Zubair

unread,
Mar 13, 2023, 2:20:16 AM3/13/23
to OWASP ZAP User Group
Yes, it is possible to enable or disable passive scripts through a configuration file for automation purposes.

Passive scripts are typically used in network security and monitoring tools to capture and analyze network traffic. These scripts can be enabled or disabled depending on the specific needs of the network and the tasks being performed.

To enable or disable passive scripts through a configuration file, you will need to first identify the specific scripts that you want to modify. This can usually be done by reviewing the documentation for the network security or monitoring tool you are using.

Once you have identified the scripts you want to modify, you can typically edit the configuration file for the tool and set a flag or option that will enable or disable the script. The specific syntax and format of the configuration file will depend on the tool you are using.

It's important to note that when enabling or disabling passive scripts, you should carefully consider the potential impact on your network security and monitoring capabilities. Disabling certain scripts may limit your ability to detect and respond to potential security threats or network issues.

thc...@gmail.com

unread,
Mar 13, 2023, 7:18:43 AM3/13/23
to zaprox...@googlegroups.com
Hi.

What configuration file? Are you referring to Automation Framework?
https://www.zaproxy.org/docs/desktop/addons/script-console/automation/

If you are referring to the ZAP's config.xml file you can do that but
you need to know the index of the script in the config:
https://www.zaproxy.org/faq/how-do-you-find-out-what-key-to-use-to-set-a-config-value-on-the-command-line/

Best regards.

Timeless - Born of Indian wisdom

unread,
Mar 15, 2023, 7:06:43 AM3/15/23
to OWASP ZAP User Group
Hi,

Thanks for the reply
I am trying to use this passive scrips for asvs testing through command line or cicd, but not sure of how to enable and disable them from command line or through ZAP's config.xml
Screenshot 2023-03-15 at 4.34.54 PM.png
Reply all
Reply to author
Forward
0 new messages