Class: Ronin::CLI::Commands::Escape Private
- Inherits:
-
StringMethodsCommand
- Object
- Core::CLI::Command
- Ronin::CLI::Command
- FileProcessorCommand
- StringProcessorCommand
- StringMethodsCommand
- Ronin::CLI::Commands::Escape
- 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 [] [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
Instance Attribute Summary
Attributes included from MethodOptions
Attributes inherited from StringProcessorCommand
Method Summary
Methods inherited from StringMethodsCommand
Methods included from MethodOptions
#apply_method_options, #initialize
Methods inherited from StringProcessorCommand
#initialize, #print_string, #process_input, #process_string, #run