Sha256: f474ce46d8c89b0c0defaf03bd9b9cba0d2acc4f8d2fef8992ef70575bd32411

Contents?: true

Size: 798 Bytes

Versions: 9

Compression:

Stored size: 798 Bytes

Contents

require 'spec_helper'

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

    context 'when there is an Server header' do
        it 'identifies it as BSD' do
            page = Arachni::Page.new(
                url:     'http://stuff.com/blah',
                response_headers: { 'Server' => 'Apache/2.2.21 (FreeBSD)' }
            )
            platforms_for( page ).should include :bsd
        end
    end

    context 'when there is a X-Powered-By header' do
        it 'identifies it as BSD' do
            page = Arachni::Page.new(
                url:     'http://stuff.com/blah',
                response_headers: { 'X-Powered-By' => 'Stuf/0.4 (FreeBSD)' }
            )
            platforms_for( page ).should include :bsd
        end
    end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
arachni-0.4.7 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.6 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.5.2 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.5.1 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.5 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.4 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.3.2 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.3.1 spec/fingerprinters/os/bsd_spec.rb
arachni-0.4.3 spec/fingerprinters/os/bsd_spec.rb