Sha256: 9562ec5db7782ea31d5879fc5b0f5f891d20056fbe106708f89d2d7d7c8c3746
Contents?: true
Size: 1.16 KB
Versions: 8
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Solaris do include_examples 'fingerprinter' context 'when there is an Server header' do described_class::IDs.each do |id| context "and it contains #{id}" do it 'identifies it as Solaris' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => "Apache/2.2.21 (#{id})" } } ) platforms_for( page ).should include :solaris end end end end context 'when there is a X-Powered-By header' do described_class::IDs.each do |id| context "and it contains #{id}" do it 'identifies it as Solaris' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => "Apache/2.2.21 (#{id})" } } ) platforms_for( page ).should include :solaris end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems