Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rules in files and in the database are different #200

Closed
mark0smith opened this issue Oct 23, 2021 · 1 comment
Closed

Rules in files and in the database are different #200

mark0smith opened this issue Oct 23, 2021 · 1 comment

Comments

@mark0smith
Copy link
Contributor

System and Python Environment

Item Tooltip Value
System uname -a Linux kali 5.10.0-kali9-amd64 #1 SMP Debian 5.10.46-4kali1 (2021-08-09) x86_64 GNU/Linux
Python python -V Python 3.9.7
Cobra python kunlun.py v2.6.3

Description

When running python3 kunlun.py console, there is an alert showing that rules in files and in the database are different.
And I never change the rule file.

It looks like in database double quotation marks " are escaped and the comparison process goes wrong.

 [06:58:14] [INIT][Load Rules] Check Rule CVI_10001 Reflected XSS
 [06:58:14] [INIT][Rule Check] CVI_10001 config match has changed:
 [06:58:14] [INIT][Rule Check] match in Rule File is (echo\s?['"]?(.+?)?\$(.+?)?['"]?(.+?)?;)
 [06:58:14] [INIT][Rule Check] match in Database is (echo\s?['\"]?(.+?)?\$(.+?)?['\"]?(.+?)?;)
 [06:58:14] [INIT][Rule Check] whether load new match from Rule File(Y/N):  <--------------------------- HERE!
N
 [06:58:21] [INIT][Load Rules] Check Rule CVI_1007 RFI
 [06:58:21] [INIT][Load Rules] Check Rule CVI_1013 URL Redirector Abuse
 [06:58:21] [INIT][Load Rules] Check Rule CVI_1005 SQLI
@LoRexxar
Copy link
Owner

噢,这是做了一次特殊处理...这个我想想怎么改

LoRexxar added a commit that referenced this issue Oct 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants