Module: Ronin::Exploits::Params::Host

Defined in:
lib/ronin/exploits/params/host.rb

Overview

Adds the required host param to the exploit.

Since:

  • 1.0.0

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(exploit) ⇒ 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.

Adds the required host param to the exploit including Ronin::Exploits::Params::Host.

Parameters:

Since:

  • 1.0.0



42
43
44
# File 'lib/ronin/exploits/params/host.rb', line 42

def self.included(exploit)
  exploit.param :host, required: true, desc: 'Remote host to connect to'
end

Instance Method Details

#hostString

The host param.

Returns:

  • (String)

Since:

  • 1.0.0



51
52
53
# File 'lib/ronin/exploits/params/host.rb', line 51

def host
  params[:host]
end