Class: Ronin::Payloads::RPC

Inherits:
Payload
  • Object
show all
Defined in:
lib/ronin/payloads/rpc.rb

Overview

A generic payload for interacting with deployed Ronin RPC payloads.

require 'ronin/payloads/rpc'

rpc = Ronin::Payloads::RPC.new
rpc.transport = :http
rpc.host = 'victim.com'
rpc.port = 1337

rpc.build!
rpc.deploy!

rpc.process.getuid
# => 1000

Instance Attribute Summary

Attributes inherited from Payload

#exploit, #helpers, #raw_payload

Attributes included from HasPayload

#payload

Instance Method Summary collapse

Methods inherited from Payload

#build!, #helper

Methods included from Ronin::PostExploitation::Mixin

#fs, #post_exploitation, #process, #resources, #shell

Methods included from HasPayload

#default_payload, #method_missing, #payload_class, #respond_to?, #use_payload!, #use_payload_from!

Methods included from Model::TargetsOS

included

Methods included from Model::TargetsArch

included

Constructor Details

#initialize(attributes = {}) ⇒ RPC

Creates a new RPC payload.


53
54
55
56
57
# File 'lib/ronin/payloads/rpc.rb', line 53

def initialize(attributes={})
  super(attributes)

  helper :rpc
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Ronin::Payloads::HasPayload