Hi all,
in the documentation of "zap-api-python" I find this example (
https://github.com/zaproxy/zap-api-python/blob/master/doc/example.rst):
...
zap = ZAPv2()
zap.urlopen(target)
scanid1 = zap.spider.scan(target)
...
# Wait for passive scanning to complete
while (int(zap.pscan.records_to_scan) > 0):
print ('Records to passive scan : ' + zap.pscan.records_to_scan)
time.sleep(2)
...
print ('Passive scanning complete')
scanid2 = zap.ascan.scan(target)
alerts = zap.core.alerts()
....
In the second block of code it waits for passive scan to complete but I don't understand where this passive scan is started.
There is no a "zap.pscan.scan(target)" command.
Is this an error?
And why there there are both an active and a passive scan, aren't they alternative?
Thank you very much
Claudio