Thanks a lot, you made my life easy. I am extremely sorry not understanding your inputs correctly. Just need one confirmation:
zap.spider.scan(target)
print('Spider completed')
print ('ajax-spider Scanning target %s' % target)
zap.ajaxSpider.scan(target)
zap.ascan.scan(target, recurse=True, inscopeonly=True)
and other commands till to get reports which i am able to succesfully generate.
1. With above ascan.scan, is it considered the default policy as i have not mentioned about using default policy in my script. Please confirm.
2. By using below api calls in my script, should i be able to get scan id and progress of scanning.
print (zap.ascan.scans())
scanid = zap.ascan.scans()
zap.ascan.scanProgress(scanid)
Please paradon me, i am new to scripting if using wrong syntax and all.