Sha256: b7edde4d5abbd43b50650071cf83f8b28d9db7ee5e00e619de0951a4acfd4891
Contents?: true
Size: 1.14 KB
Versions: 9
Compression:
Stored size: 1.14 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.new( 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.new( 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
9 entries across 9 versions & 1 rubygems