Module: Ronin::Exploits::Params::BindPort
- Defined in:
- lib/ronin/exploits/params/bind_port.rb
Overview
Adds an optional bind_port
param to the exploit.
Class Method Summary collapse
-
.included(exploit) ⇒ Object
Adds the
bind_port
param to the exploit class.
Instance Method Summary collapse
-
#bind_port ⇒ Integer
The
bind_port
param.
Class Method Details
.included(exploit) ⇒ Object
Adds the bind_port
param to the exploit class.
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_port ⇒ Integer
The bind_port
param.
48 49 50 |
# File 'lib/ronin/exploits/params/bind_port.rb', line 48 def bind_port params[:bind_port] end |