Sha256: e02a8f7db093d3c9f40e289654a2e440890b1d223e82db2b5e2b2d5d8119df4c
Contents?: true
Size: 1.09 KB
Versions: 13
Compression:
Stored size: 1.09 KB
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Windows do include_examples 'fingerprinter' def platforms [:windows] end context 'when there is an Server header' do described_class::IDs.each do |id| context "and it contains #{id}" do it 'identifies it as Windows' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => "Apache/2.2.21 (#{id})" } } ) 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 Windows' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => "PHP/5.0 (#{id})" } } ) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems