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