Sha256: 9de874969b7e5069f8aa2049eef0eebb4b7a207294ab830258c3a094ceb3f1a3

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 Bytes

Contents

ronin_payload do
  parameter :custom,
            :default => 'func',
            :description => 'Custom value to use in building the payload'

  cache do
    self.name = 'simple'

    author :name => 'Anonymous', :email => 'anonymous@example.com'
  end

  def build
    @raw_payload = "code.#{@custom}"
  end

  def some_control
    'control data'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-0.3.1 spec/objects/payloads/simple.rb
ronin-exploits-0.3.0 spec/objects/payloads/simple.rb