Skip to content

Commit

Permalink
Add support for XMLEncoder to CLI::EncoderMethods#encoder_type.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 6, 2024
1 parent 248c79b commit 1c568ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ronin/payloads/cli/encoder_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
require_relative '../encoders/shell_encoder'
require_relative '../encoders/powershell_encoder'
require_relative '../encoders/sql_encoder'
require_relative '../encoders/xml_encoder'
require_relative '../encoders/exceptions'

require 'ronin/core/params/exceptions'
Expand All @@ -50,6 +51,7 @@ def encoder_type(encoder_class)
elsif encoder_class < Encoders::ShellEncoder then 'shell'
elsif encoder_class < Encoders::PowerShellEncoder then 'powershell'
elsif encoder_class < Encoders::SQLEncoder then 'sql'
elsif encoder_class < Encoders::XMLEncoder then 'xml'
end
end

Expand Down

0 comments on commit 1c568ca

Please sign in to comment.