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

Fix match2 rules do not take effect bug #634

Merged
merged 1 commit into from
Jan 12, 2018
Merged
Changes from all commits
Commits
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: 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