Module: Ronin::Exploits::Params::BindHost

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

Overview

Adds an optional bind_host param to the exploit.

Since:

  • 1.0.0

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(exploit) ⇒ Object

Adds the bind_host param to the exploit class.

Parameters:

Since:

  • 1.0.0



39
40
41
# File 'lib/ronin/exploits/params/bind_host.rb', line 39

def self.included(exploit)
  exploit.param :bind_host, desc: 'Local host to bind to'
end

Instance Method Details

#bind_hostString

The bind_host param.

Returns:

  • (String)

Since:

  • 1.0.0



48
49
50
# File 'lib/ronin/exploits/params/bind_host.rb', line 48

def bind_host
  params[:bind_host]
end