Project

General

Profile

Actions

Feature #2076

closed

Strip whitespace from buffers

Added by Jason Williams over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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

Also available in: Atom PDF