stage('AWVS Scnanning') { //添加扫描任务 def responseAddTask = httpRequest customHeaders: [[maskValue: false, name: 'X-Auth', value: awvs_key], [maskValue: false, name: 'content-type', value: 'application/json']], httpMode: 'POST', requestBody: '{"address":"' + awvsscan_address + '","description":"' + awvsscan_description + '","criticality":"10"}', responseHandle: 'LEAVE_OPEN', url: 'https://awvsscan/api/v1/targets' def responseAddTaskMap = readJSON text: responseAddTask.content responseAddTaskMap.each { def target_id = '' if (it.key == "target_id") { target_id = it.value //启动扫描 def responseScanTask = httpRequest customHeaders: [[maskValue: false, name: 'content-type', value: 'application/json'], [maskValue: false, name: 'X-Auth', value: awvs
jenkins使用流水线语法调用Acunetix12的api 添加扫描任务启动扫描任务获取扫描id获取最终扫描报告
最新推荐文章于 2024-07-25 05:12:53 发布
本文介绍了如何在Jenkins中使用Pipeline语法调用Acunetix API来添加扫描任务、启动扫描、获取扫描ID以及最终的扫描报告。通过设置HTTP请求,实现自动化安全扫描流程。
摘要由CSDN通过智能技术生成