Sha256: e42e287c1c6978678f3784e7df23d1a20ef1a2bda57e0b68503b17d454917249
Contents?: true
Size: 824 Bytes
Versions: 8
Compression:
Stored size: 824 Bytes
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Apache do include_examples 'fingerprinter' context 'when there is an Server header' do it 'identifies it as Apache' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => 'Apache/2.2.21' } } ) platforms_for( page ).should include :apache end end context 'when there is a X-Powered-By header' do it 'identifies it as Apache' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => 'Stuf/0.4 (Apache)' } } ) platforms_for( page ).should include :apache end end end
Version data entries
8 entries across 8 versions & 1 rubygems