Class: Ronin::CLI::Commands::Escape Private

Inherits:
StringMethodsCommand show all
Defined in:
lib/ronin/cli/commands/escape.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Escapes each special character for a variety of encodings.

Usage

ronin escape [options] [FILE ...]

Options

-f, --file FILE                  Optional file to process
    --string STRING              Optional string to process
-M, --multiline                  Process each line separately
-n, --keep-newlines              Preserves newlines at the end of each line
-c, --c                          Escapes the data as a C string
-X, --hex                        Escapes the data as a hex string (ex: ABC\x01\x02\x03...)
-H, --html                       HTML escapes the data
-u, --uri                        URI escapes the data
    --http                       HTTP escapes the data
-j, --js                         JavaScript escapes the data
-S, --shell                      Escapes the data as a Shell String
-P, --powershell                 Escapes the data as a PowerShell String
-Q, --quoted-printable           Escapes the data as Quoted Printable
-R, --ruby                       Escapes the data as a Ruby String
-x, --xml                        XML escapes the data
-h, --help                       Print help information

Arguments

[FILE ...]                       Optional file(s) to process

Since:

  • 2.0.0

Instance Attribute Summary

Attributes included from MethodOptions

#method_calls

Attributes inherited from StringProcessorCommand

#input_values

Method Summary

Methods inherited from StringMethodsCommand

#process_string

Methods included from MethodOptions

#apply_method_options, #initialize

Methods inherited from StringProcessorCommand

#initialize, #print_string, #process_input, #process_string, #run

Methods inherited from FileProcessorCommand

#open_file, #process_file, #process_input, #run