Class: MetasploitPayloads::Mettle
- Inherits:
-
Object
- Object
- MetasploitPayloads::Mettle
- Defined in:
- lib/metasploit_payloads/mettle.rb,
lib/metasploit_payloads/mettle/version.rb
Constant Summary collapse
- VERSION =
'0.1.9'
Instance Attribute Summary collapse
-
#config ⇒ Object
Config is a hash.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(triple, config = {}) ⇒ Mettle
constructor
A new instance of Mettle.
-
#to_binary(format = :process_image) ⇒ Object
Available formats are :process_image and :exec.
Constructor Details
#initialize(triple, config = {}) ⇒ Mettle
Returns a new instance of Mettle.
22 23 24 25 |
# File 'lib/metasploit_payloads/mettle.rb', line 22 def initialize(triple, config={}) @platform = triple.clone @config = config.clone end |
Instance Attribute Details
#config ⇒ Object
Config is a hash. Valid keys are:
:uri to connect to
:uuid of the payload
:debug to enable
:log_file to log to places other than stderr
20 21 22 |
# File 'lib/metasploit_payloads/mettle.rb', line 20 def config @config end |
Class Method Details
.version ⇒ Object
6 7 8 |
# File 'lib/metasploit_payloads/mettle/version.rb', line 6 def self.version VERSION end |
Instance Method Details
#to_binary(format = :process_image) ⇒ Object
Available formats are :process_image and :exec
30 31 32 33 34 |
# File 'lib/metasploit_payloads/mettle.rb', line 30 def to_binary(format=:process_image) bin = self.class.read(@platform, format) params = generate_argv add_args(bin, params) end |