Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

修复python3.8环境下运行失败的问题 #1402

Open
wants to merge 158 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
158 commits
Select commit Hold shift + click to select a range
edf2011
Merge pull request #663 from FeeiCN/develop
FeeiCN Jan 16, 2018
ee6a155
优化 config.py 中的赋值关系
tonghuaroot Jan 17, 2018
d218a8b
CNAME custom domain
FeeiCN Jan 21, 2018
a181103
update link
FeeiCN Feb 5, 2018
c168883
update link
FeeiCN Feb 5, 2018
51c9566
Update api.md
FeeiCN Feb 5, 2018
9550eda
Update cli.md
FeeiCN Feb 5, 2018
690fe04
Update cli.md
FeeiCN Feb 5, 2018
fd83dbc
Update api.md
FeeiCN Feb 5, 2018
4837f4c
Update config.md
FeeiCN Feb 5, 2018
1967746
Update installation.md
FeeiCN Feb 5, 2018
b3c29fc
Update labels.md
FeeiCN Feb 5, 2018
ec0effd
Update languages.md
FeeiCN Feb 5, 2018
332467a
Update level.md
FeeiCN Feb 5, 2018
cf48740
Update rule_demo.md
FeeiCN Feb 5, 2018
c5165a7
Update rule_flow.md
FeeiCN Feb 5, 2018
7570829
Update rule_name.md
FeeiCN Feb 5, 2018
bedc35a
Update rule_template.md
FeeiCN Feb 5, 2018
c6058cb
Update test.md
FeeiCN Feb 5, 2018
8613b65
Update tree.md
FeeiCN Feb 5, 2018
3a16108
Update upgrade.md
FeeiCN Feb 5, 2018
6947c3d
Update upgrade.md
FeeiCN Feb 5, 2018
4bf8299
Update contributors.md
FeeiCN Feb 5, 2018
06bdd78
Update config.py
FeeiCN Feb 5, 2018
954bbb0
Update index.html
FeeiCN Feb 5, 2018
4a4d738
Update utils.py
FeeiCN Feb 5, 2018
6129d73
change block code end line number to 10000
wilson9x1 Mar 1, 2018
0c9fe63
Merge pull request #745 from wilson9x1/patch-2
FeeiCN Mar 1, 2018
446a5a8
fix #740
FeeiCN Mar 1, 2018
475c49c
解决了单个文件无法扫描的bug, fix #583
BlBana Mar 7, 2018
d2f82be
暂时不支持html文件格式的报告导出,fix #624
BlBana Mar 8, 2018
59d6770
需要在config中配置好邮箱信息, fix #647
BlBana Mar 8, 2018
85b6b01
解决了代码重复拉取无法扫描的bug
BlBana Mar 8, 2018
6766d15
拉取gitlab代码时,需要配置config中的username和password,fix #592
BlBana Mar 8, 2018
574099c
增加批量提交gitlab项目的脚本
BlBana Mar 8, 2018
2192a20
Merge pull request #759 from BlBana/master
FeeiCN Mar 9, 2018
dfd8ca9
优化了重复pull代码的判断方法
BlBana Mar 9, 2018
6cb3aea
优化了api启动时,输入端口数据类型的判断
BlBana Mar 9, 2018
b6a21f6
解决centos下WARNING: yacc table file version is out of date
BlBana Mar 9, 2018
a241b22
优化了没有配置SMTP服务器时的提示信息
BlBana Mar 9, 2018
13341b4
Merge pull request #762 from BlBana/master
FeeiCN Mar 12, 2018
d9ec5b0
delete useless code
yichinzhu Mar 12, 2018
6f5b092
Merge pull request #767 from yichinzhu/master
FeeiCN Mar 12, 2018
a6e05bd
Merge pull request #671 from omg2hei/patch-3
FeeiCN Mar 12, 2018
2802ebe
优化了注释中代码存在漏洞的误报问题,fix #768
BlBana Mar 13, 2018
8ad3658
修改了PHP多行注释符的正则匹配
BlBana Mar 13, 2018
952f56f
对AttributeError类型的异常进行了捕获,对进入os.chdir前的路径进行判断
BlBana Mar 13, 2018
1f07622
优化了没有配置config文件导致异常的提示内容, fix #766,fix #684,fix #675,fix #668,fix #61…
BlBana Mar 14, 2018
10f47dd
Merge pull request #769 from BlBana/master
FeeiCN Mar 14, 2018
6ba609e
修改了文档以及代码中的失效链接
BlBana Mar 14, 2018
ad9ce28
Update .coveralls.yml
FeeiCN Mar 14, 2018
cc11462
Update repository link, fix #765
BlBana Mar 14, 2018
062c042
Merge pull request #776 from BlBana/master
FeeiCN Mar 14, 2018
abb82c2
自动捕获编码异常并提交issue
BlBana Mar 15, 2018
207dcf8
Merge pull request #786 from BlBana/master
FeeiCN Mar 16, 2018
d40bc61
Update README.md
FeeiCN Mar 16, 2018
3a4f268
对API模式下的git地址和分支进行了判断
BlBana Mar 19, 2018
54f8707
对API模式下输入的数据进行了过滤
BlBana Mar 22, 2018
94245d2
解决了XML文件存在非法字符时的异常中断
BlBana Mar 22, 2018
af8c339
增加了新参数dels,支持扫描完项目后清除项目文件,并修改了文档
BlBana Mar 22, 2018
f116346
解决测试用例异常
BlBana Mar 22, 2018
cdba6be
Merge pull request #808 from BlBana/master
BlBana Mar 22, 2018
f3b2625
增加了对IOError的异常捕获
BlBana Mar 23, 2018
f4736c8
对导出文件json文件中存在非法字符导致异常进行了处理
BlBana Mar 23, 2018
aff9982
Merge pull request #847 from BlBana/master
FeeiCN Mar 26, 2018
12b134b
增加了对报告导出到文件时,打开文件的异常判断以及修改了批量push代码的脚本
BlBana Mar 26, 2018
41add93
增加了对邮件附件是否存在的判断
BlBana Mar 26, 2018
306fbd4
解决了Python3下代码拉取bug
BlBana Mar 26, 2018
e23f4b9
Merge pull request #923 from BlBana/master
FeeiCN Mar 27, 2018
061ef0b
对sing_rule['language']进行了小写转换,对CVE规则提取进行了非None判断
BlBana Mar 27, 2018
c957172
解决了API模式下单个文件扫描,查看报告无法获取文件内容问题
BlBana Mar 28, 2018
ad23757
解决了API模式下日志覆盖的问题
BlBana Mar 29, 2018
3d206f0
增加了多进程写日志的log包
BlBana Mar 29, 2018
462cfae
Update requirments
BlBana Mar 29, 2018
812d9a7
Merge branch 'master' into master
BlBana Mar 29, 2018
df11d17
Merge pull request #978 from BlBana/master
FeeiCN Mar 30, 2018
14298fe
优化了git_projects脚本,支持参数传入扫描单个/多个目标,单条/多条指定规则,输出格式,输出方式,扫描完后是否删除项目
BlBana Mar 30, 2018
c4b71a1
Merge remote-tracking branch 'upstream/master'
BlBana Mar 30, 2018
a961418
解决了测试用例不通过的问题
BlBana Mar 31, 2018
9fb4197
Merge pull request #999 from BlBana/master
FeeiCN Apr 2, 2018
75609ac
增加了Cobra report功能
BlBana Apr 12, 2018
ddd030a
Revert "增加了Cobra report功能"
BlBana Apr 12, 2018
cfb2231
增加了Cobra Report的功能
BlBana Apr 12, 2018
d169342
删除无用CSS
BlBana Apr 13, 2018
accdcc5
Merge pull request #1021 from BlBana/master
FeeiCN Apr 13, 2018
452997c
增加了report模块异常的处理
BlBana Apr 13, 2018
9d3ef6a
优化了report api代码,增加了phantomjs截图功能,增加了report模块文档
BlBana Apr 18, 2018
a09ffdd
修改了异常提示信息
BlBana Apr 18, 2018
7de405d
Merge pull request #1025 from BlBana/master
FeeiCN Apr 18, 2018
93484ee
修复了重复扫描任务数量的统计bug
BlBana Apr 18, 2018
fbd3ee8
Merge pull request #1026 from BlBana/master
FeeiCN Apr 18, 2018
bf081a1
修复pip>10后的parse_requirements问题
40huo May 14, 2018
10ec74e
fix 'brew install ggrep'
40huo May 15, 2018
59e9fee
Merge pull request #1078 from 40huo/master
40huo May 16, 2018
2cb39ee
fix 'you need to resolve your current index first' error in git
40huo May 17, 2018
803b3de
Merge pull request #1086 from 40huo/master
40huo May 17, 2018
efb84c3
路径穿越修复
40huo Jun 6, 2018
0a80aa8
Merge pull request #1114 from 40huo/master
40huo Jun 6, 2018
56cb181
忽略日志文件
40huo Jun 19, 2018
cc2aa5b
Merge pull request #1126 from 40huo/master
40huo Jun 19, 2018
f7cac5d
增加指定依赖规则扫描的功能 -r cvi-999999
40huo Jun 19, 2018
1c7e7db
添加http协议规则
40huo Jun 19, 2018
6e65544
Merge pull request #1127 from 40huo/master
40huo Jun 19, 2018
58b7c0d
add fastjson scan
40huo Jun 28, 2018
cffc941
不扫 vendor 目录
40huo Jun 28, 2018
fdaa6a5
添加查询repo所有人api
40huo Jul 2, 2018
55d0a99
修复report功能的部分bug
40huo Jul 4, 2018
84ec2e7
调整模板文件引用关系
40huo Jul 4, 2018
8957660
优化report中空文件的处理
40huo Jul 5, 2018
811c9e9
添加report和获取repo负责人的测试
40huo Jul 5, 2018
3985e45
Merge pull request #1158 from 40huo/master
40huo Jul 5, 2018
4bf9272
支持nodejs依赖解析,支持规则区间的比较
40huo Jul 6, 2018
50f0096
支持Java依赖中的变量
40huo Jul 9, 2018
2cc67a6
修复pip内部包路径的问题
40huo Jul 13, 2018
8809781
fix Python2 3 兼容父类初始化
40huo Jul 13, 2018
5e2b9bf
Merge pull request #1168 from 40huo/master
40huo Jul 13, 2018
6eed819
Fix java maven and nodejs dependencies bug
40huo Aug 21, 2018
f72cae5
Merge pull request #1200 from 40huo/master
40huo Aug 21, 2018
3b3cb53
修复了API提交URL时的命令执行
Aug 21, 2018
7b70c6f
删除无用文件
BlBana Aug 21, 2018
cd29284
支持了Java语义分析
Aug 25, 2018
12c88c8
Merge branch 'master' of https://github.com/BlBana/cobra
Aug 25, 2018
7bd93f6
Merge remote-tracking branch 'upstream/master'
Aug 25, 2018
4fd2cc0
增加了依赖
Aug 25, 2018
a786138
Merge pull request #1201 from BlBana/master
BlBana Aug 25, 2018
a33e8b9
Revert "修复了API提交URL时的命令执行"
BlBana Aug 28, 2018
1cab131
Merge pull request #1209 from WhaleShark-Team/revert-1201-master
BlBana Aug 28, 2018
550db53
修复了Api处url命令执行
Aug 28, 2018
4391428
Merge pull request #1210 from BlBana/master
BlBana Aug 28, 2018
b366505
升级Flask框架版本
Sep 5, 2018
5d691aa
升级了Flask的版本,0.12.3版本存在问题
Sep 11, 2018
b0dfaca
Merge pull request #1230 from BlBana/master
BlBana Sep 11, 2018
a7eb365
限制了API模式下只能扫描URL地址
Sep 13, 2018
173d7de
修改了测试用例
Sep 13, 2018
db45511
解决了对Python 2.6的兼容问题
Sep 14, 2018
43e4bca
Merge pull request #1242 from BlBana/master
BlBana Sep 14, 2018
51589f0
加入了对不合法的压缩文件的异常判断
Sep 19, 2018
4a997e4
处理了漏洞结果为空时,导出CSV抛异常的问题
Sep 19, 2018
74fb8dc
coveralls包不支持python2.6.9
Sep 26, 2018
0f83583
Merge pull request #1255 from BlBana/master
BlBana Sep 26, 2018
b9819d4
增加了对文件MD5校验
Sep 28, 2018
e5e81ab
删除了测试文件中的低版本Flask
Sep 29, 2018
009ab90
修改了生成md5的条件
Sep 29, 2018
f626014
修改了测试用例,由于Flask测试文件删除,导致测试用例无法通过
Sep 29, 2018
a687690
更新了CVE漏洞的规则,增加了18年CVE规则,修改了测试用例
Sep 29, 2018
c7fcce4
Merge pull request #1283 from BlBana/master
BlBana Sep 29, 2018
8d15964
升级了漏洞包的版本
Oct 30, 2018
5e5f0ab
Merge pull request #1313 from BlBana/master
BlBana Oct 30, 2018
7a57fb2
优化了带端口的Git地址的处理
Nov 8, 2018
aef00a9
增加路径
Nov 8, 2018
a9c9078
Merge pull request #1318 from BlBana/master
BlBana Nov 9, 2018
e7ed34b
解决Github CVE报警
Jan 14, 2019
7835a0c
Merge pull request #1353 from BlBana/master
BlBana Jan 14, 2019
02f1621
upgrade to security version
FeeiCN Aug 23, 2019
2be59e3
Update README.md
FeeiCN Jun 9, 2021
7a2822a
fix:升级Werkzeug版本为0.15.5,解决安装报错TypeError: required field “type_ignores…
banbooboo Jun 30, 2021
0998548
fix:解决python3.8运行报clock函数找不到的问题
banbooboo Jun 30, 2021
81ec4c8
‘feat:添加单元测试,测试pickup的collect_files函数’
banbooboo Jun 30, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .coveralls.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
repo_token: RTm43Y7KTsi2AkDnpxTr3UvNcJZBKSXid
repo_token: JJS0p6rdrOP93s5lMebbwyAx2Z2L0PabA
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
- "2.6"
- "2.7"
- "3.3"
- "3.4"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:xenial
COPY . /code/
WORKDIR /code

RUN apt-get update && apt-get install -y python-pip curl \
RUN apt-get update && apt-get install -y python-pip curl git \
&& apt-get autoremove \
&& apt-get clean \
&& apt-get autoclean \
Expand Down
21 changes: 13 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Cobra
[![Build Status](https://travis-ci.org/FeeiCN/cobra.svg?branch=master)](https://travis-ci.org/FeeiCN/cobra)
[![Coverage Status](https://coveralls.io/repos/github/FeeiCN/cobra/badge.svg?branch=master)](https://coveralls.io/github/FeeiCN/cobra?branch=master)
[![GitHub (pre-)release](https://img.shields.io/github/release/feeicn/cobra/all.svg)](https://github.com/feeicn/cobra/releases)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/feeicn/cobra/blob/master/LICENSE)
[![Build Status](https://travis-ci.org/WhaleShark-Team/cobra.svg?branch=master)](https://travis-ci.org/WhaleShark-Team/cobra)
[![Coverage Status](https://coveralls.io/repos/github/WhaleShark-Team/cobra/badge.svg?branch=master)](https://coveralls.io/github/WhaleShark-Team/cobra?branch=master)
[![GitHub (pre-)release](https://img.shields.io/github/release/WhaleShark-Team/cobra/all.svg)](https://github.com/WhaleShark-Team/cobra/releases)
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/WhaleShark-Team/cobra/blob/master/LICENSE)

[![asciicast](https://raw.githubusercontent.com/feeicn/cobra/master/docs/report_03.jpg)](https://asciinema.org/a/132572)
[![asciicast](https://raw.githubusercontent.com/WhaleShark-Team/cobra/master/docs/report_03.jpg)](https://asciinema.org/a/132572)

**该项目设计已无法实现当前白盒扫描要求,已不在维护,仅做研究使用,请勿在生产环境使用**

## Introduction(介绍)
Cobra是一款**源代码安全审计**工具,支持检测多种开发语言源代码中的**大部分显著**的安全问题和漏洞。
Expand All @@ -20,8 +22,11 @@ Cobra是一款**源代码安全审计**工具,支持检测多种开发语言
> 提供本地Web Server服务,可使用GUI可视化操作,也可支持本地API接口,方便和其它系统(发布系统、CI等)对接扩展。

## Screenshot(截图)
[![report01](https://raw.githubusercontent.com/feeicn/cobra/master/docs/report_01.jpg)](https://feeicn.github.io/cobra/api)
[![report02](https://raw.githubusercontent.com/feeicn/cobra/master/docs/report_02.jpg)](https://feeicn.github.io/cobra/api)
[![report01](https://raw.githubusercontent.com/whaleshark-team/cobra/master/docs/report_01.jpg)](https://whaleshark-team.github.io/cobra/api)
[![report02](https://raw.githubusercontent.com/whaleshark-team/cobra/master/docs/report_02.jpg)](https://whaleshark-team.github.io/cobra/api)

## Contributors(贡献者)
项目由[Feei](https://github.com/FeeiCN)发起并主导,核心开发者[LiGhT1EsS](https://github.com/LiGhT1EsS)、[BlBana](https://github.com/BlBana)、[40huo](https://github.com/40huo)、[braveghz](https://github.com/braveghz),也感谢其他[贡献者](https://github.com/WhaleShark-Team/cobra/graphs/contributors),欢迎提交PR。

## Links(链接)
- [Cobra文档](https://feeicn.github.io/cobra/)
- [Cobra文档](https://whaleshark-team.github.io/cobra/)
2 changes: 1 addition & 1 deletion cobra.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Implements cobra entry

:author: Feei <feei@feei.cn>
:homepage: https://github.com/FeeiCN/cobra
:homepage: https://github.com/WhaleShark-Team/cobra
:license: MIT, see LICENSE for more details.
:copyright: Copyright (c) 2018 Feei. All rights reserved
"""
Expand Down
37 changes: 30 additions & 7 deletions cobra/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
Implements cobra main

:author: Feei <feei@feei.cn>
:homepage: https://github.com/FeeiCN/cobra
:homepage: https://github.com/WhaleShark-Team/cobra
:license: MIT, see LICENSE for more details.
:copyright: Copyright (c) 2018 Feei. All rights reserved
"""
Expand All @@ -22,7 +22,8 @@
from . import cli, api, config
from .cli import get_sid
from .engine import Running
from .utils import unhandled_exception_message, create_github_issue
from .utils import unhandled_exception_message, create_github_issue, set_config_hash, get_config_hash
from .report import Report

from .__version__ import __title__, __introduction__, __url__, __version__
from .__version__ import __author__, __author_email__, __license__
Expand All @@ -43,11 +44,14 @@ def main():

parser_group_scan = parser.add_argument_group('Scan')
parser_group_scan.add_argument('-t', '--target', dest='target', action='store', default='', metavar='<target>', help='file, folder, compress, or repository address')
parser_group_scan.add_argument('-f', '--format', dest='format', action='store', default='json', metavar='<format>', choices=['html', 'json', 'csv', 'xml'], help='vulnerability output format (formats: %(choices)s)')
parser_group_scan.add_argument('-f', '--format', dest='format', action='store', default='json', metavar='<format>', choices=['json', 'csv', 'xml'], help='vulnerability output format (formats: %(choices)s)')
parser_group_scan.add_argument('-o', '--output', dest='output', action='store', default='', metavar='<output>', help='vulnerability output STREAM, FILE, HTTP API URL, MAIL')
parser_group_scan.add_argument('-r', '--rule', dest='special_rules', action='store', default=None, metavar='<rule_id>', help='specifies rules e.g: CVI-100001,cvi-190001')
parser_group_scan.add_argument('-d', '--debug', dest='debug', action='store_true', default=False, help='open debug mode')
parser_group_scan.add_argument('-sid', '--sid', dest='sid', action='store', default=None, help='scan id(API)')
parser_group_scan.add_argument('-dels', '--dels', dest='dels', action='store_true', default=False, help='del target directory True or False')
parser_group_scan.add_argument('-rp', '--report', dest='report', action='store_true', default=False, help='automation report Cobra data')
parser_group_scan.add_argument('-m', '--md5', dest='md5', action='store_true', default=False, help='Create projects file md5')

parser_group_server = parser.add_argument_group('RESTful')
parser_group_server.add_argument('-H', '--host', dest='host', action='store', default=None, metavar='<host>', help='REST-JSON API Service Host')
Expand All @@ -59,6 +63,19 @@ def main():
logger.setLevel(logging.DEBUG)
logger.debug('[INIT] set logging level: debug')

if args.report:
logger.info('[REPORT] Start report')
res = Report().run()
if res is False:
logger.critical('[REPORT] Cobra Report failed')
else:
logger.info('[REPORT] Cobra Report Success ')
exit()

if args.md5 and args.port is None and args.host is None and args.target is '':
set_config_hash()
exit()

if args.host is None and args.port is None and args.target is '' and args.output is '':
parser.print_help()
exit()
Expand All @@ -67,8 +84,12 @@ def main():
logger.critical('Nonsupport Windows!!!')

if args.host is not None and args.port is not None:
if not int(args.port) <= 65535:
logger.critical('port must be 0-65535.')
try:
if not int(args.port) <= 65535:
logger.critical('port must be 0-65535.')
exit()
except ValueError as e:
logger.critical('port must be 0-65535')
exit()
logger.debug('[INIT] start RESTful Server...')
api.start(args.host, args.port, args.debug)
Expand All @@ -86,14 +107,16 @@ def main():
else:
# API call CLI mode
a_sid = args.sid
cli.start(args.target, args.format, args.output, args.special_rules, a_sid)
cli.start(args.target, args.format, args.output, args.special_rules, a_sid, args.dels)
t2 = time.time()
logger.info('[INIT] Done! Consume Time:{ct}s'.format(ct=t2 - t1))

except Exception as e:
err_msg = unhandled_exception_message()
exc_msg = traceback.format_exc()
logger.warning(exc_msg)
create_github_issue(err_msg, exc_msg)
if get_config_hash(): # 项目未被修改,提交issue
create_github_issue(err_msg, exc_msg)


if __name__ == '__main__':
Expand Down
27 changes: 24 additions & 3 deletions cobra/__version__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

__title__ = 'cobra'
__description__ = 'Code Security Audit'
__url__ = 'https://github.com/FeeiCN/cobra'
__issue_page__ = 'https://github.com/FeeiCN/cobra/issues/new'
__url__ = 'https://github.com/WhaleShark-Team/cobra'
__issue_page__ = 'https://github.com/WhaleShark-Team/cobra/issues/new'
__python_version__ = sys.version.split()[0]
__platform__ = platform.platform()
__version__ = '2.0.0-alpha.5'
Expand All @@ -18,7 +18,7 @@
| | || || ,---|
`---``---``---`` `---^ v{version}

GitHub: https://github.com/FeeiCN/cobra
GitHub: https://github.com/WhaleShark-Team/cobra

Cobra is a static code analysis system that automates the detecting vulnerabilities and security issue.""".format(version=__version__)
__epilog__ = """Usage:
Expand All @@ -29,3 +29,24 @@
python {m} -t {tg} -f json -o http://push.to.com/api
python {m} -H 127.0.0.1 -P 8888
""".format(m='cobra.py', td='tests/vulnerabilities', tg='https://github.com/ethicalhack3r/DVWA')

__introduction_git__ = """
This script can push your target to the api
Please write cobra_ip, secret_key in config when you want to scan the specified git address
Please write gitlab_url, private_token, cobra_ip, secret_key when you want to scan all gitlab's projects
"""

__epilog_git__ = """Usage:
python {m} -a
python {m} -a -r cvi-190001,cvi-190002
python {m} -a -f json -o /tmp/report.json

python {m} -t {td}
python {m} -t {td},{td1}
python {m} -t {td},{td1} -d
python {m} -t {td} -r cvi-190001,cvi-190002
python {m} -t {td} -f json -o /tmp/report.json
python {m} -t {tg} -f json -o feei@feei.cn
python {m} -t {tg} -f json -o http://push.to.com/api
""".format(m='git_projcets.py', td='tests/vulnerabilities', td1='tests/dvwa',
tg='https://github.com/ethicalhack3r/DVWA')
Loading