On 01/04/2022 16:52, Venkata Subrahmanyam wrote:
> Also, if I want disable timestamp disclosure specifically, how do I go
> about doing that? I am currently setting policy threshold as below:
>
> Zap.ascan.set_policy_alert_threshold(id=10096, scanpolicyname=default
> policy, alertthreshold = OFF)
>
> Is this the right api hook to use for disabling one alert alone?
>
> On Fri, 1 Apr, 2022, 01:29 kingthorin+owaspzap, <
kingt...@gmail.com>
> wrote:
>
>> You can't do it by severity.
>> Your best bet is likely to create the active scan policy you want via ZAP
>> desktop then save it, and import/use it in your automation.
>>
>> On Thursday, March 31, 2022 at 2:13:19 PM UTC-4
>>
venkata.su...@associates.scit.edu wrote:
>>
>>> Hey folks,
>>>
>>> I am trying to remove all of the informational scan rules from
>>> initiatingt using Python. Do I remove them by ID one by one or can I remove
>>> them by severity? Tried few options zap.ascan.remove_scan and
>>> zap.ascan.disable_scanners(ids="10096") but not working
>>>
>>> Also, how do I list all the scan rules currently enabled? Unable to find
>>> the right API hook.
>>>
>>> Venkat
>>>