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

Commit

Permalink
Merge pull request #634 from JoyChou93/master
Browse files Browse the repository at this point in the history
Fix match2 rules do not take effect bug
  • Loading branch information
FeeiCN committed Jan 12, 2018
2 parents 4db80de + 9879255 commit 7755db9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cobra/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,6 @@ def scan(self):
is_match, data = ast.match(self.rule_match2, self.rule_match2_block)
if is_match:
logger.debug('[CVI-{cvi}] [MATCH2] True'.format(cvi=self.cvi))
return True, 'REGEX-ONLY-MATCH+MATCH2(正则仅匹配+二次匹配)'
else:
logger.debug('[CVI-{cvi}] [MATCH2] False'.format(cvi=self.cvi))
return False, 'REGEX-ONLY-MATCH+Not matched2(未匹配到二次规则)'
Expand Down Expand Up @@ -658,7 +657,6 @@ def scan(self):
is_match, data = ast.match(self.rule_match2, self.rule_match2_block)
if is_match:
logger.debug('[CVI-{cvi}] [MATCH2] True'.format(cvi=self.cvi))
return True, 'FPC+MATCH2(函数入参可控+二次匹配)'
else:
logger.debug('[CVI-{cvi}] [MATCH2] False'.format(cvi=self.cvi))
return False, 'FPC+NOT-MATCH2(函数入参可控+二次未匹配)'
Expand Down

0 comments on commit 7755db9

Please sign in to comment.