Sha256: 44e875a22e01a556a3a653e22faffbc8eef565e644dcc2cd77947fe7a6f34ebc

Contents?: true

Size: 622 Bytes

Versions: 5

Compression:

Stored size: 622 Bytes

Contents

require_relative '../../../spec_helper'

describe name_from_filename do
    include_examples 'module'

    def self.targets
        %w(Generic)
    end

    def self.elements
        [ Element::BODY, Element::HEADER ]
    end

    def issue_count
        2
    end

    easy_test( false ) do
        header_issue = issues.select { |i| i.elem == Element::HEADER }.first
        header_issue.var.should == 'Disclosure'
        header_issue.opts[:match].should == '192.168.1.121'

        body_issue   = issues.select { |i| i.elem == Element::BODY }.first
        body_issue.opts[:match].should == '192.168.1.12'
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.4.2 spec/modules/recon/grep/private_ip_spec.rb
arachni-0.4.1.3 spec/modules/recon/grep/private_ip_spec.rb
arachni-0.4.1.2 spec/modules/recon/grep/private_ip_spec.rb
arachni-0.4.1.1 spec/modules/recon/grep/private_ip_spec.rb
arachni-0.4.1 spec/modules/recon/grep/private_ip_spec.rb