Sha256: e1348d3bcd47c52fa3478a113d42181b6be6311f983d3a9f74939d96b0dea68c
Contents?: true
Size: 1.38 KB
Versions: 8
Compression:
Stored size: 1.38 KB
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Rack do include_examples 'fingerprinter' context 'when there is a rack.session cookie' do it 'identifies it as Rack' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', cookies: [Arachni::Cookie.new( url: 'http://stuff.com/blah', inputs: { 'rack.session' => 'stuff' } )] ) platforms_for( page ).should include :ruby platforms_for( page ).should include :rack end end context 'when there is a Server header' do it 'identifies it as Rack' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => 'mod_rack' } } ) platforms_for( page ).should include :ruby platforms_for( page ).should include :rack end end context 'when there is an X-Powered-By header' do it 'identifies it as Rack' do page = Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => 'mod_rack' } } ) platforms_for( page ).should include :ruby platforms_for( page ).should include :rack end end end
Version data entries
8 entries across 8 versions & 1 rubygems