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