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