Module: Ronin::Exploits::Params::Port
- Defined in:
- lib/ronin/exploits/params/port.rb
Overview
Class Method Summary collapse
-
.included(exploit) ⇒ Object
private
Adds the required
portparam to the exploit class including Port.
Instance Method Summary collapse
-
#port ⇒ Integer
The
portparam.
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 port param to the exploit class including
Ronin::Exploits::Params::Port.
54 55 56 57 58 59 |
# File 'lib/ronin/exploits/params/port.rb', line 54 def self.included(exploit) exploit.include Metadata::DefaultPort exploit.param :port, Integer, required: true, default: -> { exploit.default_port }, desc: 'Remote port to connect to' end |
Instance Method Details
#port ⇒ Integer
The port param.
66 67 68 |
# File 'lib/ronin/exploits/params/port.rb', line 66 def port params[:port] end |