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 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/) diff --git a/cobra/config.py b/cobra/config.py index 33fbfed6..647f55d4 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='http://cobra.feei.cn/config', e=e.message)) diff --git a/cobra/engine.py b/cobra/engine.py index 93f94335..b561614a 100644 --- a/cobra/engine.py +++ b/cobra/engine.py @@ -569,7 +569,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