- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
06-03-2015 02:06 AM
Hi,
I'm not a regex expert, and I'm struggling to figure something out.
I'm making signature that looks at the "Referer" in the http-requst-header.
I've managed to build an expressions that matched on "Referer: http://cnn.com", that looks like this: ".*(Referer: http://cnn\.com)"
What I want to do next is make an expression that matches on everything except http://cnn.com as the referer.
That means it should look for Referer, and then maybe negate "http://cnn.com"?
Any ideas on how to do that?
- Tor
06-03-2015 04:29 PM
So, you're looking for a "negate" operator in the custom vulnerability signature functionality? I don't believe that negate is there today... Check back in a week or so and there might be more information available.
06-04-2015 04:59 AM
Thanks for your reply Jared!
Yeah, i know But I'm actually looking for a way to do this in 6.0/6.1. If it's possible to build the regex in a way that makes it negate the string.
Not sure if it's supported, cause all my attempts have failed.
06-04-2015 07:04 AM
I'm not aware of a way to accomplish what you're asking in 6.0/6.1. 7.0 is supposed to be available today and includes the negate feature.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!