Sha256: c1413abf2c7de64d8f273af83d53e992211d470e39303525ec7c04c20357cbdc

Contents?: true

Size: 634 Bytes

Versions: 2

Compression:

Stored size: 634 Bytes

Contents

require 'ronin/generators/payloads/shellcode'
require 'ronin/payloads/shellcode'

require 'spec_helper'
require 'generators/payloads/payload_examples'

require 'tmpdir'
require 'fileutils'

describe Generators::Payloads::Shellcode do
  before(:all) do
    @path = File.join(Dir.tmpdir,'generated_payload.rb')

    Generators::Payloads::Shellcode.generate(
      {},
      [@path]
    )

    @payload = Payloads::Shellcode.load_from(@path)
  end

  it_should_behave_like "a Payload"

  it "should define a Shellcode payload" do
    @payload.class.should == Payloads::Shellcode
  end

  after(:all) do
    FileUtils.rm(@path)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-0.3.1 spec/generators/payloads/shellcode_spec.rb
ronin-exploits-0.3.0 spec/generators/payloads/shellcode_spec.rb