Module: Ronin::Exploits::Helpers::FormatString
- Defined in:
- lib/ronin/exploits/helpers/format_string.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#format_string ⇒ String
The format string of the exploit.
-
#targeting(attributes = {}) {|target| ... } ⇒ Object
Adds a new target to the exploit.
-
#use_payload_class ⇒ Payloads::Shellcode
The model which will be searched for acceptable payloads.
Class Method Details
Instance Method Details
#format_string ⇒ String
Returns The format string of the exploit.
40 41 42 |
# File 'lib/ronin/exploits/helpers/format_string.rb', line 40 def format_string @format_string ||= '' end |
#targeting(attributes = {}) {|target| ... } ⇒ Object
Adds a new target to the exploit.
56 57 58 |
# File 'lib/ronin/exploits/helpers/format_string.rb', line 56 def targeting(attributes={},&block) self.targets << Targets::FormatString.new(attributes,&block) end |
#use_payload_class ⇒ Payloads::Shellcode
Returns The model which will be searched for acceptable payloads.
66 67 68 |
# File 'lib/ronin/exploits/helpers/format_string.rb', line 66 def use_payload_class Payload::Shellcode end |