From ee6a155051c779b3db2a1e818824e65d010abadc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A5=E8=AF=9D?= Date: Wed, 17 Jan 2018 15:02:13 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BC=98=E5=8C=96=20config.py=20=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=B5=8B=E5=80=BC=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cobra/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cobra/config.py b/cobra/config.py index 520077a7..3f253d43 100644 --- a/cobra/config.py +++ b/cobra/config.py @@ -60,14 +60,14 @@ class Config(object): def __init__(self, level1=None, level2=None): self.level1 = level1 self.level2 = level2 - if level1 is None and level2 is None: + if self.level1 is None and self.level2 is None: return config = ConfigParser() config.read(config_path) value = None try: - value = config.get(level1, level2) + value = config.get(self.level1, self.level2) except Exception as e: traceback.print_exc() logger.critical("./configs file configure failed. {u}\nError: {e}".format(u='https://wufeifei.github.io/cobra/config', e=e.message)) From d9ec5b0af349506d61ad5550d7c9c95334dee0ef Mon Sep 17 00:00:00 2001 From: yichinzhu <787954349@qq.com> Date: Mon, 12 Mar 2018 17:33:56 +0800 Subject: [PATCH 2/5] delete useless code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 蹭PR --- cobra/engine.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cobra/engine.py b/cobra/engine.py index f183c7b7..66bac582 100644 --- a/cobra/engine.py +++ b/cobra/engine.py @@ -558,7 +558,6 @@ def scan(self): :return: is_vulnerability, code """ self.method = 0 - self.code_content = self.code_content if len(self.code_content) > 512: self.code_content = self.code_content[:500] self.status = self.status_init From ad9ce28d0cdbe0184b8139a755d7cc58aa5091b0 Mon Sep 17 00:00:00 2001 From: Feei Date: Wed, 14 Mar 2018 15:18:29 +0800 Subject: [PATCH 3/5] Update .coveralls.yml --- .coveralls.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.coveralls.yml b/.coveralls.yml index 1b8c0423..650954be 100644 --- a/.coveralls.yml +++ b/.coveralls.yml @@ -1 +1 @@ -repo_token: RTm43Y7KTsi2AkDnpxTr3UvNcJZBKSXid +repo_token: JJS0p6rdrOP93s5lMebbwyAx2Z2L0PabA From d40bc612080178fa0726b8cca366d2f5961da9f4 Mon Sep 17 00:00:00 2001 From: Feei Date: Fri, 16 Mar 2018 12:06:19 +0800 Subject: [PATCH 4/5] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index c2556020..d54b9e5b 100644 --- a/README.md +++ b/README.md @@ -23,5 +23,8 @@ Cobra是一款**源代码安全审计**工具,支持检测多种开发语言 [![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://whaleshark-team.github.io/cobra/) From 462cfaed1189dd37cd7a7ba4561e8a1a99735d36 Mon Sep 17 00:00:00 2001 From: BlBana <635373043@qq.com> Date: Thu, 29 Mar 2018 12:32:11 +0800 Subject: [PATCH 5/5] Update requirments --- requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 9aa6a39c..dfb0bec5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,5 @@ requests==2.6.2 pytest==3.0.6 pip==9.0.1 phply==1.0.0 -Werkzeug==0.11.9 \ No newline at end of file +Werkzeug==0.11.9 +ConcurrentLogHandler==0.9.1