Module: Ruckus::Mutator

Defined in:
lib/ruckus/mutator.rb

Defined Under Namespace

Classes: Adder, FormatStrings, Hibit, Metacharacters, Modifier, Multiplier, Mutator, Number, PathTraversal, Random, Randomizer, Reset, SQLStrings, Str, XSS

Class Method Summary collapse

Class Method Details

.grostring(base = "A", opts = {}) ⇒ Object



309
310
311
# File 'lib/ruckus/mutator.rb', line 309

def grostring(base="A", opts={})
    Str.new(base, [Reset, Adder.new(opts)])
end

.r16Object



305
# File 'lib/ruckus/mutator.rb', line 305

def r16; random_int(:width => 16); end

.r32Object



306
# File 'lib/ruckus/mutator.rb', line 306

def r32; random_int(:width => 32); end

.r64Object



307
# File 'lib/ruckus/mutator.rb', line 307

def r64; random_int(:width => 64); end

.r8Object



304
# File 'lib/ruckus/mutator.rb', line 304

def r8; random_int(:width => 8); end

.random_int(opts = {}) ⇒ Object



300
301
302
# File 'lib/ruckus/mutator.rb', line 300

def random_int(opts={})
    Number.new(1, [Random.new(opts)])
end

.randstr(base = "A") ⇒ Object



313
314
315
# File 'lib/ruckus/mutator.rb', line 313

def randstr(base="A")
    Str.new(base, [Reset, Randomizer])
end