Sha256: c5c77eaf8cf9408ea09e46df851d13b594858cb2a6d8a128777851f63f09941d

Contents?: true

Size: 774 Bytes

Versions: 5

Compression:

Stored size: 774 Bytes

Contents

=begin
    Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com>

    This file is part of the Arachni Framework project and is subject to
    redistribution and commercial restrictions. Please see the Arachni Framework
    web site for more information on licensing and terms of use.
=end

module Arachni
module Platform::Fingerprinters

# Identifies Rack applications.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
# @version 0.1.2
class Rack < Platform::Fingerprinter

    SESSIONID = 'rack.session'

    def run
        return if !powered_by.include?( 'mod_rack' ) &&
            !headers.keys.find { |h| h.include? 'x-rack' } &&
            !cookies.include?( SESSIONID )

        platforms << :ruby << :rack
    end

end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.3.2 components/fingerprinters/frameworks/rack.rb
arachni-1.3.1 components/fingerprinters/frameworks/rack.rb
arachni-1.3 components/fingerprinters/frameworks/rack.rb
arachni-1.2.1 components/fingerprinters/frameworks/rack.rb
arachni-1.2 components/fingerprinters/frameworks/rack.rb