Sha256: 779ce70011e0f6b84d8f27cba8c077665d517a7c8bf9f4e1ad07f36dc9b88215
Contents?: true
Size: 1.25 KB
Versions: 8
Compression:
Stored size: 1.25 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.from_data( 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.from_data( url: 'http://stuff.com/blah?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.from_data( url: 'http://stuff.com/blah', cookies: [Arachni::Cookie.new( url: 'http://stuff.com/blah', inputs: { 'ASPSESSIONID' => 'stuff' } )] ) platforms_for( page ).should include :asp platforms_for( page ).should include :windows end end end
Version data entries
8 entries across 8 versions & 1 rubygems