Sha256: 4fda960988f7a16f87901c1ebc87fe1a76dc66f49402282b8c4238eb222a06cb
Contents?: true
Size: 897 Bytes
Versions: 9
Compression:
Stored size: 897 Bytes
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::IIS do include_examples 'fingerprinter' context 'when there is an Server header' do it 'identifies it as IIS' do page = Arachni::Page.new( url: 'http://stuff.com/blah', response_headers: { 'Server' => 'IIS/2.2.21' } ) platforms_for( page ).should include :iis platforms_for( page ).should include :windows end end context 'when there is a X-Powered-By header' do it 'identifies it as IIS' do page = Arachni::Page.new( url: 'http://stuff.com/blah', response_headers: { 'X-Powered-By' => 'Stuf/0.4 (IIS)' } ) platforms_for( page ).should include :iis platforms_for( page ).should include :windows end end end
Version data entries
9 entries across 9 versions & 1 rubygems