Class: Ronin::Payloads::CLI::Commands::Encoders Private
- Inherits:
 - 
      Ronin::Payloads::CLI::Command
      
        
- Object
 - Core::CLI::Command
 - Ronin::Payloads::CLI::Command
 - Ronin::Payloads::CLI::Commands::Encoders
 
 
- Defined in:
 - lib/ronin/payloads/cli/commands/encoders.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.
Lists available encoders or a specific encoder.
Usage
ronin-payloads encoders [options] [DIR]
Options
-h, --help                       Print help information
Arguments
[DIR]                            The optional directory to list
  Instance Method Summary collapse
- 
  
    
      #run(dir = nil)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  private
  
    
Runs the
ronin-payloads encoderscommand. 
Instance Method Details
#run(dir = nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Runs the ronin-payloads encoders command.
      61 62 63 64 65 66 67 68 69 70 71 72 73 74 75  | 
    
      # File 'lib/ronin/payloads/cli/commands/encoders.rb', line 61 def run(dir=nil) files = if dir dir = "#{dir}/" unless name.end_with?('/') Payloads::Encoders.list_files.select do |file| file.start_with?(dir) end else Payloads::Encoders.list_files end files.each do |file| puts " #{file}" end end  |