Sha256: 5fda9d7281c2e925b8bee299ae415174167f1bc0a1003dc3c36693212cb69bb5

Contents?: true

Size: 950 Bytes

Versions: 13

Compression:

Stored size: 950 Bytes

Contents

require 'spec_helper'

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

    def platforms
        [:asp, :aspx, :windows, :aspx_mvc]
    end

    context 'when there is a __requestverificationtoken cookie' do
        it 'identifies it as ASP.NET MVC' do
            check_platforms Arachni::Page.from_data(
                url:     'http://stuff.com/blah',
                cookies: [Arachni::Cookie.new(
                              url:    'http://stuff.com/blah',
                              inputs: { '__requestverificationtoken' => 'stuff' } )]

            )
        end
    end

    context 'when there is an X-AspNetMvc-Version header' do
        it 'identifies it as ASP.NET MVC' do
            check_platforms Arachni::Page.from_data(
                url: 'http://stuff.com/blah',
                response: { headers: { 'X-AspNetMvc-Version' => '2.0' } }
            )
        end
    end

end

Version data entries

13 entries across 13 versions & 1 rubygems

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