Skip to content

[Feature Request] pm support more delimiter #2699

Closed
@daixiang0

Description

@daixiang0

Describe the bug

OWASP uses pmFromFile file.data to cover static data, I have a case that uses WASM to call ModSecurity.

WASM does not support file actions, so I need to convert static data to a stringlike below:
pmFrom file.data ==> pm '(a)' '\"b\"' ...

file.data:

(a)
"b"

I guess pmFromFile uses line break as the delimiter, so a line in the file.data can include single quote, double quote, escape character and so on, while I need to convert file content to one string, the only way I knew is add escape char, which is hard to handle all cases.

As a rule may be like:

.... "pm 'a' 'b' " ...

Can pm support more delimiter like sed does( sed "s#a#b#", sed "s?a?b?"), it may help me.

As I am not the expert of ModSecurity, is there any better solution to do convert things or no need any convert?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions