Class: Ronin::Payloads::CMD::Ping

Inherits:
Ronin::Payloads::CommandPayload show all
Defined in:
lib/ronin/payloads/builtin/cmd/ping.rb

Overview

A simple ping -c 4 127.0.0.1 command.

Since:

  • 0.2.0

Instance Attribute Summary

Attributes inherited from Payload

#encoders, #payload

Instance Method Summary collapse

Methods inherited from Ronin::Payloads::CommandPayload

payload_type

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

#buildObject

Builds the ping command.

Since:

  • 0.2.0



45
46
47
# File 'lib/ronin/payloads/builtin/cmd/ping.rb', line 45

def build
  @payload = "ping -c #{params[:count]} #{params[:host]}"
end