Sha256: 2f2d73158c4d67582f535faf8f0df9090a8129df06ab4fe3cb3f1848d82f8a04

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

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 Java resources.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
# @version 0.1.3
class Java < Platform::Fingerprinter

    EXTENSION = 'jsp'
    SESSIONID = 'jsessionid'

    def run
        if extension == EXTENSION || parameters.include?( SESSIONID ) ||
            server_or_powered_by_include?( 'java' ) ||
            server_or_powered_by_include?( 'servlet' ) ||
            server_or_powered_by_include?( 'jsp' ) ||
            server_or_powered_by_include?( 'jboss' ) ||
            server_or_powered_by_include?( 'glassfish' ) ||
            server_or_powered_by_include?( 'oracle' ) ||
            cookies.include?( SESSIONID )

            platforms << :java
        end
    end

end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.3.2 components/fingerprinters/languages/java.rb
arachni-1.3.1 components/fingerprinters/languages/java.rb
arachni-1.3 components/fingerprinters/languages/java.rb
arachni-1.2.1 components/fingerprinters/languages/java.rb
arachni-1.2 components/fingerprinters/languages/java.rb