Sha256: 9e411d47e83b39f5e753164be6426c7f7a1cd11bae9e0dd09e50755aaddb7373
Contents?: true
Size: 767 Bytes
Versions: 13
Compression:
Stored size: 767 Bytes
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Nginx do include_examples 'fingerprinter' def platforms [:nginx] end context 'when there is an Server header' do it 'identifies it as Nginx' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => 'Nginx/2.2.21' } } ) end end context 'when there is a X-Powered-By header' do it 'identifies it as Nginx' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => 'Stuf/0.4 (Nginx)' } } ) end end end
Version data entries
13 entries across 13 versions & 1 rubygems