Sha256: 94680dbe78ccb41c445a86a985a31ca61f75f0e01c46becd82b0f52635da8c8c

Contents?: true

Size: 1.3 KB

Versions: 9

Compression:

Stored size: 1.3 KB

Contents

require 'spec_helper'

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

    context 'when the page has a .asp extension' do
        it 'identifies it as ASP' do
            page = Arachni::Page.new( url: 'http://stuff.com/blah.asp' )
            platforms_for( page ).should include :asp
            platforms_for( page ).should include :windows
        end
    end

    context 'when there is a ASPSESSIONID query parameter' do
        it 'identifies it as ASP' do
            page = Arachni::Page.new(
                url:        'http://stuff.com/blah?ASPSESSIONID=stuff',
                query_vars: {
                    'ASPSESSIONID' => 'stuff'
                }
            )
            platforms_for( page ).should include :asp
            platforms_for( page ).should include :windows
        end
    end

    context 'when there is a ASPSESSIONID cookie' do
        it 'identifies it as ASP' do
            page = Arachni::Page.new(
                url:     'http://stuff.com/blah',
                cookies: [Arachni::Cookie.new( 'http://stuff.com/blah',
                                               'ASPSESSIONID' => 'stuff' )]

            )
            platforms_for( page ).should include :asp
            platforms_for( page ).should include :windows
        end
    end

end

Version data entries

9 entries across 9 versions & 1 rubygems

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