Actions
Feature #2076
closed
JW
VJ
Strip whitespace from buffers
Feature #2076:
Strip whitespace from buffers
Effort:
Difficulty:
Label:
Description
It would be very useful to be able to have a modifier that we could apply to buffers that would normalize/eliminate whitespace. This would be most useful in the file_data; section and would significantly reduce pcre usage when dealing with html and javascript signatures.
For example in javascript you can have:
'window . location = '
We have to write pcres to account for this possible whitespace such as:
content:"window"; pcre:"/^\s*\.\s*location\s*=\s*/";
It would be very useful if we could write this as:
file_data; content:"window.location="; ignore_whitespace;
Actions