Sha256: 621b58f44eb9a57f38e9bd3f60726519b98e2130f34e5c7679a0901d25c0cf66

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 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?(Network::Helpers::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

2 entries across 2 versions & 1 rubygems

Version Path
ronin-exploits-0.3.1 spec/exploits/remote_udp_spec.rb
ronin-exploits-0.3.0 spec/exploits/remote_udp_spec.rb