Sha256: ee95aa5a16b85c8882983150a498d86d01da6a548cf70b7762af11eb1dd0cf05

Contents?: true

Size: 604 Bytes

Versions: 3

Compression:

Stored size: 604 Bytes

Contents

require 'ronin/exploits/targets/buffer_overflow'

require 'spec_helper'

describe Exploits::Targets::BufferOverflow do
  before(:all) do
    @exploit = Exploits::Exploit.create(:name => 'buffer overflow exploit')
  end

  it "should require an ip to overwrite with" do
    target = Exploits::Targets::BufferOverflow.new(:exploit => @exploit)
    target.should_not be_valid

    target.ip = 0xffffeeee
    target.should be_valid
  end

  it "should have a default frame_repeat of 1" do
    target = Exploits::Targets::BufferOverflow.new(:exploit => @exploit)
    target.frame_repeat.should == 1
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ronin-exploits-0.3.1 spec/exploits/targets/buffer_overflow_spec.rb
ronin-exploits-0.3.0 spec/exploits/targets/buffer_overflow_spec.rb
ronin-exploits-0.2.1 spec/exploits/targets/buffer_overflow_spec.rb