Module: Ronin::Exploits::Params::BindPort

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

Overview

Adds an optional bind_port 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_port param to the exploit class.

Parameters:

Since:

  • 1.0.0



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

def self.included(exploit)
  exploit.param :bind_port, Integer, desc: 'Local port to bind to'
end

Instance Method Details

#bind_portInteger

The bind_port param.

Returns:

  • (Integer)

Since:

  • 1.0.0



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

def bind_port
  params[:bind_port]
end