Class: Ronin::Payloads::Encoders::Shell::Encode

Inherits:
Ronin::Payloads::Encoders::ShellEncoder show all
Defined in:
lib/ronin/payloads/encoders/builtin/shell/encode.rb

Overview

A shell encoder that encodes every character in the given String as an Shell special character.

Instance Method Summary collapse

Methods inherited from Encoder

register, #validate

Instance Method Details

#encode(data) ⇒ String

Shell encodes the given data.

Parameters:

  • data (String)

Returns:

  • (String)


53
54
55
# File 'lib/ronin/payloads/encoders/builtin/shell/encode.rb', line 53

def encode(data)
  Support::Encoding::Shell.encode(data)
end