Sha256: 4d17db5069d2d41dc6828085584722eba12cea3a0f397f836c4c217dfbc2263c

Contents?: true

Size: 574 Bytes

Versions: 11

Compression:

Stored size: 574 Bytes

Contents

require 'spec_helper'

describe name_from_filename do
    include_examples 'check'

    def self.elements
        [ Element::Body, Element::Header ]
    end

    def issue_count
        2
    end

    easy_test( false ) do
        header_issue = issues.select { |i| i.vector.class == Element::Header }.first
        expect(header_issue.vector.name).to eq 'Disclosure'
        expect(header_issue.proof).to eq '192.168.1.121'

        body_issue  = issues.select { |i| i.vector.class == Element::Body }.first
        expect(body_issue.proof).to eq '192.168.1.12'
    end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.6.1.2 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.6.1.1 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.6.1 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.6.0 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.5.1 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.5 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.4 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.3.2 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.3.1 spec/components/checks/passive/grep/private_ip_spec.rb
arachni-1.3 spec/components/checks/passive/grep/private_ip_spec.rb