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

Cobra-Java分支检测出错 #1367

Open
Leezj9671 opened this issue Apr 23, 2019 · 0 comments
Open

Cobra-Java分支检测出错 #1367

Leezj9671 opened this issue Apr 23, 2019 · 0 comments
Assignees
Labels

Comments

@Leezj9671
Copy link

System and Python Environment

Item Tooltip Value
System uname -a
Python python -V
Cobra python cobra.py

Description

切换到Cobra-Java分支进行Java代码检测时,显示unset language

[14:01:16] [INFO] [CLI] [STATISTIC] Language: java Framework: Unknown Framework
[14:01:16] [INFO] [CLI] [STATISTIC] Files: 2, Extensions:2, Consume: 0.0
[14:01:26] [INFO] [PUSH] 17 CVE Rules
[14:01:27] [INFO] [PUSH] 108 Rules
[14:01:27] [CRITICAL] unset language, continue...

后报错

Traceback (most recent call last):
  File "/xxx/cobra/cobra/engine.py", line 363, in process
    vul_results = Core(self.target_directory, vulnerability, self.sr, 'project name', ['whitelist1', 'whitelist2'], test=is_test, index=index).scan()
  File "/xxx/cobra/cobra/engine.py", line 474, in __init__
    self.match_block = single_rule['match-block']
KeyError: 'match-block'
[14:01:27] [WARNING] [CVI-130005] [RET] <cobra.result.VulnerabilityResult instance at 0x7f036275a878>

使用master分支正常

Steps to Reproduce

  1. [First Step]
  2. [Second Step]
  3. [and so on...]

Expected behavior: [What you expected to happen]

Actual behavior: [What actually happened]

@BlBana BlBana added the bug label May 5, 2019
@BlBana BlBana self-assigned this May 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants