Sha256: f1172a3de2edc86d980c44a54309bc962c6483d26344b534eedecdcacfa3c4ae

Contents?: true

Size: 409 Bytes

Versions: 2

Compression:

Stored size: 409 Bytes

Contents

require 'ronin/exploits/exploitable'

require 'spec_helper'

describe Exploits::Exploitable do
  before(:all) do
    class Vulnerable

      include Exploits::Exploitable

      has_exploits :test do |obj|
        [Exploits::Exploit.new(:name => :first_generated)]
      end

      has_exploits :test_two do |obj|
        [Exploits::BinaryExploit.new(:name => :second_generated)]
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-0.1.0 spec/exploits/exploitable_spec.rb
ronin-exploits-0.1.1 spec/exploits/exploitable_spec.rb