class

Crowbar::Mutators::DictionaryMutator

Inherits Crowbar::Mutator < Reference < Object

Injects or replaces tokens from a configurable or built-in token vocabulary

Constants

DEFAULT_TOKENS = ["null", "nil", "true", "false", "undefined", "NaN", "Infinity", "0", "1", "-1", "undefined", "None", "GET", "POST", "PUT", "DELETE", "OPTIONS", "application/json", "text/html", "multipart/form-data", "localhost", "127.0.0.1", "::1", "0.0.0.0", "admin", "root", "guest", "anonymous", "Bearer", "Basic", "token", "password", "<?xml", "<!DOCTYPE", "<html", "<script"]

Constructors

new(custom_tokens : Array(String) | Nil = nil, weight : Float64 = 1.0)
Source

Instance methods

add_tokens(new_tokens : Iterable(String))
Source
description
Source
mutate(context : Context, buffer : Buffer, target_range : Tuple(Int32, Int32) | Nil = nil) : Tuple(Bool, Int32)
Source
name
Source
tokens
Source
tokens=(tokens : Array(String))
Source