Sha256: f58716e5c04f6c36b9c665517c21433b06a95abf7231ad0229764f55cd87d5a0

Contents?: true

Size: 604 Bytes

Versions: 1

Compression:

Stored size: 604 Bytes

Contents

require 'ronin/exploits/remote_udp'

require 'spec_helper'

describe Exploits::RemoteUDP do
  before(:all) do
    @exploit = Exploits::RemoteUDP.new(
      :default_port => 22,
      :host => '127.0.0.1'
    )
  end

  it "should include the UDP Session module" do
    Exploits::RemoteUDP.include?(Sessions::UDP).should == true
  end

  it "should initialize all parameters by default" do
    @exploit.params.should_not be_empty
  end

  it "should default the port to the default_port before deploying" do
    @exploit.build!

    @exploit.deploy! do |exp|
      exp.port.should == 22
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ronin-exploits-0.2.1 spec/exploits/remote_udp_spec.rb