Module: Ronin::Exploits::Params::Host
- Defined in:
- lib/ronin/exploits/params/host.rb
Overview
Adds the required host
param to the exploit.
Class Method Summary collapse
-
.included(exploit) ⇒ Object
private
Adds the required
host
param to the exploit including Host.
Instance Method Summary collapse
-
#host ⇒ String
The
host
param.
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.
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
#host ⇒ String
The host
param.
51 52 53 |
# File 'lib/ronin/exploits/params/host.rb', line 51 def host params[:host] end |