Sha256: 6e455611bd7da94378fd34b531e62ab5a9ac77ba19a0857b54a43a1b03f8f815
Contents?: true
Size: 904 Bytes
Versions: 9
Compression:
Stored size: 904 Bytes
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Jetty do include_examples 'fingerprinter' context 'when there is an Server header' do it 'identifies it as Jetty' do page = Arachni::Page.new( url: 'http://stuff.com/blah', response_headers: { 'Server' => 'Jetty/2.2.21' } ) platforms_for( page ).should include :jetty platforms_for( page ).should include :jsp end end context 'when there is a X-Powered-By header' do it 'identifies it as Jetty' do page = Arachni::Page.new( url: 'http://stuff.com/blah', response_headers: { 'X-Powered-By' => 'Stuff/0.4 (Jetty)' } ) platforms_for( page ).should include :jetty platforms_for( page ).should include :jsp end end end
Version data entries
9 entries across 9 versions & 1 rubygems