Sha256: 6175989b037fc053d19463854839681a4da6d14f99eae3deb616e3d8a7b22d24
Contents?: true
Size: 1.14 KB
Versions: 8
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Ruby 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 Ruby' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => "Apache/2.2.21 (#{id})" } } ) platforms_for( page ).should include :ruby 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 Ruby' 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 :ruby end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems