Class: Ronin::Payloads::PHP::DownloadExec

Inherits:
Ronin::Payloads::PHPPayload show all
Includes:
Mixins::ERB
Defined in:
lib/ronin/payloads/builtin/php/download_exec.rb

Overview

A basic PHP download and exec payload.

Since:

  • 0.2.0

Constant Summary collapse

TEMPLATE =

Since:

  • 0.2.0

File.join(__dir__,'download_exec.php.erb')

Instance Attribute Summary

Attributes inherited from Ronin::Payloads::Payload

#encoders, #payload

Instance Method Summary collapse

Methods inherited from Ronin::Payloads::PHPPayload

payload_type

Methods inherited from Ronin::Payloads::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

#buildObject

Builds the PHP command exec payload.

Since:

  • 0.2.0



47
48
49
# File 'lib/ronin/payloads/builtin/php/download_exec.rb', line 47

def build
  @payload = erb(TEMPLATE)
end