Sha256: 4eff130556cd8b5eca321a7dbdc6fdf653dd88a4858b268927c26d994d34a851

Contents?: true

Size: 770 Bytes

Versions: 13

Compression:

Stored size: 770 Bytes

Contents

require 'spec_helper'

describe Arachni::Platform::Fingerprinters::Gunicorn do
    include_examples 'fingerprinter'

    def platforms
        [:python, :gunicorn]
    end

    context 'when there is a Server header' do
        it 'identifies it as Gunicorn' do
            check_platforms Arachni::Page.from_data(
                url: 'http://stuff.com/blah',
                response: { headers: { 'Server' => 'gunicorn/18.0' } }
            )
        end
    end

    context 'when there are X-Gunicorn headers' do
        it 'identifies it as Gunicorn' do
            check_platforms Arachni::Page.from_data(
                url: 'http://stuff.com/blah',
                response: { headers: { 'X-Gunicorn-Stuff' => 'Blah' } }
            )
        end
    end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
arachni-1.6.1.3 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.6.1.2 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.6.1.1 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.6.1 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.6.0 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.5.1 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.5 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.4 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.3.2 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.3.1 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.3 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.2.1 spec/components/fingerprinters/servers/gunicorn_spec.rb
arachni-1.2 spec/components/fingerprinters/servers/gunicorn_spec.rb