- 本项目用于自动化生成报告。可根据项目需求,通过简单的提取变量来自定义报告模板。内附常见扫描器API/原报告(awvs、xray、goby)数据提取模块,可直接生成全新的自定义报告。
- 对有复杂的功能需求时,适用于有Python基础的人使用。
- 本项目内附二次开发所用的资料文档,欢迎各位提Pull Request。
- This project is used for automatic generation of reports. According to the project requirements, you can customize the report template by simply extracting variables. The attached common scanner API/original report (awvs, xray, goby) data extraction module can directly generate new customized reports.
- For complex functional requirements, is suitable for people with Python foundation to use.
- The project is attached with the data and documents used for the secondary development. Welcome to pull requests.
- 适用于[安服仔]、[渗透仔]、[SRC仔]:常见漏扫工具扫描完毕后,一键导出项目报告
- 适用于[漏扫开发仔]:将漏扫结果导出自定义格式化报告
- tool[dir]:常见工具报告\API数据提取模块目录;
- reportDemo[dir]:报告模板目录;
- testReport[dir]:测试使用的awvs、xray、goby等原报告目录(内容可删除);
- result[dir]:输出结果目录;
- img[dir]:wordDemo资源加载图片、readme文档测试图片目录(测试图片可删除);
- refer[dir]:二开参考数据目录;
- 执行命令:pip install -r requirements.txt
- config.ini
from wordReport import *
targets_info = 目标信息(格式可参考./refer/xxx_targets_Demo.txt)
vulns_info = 漏洞信息(格式可参考./refer/xxx_vulns_Demo.txt)
demo = 报告模板 【默认使用:./reportDemo/reportDemo.docx】
out = 输出文件路径 【默认:./result/{项目名称}渗透测试报告_{'生成时间'}.docx】
reportWord = Report(targets_info, vulns, demo, out)
reportWord.create()
-
python drawReport.py -m [api_awvs/html_awvs/html_goby/html_xray] -d ./reportDemo/reportDemo.docx -o ./result/报告名称.docx
-
例如:python drawReport.py -m html_awvs
- 请修改drawReport脚本,将多个get_xxx_xxx_data获取到的targets_info, vuln_info对应组合形成新的targets_info, vuln_info,最后调用 reportWord = Report(targets_info, vuln_info) reportWord.create()
- 因为会涉及不同数据直接格式略有不同,作者懒,所以没写,等着闲人pull request
- 【./refer/html_xray_data.txt】:为xray页面提取出来的漏洞信息
- https://个人awvs地址:3443/Acunetix-API-Documentation.html
- https://www.sqlsec.com/2020/04/awvsapi.html
- 【./refer/api_awvs_vluns_Demo.txt】:为apiReport.py获取awvs的【漏洞数据】结果例子
- 【./refer/api_awvs_targets_Demo.txt】:为apiReport.py获取awvs的【目标数据】结果例子
- 【./refer/html_awvs_data.txt】:记录awvs生成的html中加密的漏洞及目标信息
- 【./refer/html_awvs_new_data.txt】:html_awvs_data.txt解密后的数据
- 由于goby导出的文档中的数据太少,我将一些必要的做了默认处理(如:开始时间和结束时间)
- 【./refer/html_goby_target_data.txt】:为apiReport.py获取goby的【目标数据】结果例子
- 【./refer/html_goby_vulns_data.txt】:为apiReport.py获取goby的【漏洞数据】结果例子
##Thank them for pull request into this project.
- 'html_goby.py' was written by ZhangRT.