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