Sha256: 683fa638e05620485d3307fa494012ee4013cc959c329f2edbc6bcbc8adaaa3b
Contents?: true
Size: 795 Bytes
Versions: 9
Compression:
Stored size: 795 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.new( 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.new( 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
9 entries across 9 versions & 1 rubygems