Sha256: 333b6fa44753a178ada240fca16474aeecdf6c63ca316e2100c41449027d741d
Contents?: true
Size: 1.07 KB
Versions: 13
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe Arachni::Platform::Fingerprinters::Python do include_examples 'fingerprinter' def platforms [:python] end context 'when the page has a .py extension' do it 'identifies it as Python' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah.py' ) end end described_class::IDS.each do |id| context "when there is an X-Powered-By header with #{id}" do it 'identifies it as Python' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'X-Powered-By' => "#{id}/stuff" } } ) end end context "when there is a Server header with #{id}" do it 'identifies it as Python' do check_platforms Arachni::Page.from_data( url: 'http://stuff.com/blah', response: { headers: { 'Server' => "#{id}/stuff" } } ) end end end end
Version data entries
13 entries across 13 versions & 1 rubygems