Sha256: e0184cedbd2acf95528064da2c060648546af157be1601dd4c4703c831aa00be

Contents?: true

Size: 772 Bytes

Versions: 13

Compression:

Stored size: 772 Bytes

Contents

require 'spec_helper'

describe Arachni::Platform::Fingerprinters::BSD do
    include_examples 'fingerprinter'

    def platforms
        [:bsd]
    end

    context 'when there is an Server header' do
        it 'identifies it as BSD' do
            check_platforms Arachni::Page.from_data(
                url:     'http://stuff.com/blah',
                response: { headers: { 'Server' => 'Apache/2.2.21 (FreeBSD)' } }
            )
        end
    end

    context 'when there is a X-Powered-By header' do
        it 'identifies it as BSD' do
            check_platforms Arachni::Page.from_data(
                url:     'http://stuff.com/blah',
                response: { headers: { 'X-Powered-By' => 'Stuf/0.4 (FreeBSD)' } }
            )
        end
    end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.6.1.2 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.6.1.1 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.6.1 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.6.0 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.5.1 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.5 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.4 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.3.2 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.3.1 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.3 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.2.1 spec/components/fingerprinters/os/bsd_spec.rb
arachni-1.2 spec/components/fingerprinters/os/bsd_spec.rb