-
Notifications
You must be signed in to change notification settings - Fork 8
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
missing variables #83
Comments
Hi @Kubas556, thanks for this report - unfortunately I can't open the image. Could you share the error in simple text? Btw I tried to parse the mentioned file but it was success:
|
There is no error in output, it seems fine. But the model from process_rules function seems to miss the REQUEST_LINE variable |
The image i send is only screenshot of REQUEST-905-COMMON-EXCEPTIONS.conf file |
Are you looking for something specific that is currently not supported? It would be helpful if you could describe your usecase. |
I need full model of modsec rule so i could recreate it using my own definitions in C# classes |
Maybe you might be more interested in the antlr parser: https://github.com/coreruleset/seclang_parser |
If it's enough that you get a yaml/json structure of your rules, msc_pyparser will be a good choice for you. |
Thanks, i will look at it. |
When i execute "python .\cli.py -o regex.json --regex -f C:\Users\user\Downloads\modsec-rules\rules\REQUEST-905-COMMON-EXCEPTIONS.conf" to try parse modsec rules and them break inside on of the rule loop, the rule values are empty, there is no mention about them except for raw input and parse schema. In this file are used "REQUEST_LINE", "REMOTE_ADDR" and "REQUEST_HEADERS"
export.json
The text was updated successfully, but these errors were encountered: