Sha256: cb14f280c67bde7cebaeb7b1fce317d28b6dbdfc6d613854b8c608b324a35ed2
Contents?: true
Size: 765 Bytes
Versions: 13
Compression:
Stored size: 765 Bytes
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::IIS do include_examples 'fingerprinter' def platforms [:iis, :windows] end context 'when there is an Server header' do it 'identifies it as IIS' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => 'IIS/2.2.21' } } ) end end context 'when there is a X-Powered-By header' do it 'identifies it as IIS' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => 'Stuf/0.4 (IIS)' } } ) end end end
Version data entries
13 entries across 13 versions & 1 rubygems