Open KimiNewt opened 2 years ago
I wrote this tool more for Suricata than Snort, and Suricata does not accept such a rule. I'm a little hesitant to make this change as I don't use this code myself anymore, but others do depend on it.
A quick look at pulledpork3 source code and it looks like it wouldn't accept this rule either, at least not with rev
at the end.
Rule that end their last option without a semi-colon fail parsing, while snort accepts them. e.g.
This happens in
rule.py
'sfind_opt_end()
, since it only looks for a semi-colon. A simple solution seems to also search for an ending parenthesis in case a semi-colon isn't found, but I'm ot sure if this could result in unexpected behaviour.