Sha256: fec3a4d72fc01f50cafad49567a2eb3846dc1eec0508385952c8b14bdbdc9992

Contents?: true

Size: 873 Bytes

Versions: 7

Compression:

Stored size: 873 Bytes

Contents

=begin
    Copyright 2010-2014 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 JSP resources.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
#
# @version 0.1.1
class JSP < Platform::Fingerprinter

    EXTENSION = 'jsp'
    SESSIONID = 'jsessionid'

    def run
        if extension == EXTENSION || parameters.include?( SESSIONID ) ||
            cookies.include?( SESSIONID ) ||
            server_or_powered_by_include?( 'servlet' ) ||
            server_or_powered_by_include?( 'jsp' )
            platforms << :jsp << :tomcat
        end
    end

end

end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
arachni-1.0.6 components/fingerprinters/languages/jsp.rb
arachni-1.0.5 components/fingerprinters/languages/jsp.rb
arachni-1.0.4 components/fingerprinters/languages/jsp.rb
arachni-1.0.3 components/fingerprinters/languages/jsp.rb
arachni-1.0.2 components/fingerprinters/languages/jsp.rb
arachni-1.0.1 components/fingerprinters/languages/jsp.rb
arachni-1.0 components/fingerprinters/languages/jsp.rb