Module: Ronin::Exploits::Mixins::Text

Includes:
Support::Text::Random::Mixin
Included in:
SEH, StackOverflow
Defined in:
lib/ronin/exploits/mixins/text.rb

Overview

Generates random text data.

Example

include Mixins::Text

def build buffer = 'GET /' + random_alpha_numeric(5) + '/' + junk(1024) + payload # ... end

Instance Method Summary collapse

Instance Method Details

#junk(char = 'A', count) ⇒ String

Creates a String of junk data.

Parameters:

  • char (String) (defaults to: 'A')

    The character or String or repeat.

  • count (Integer)

    The number of times to repeat the character or String.

Returns:

  • (String)

    The junk data String.

Since:

  • 1.0.0



62
63
64
# File 'lib/ronin/exploits/mixins/text.rb', line 62

def junk(char='A',count)
  char * count
end