Start the line with #
Best regards.
On 06/08/2021 12:05, Bhoj Raj Joshi wrote:
> Wow, that is what I was looking for, thanks a lot!
>
> I'm getting the below diff in the xml hierarchy, so I believe that the
> config param with *"-z"* flag is: "*-config view.mode=protect*".
>
> XML diff snippet:
> <config>
> ...
> <view>
> <locale>en_GB</locale>
> ...
> *<mode>protect</mode>*
> ...
> I can confirm the same in the zap.out logs:
> *1285 [main] INFO org.parosproxy.paros.common.AbstractParam - Setting
> config view.mode = protect was null*
>
> However, I noticed one additional property in the logs that was meant to be
> a comment, any idea how to put comments in the config prop file?
> *1285 [main] INFO org.parosproxy.paros.common.AbstractParam - Setting
> config -- = Common properties was null*
>>> As with the ZAP desktop, we can set the required scan mode by going to *Edit->ZAP
>>> mode->(select the one from: Safe | Protected | Standard | ATTACK)*, how
>>> can I set the same with ZAP docker?
>>>
>>> I know how to pass config params using *"-z" *flag, but can someone tell
>>> me what key and value I have to pass with that flag for Protected mode, or
>>> for all other modes for that matter?
>>>
>>> Additionally, it would be great if there is any link that lists all the
>>> potential key/values that can be passed with *"-z"* flag in the ZAP