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