Sha256: 148a28bb2f0026d2c9d7951112654934d5245c3899ad3c805e3c0c789b6a6bc2

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 Tomcat web servers.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
# @version 0.1
class Tomcat < Platform::Fingerprinter

    IDS = %w(coyote tomcat)

    def run
        IDS.each do |id|
            next if !server_or_powered_by_include? id

            return update_platforms
        end
    end

    def update_platforms
        platforms << :java << :tomcat
    end

end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-1.3.2 components/fingerprinters/servers/tomcat.rb
arachni-1.3.1 components/fingerprinters/servers/tomcat.rb
arachni-1.3 components/fingerprinters/servers/tomcat.rb
arachni-1.2.1 components/fingerprinters/servers/tomcat.rb
arachni-1.2 components/fingerprinters/servers/tomcat.rb