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