forked from FeeiCN/Cobra
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request FeeiCN#1025 from BlBana/master
优化了report api代码,增加了phantomjs截图功能,增加了report模块文档
- Loading branch information
Showing
10 changed files
with
172 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Report模块使用 | ||
> Report模块主要用来指定时间段的漏洞统计,分为CLI模式和Web两种模式 | ||
### CLI模式 | ||
> CLI模式在执行命令,自动使用*phantomjs*请求Report模块的Web页面,统计一周内的漏洞分布情况,并截图发送至指定邮箱 | ||
#### 配置内容 | ||
配置config文件: | ||
1. host:SMTP服务器地址 | ||
2. port:SMTP服务器端口 | ||
3. username:SMTP服务器登陆用户 | ||
4. password:SMTP服务器登陆密码 | ||
5. sender:发送人邮箱 | ||
6. to:收件人邮箱 | ||
7. cobra_ip:Cobra服务器地址 | ||
|
||
#### 使用方法 | ||
> 与Crontab定时任务使用,完成自动发送周报功能 | ||
`python cobra.py -rp`执行命令,完成报告截图和发送邮件操作 | ||
|
||
### Web模式 | ||
|
||
#### URL | ||
http://127.0.0.1:8080/report进入Cobra Report页面,选择start 和 end时间查看指定时间段的扫描报告 | ||
|
||
#### 报告内容 | ||
1. 各等级漏洞数量 | ||
2. Top 10漏洞饼图展示 | ||
3. 扫描文件总数 | ||
4. 扫描项目总数 | ||
5. 扫描漏洞总数 | ||
6. start时间,end时间 | ||
7. 每日漏洞数量折线图展示 | ||
|
||
下一章:[规则模板](http://cobra.feei.cn/rule_template) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.