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