Sha256: 64c82bea68a73ae0eef50c45044dd441d4c44c2b15754c34031fd91fb3f043d1
Contents?: true
Size: 1.14 KB
Versions: 12
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Nette do include_examples 'fingerprinter' def platforms [:php, :nette] end context 'when there is a Server header' do it 'identifies it as Nette' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => 'Nette/0.1' } } ) end end context 'when there is an X-Powered-By header' do it 'identifies it as Nette' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => 'Nette/0.1' } } ) end end context 'when there is a nette-browser cookie' do it 'identifies it as Nette' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', cookies: [Arachni::Cookie.new( url: 'http://stuff.com/blah', inputs: { 'nette-browser' => 'stuff' } )] ) end end end
Version data entries
12 entries across 12 versions & 1 rubygems