Sha256: f58aeb5d2fd1e9bb968849174f2d52dfa5d4ee330badc7fd199e5280e816b536

Contents?: true

Size: 612 Bytes

Versions: 2

Compression:

Stored size: 612 Bytes

Contents

require 'ronin/exploits/remote_tcp'

require 'spec_helper'

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

  it "should include the TCP Session module" do
    Exploits::RemoteTCP.include?(Network::Helpers::TCP).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_tcp_spec.rb
ronin-exploits-0.3.0 spec/exploits/remote_tcp_spec.rb