Sha256: 36029694d11fe5d5b5364498e85a6602c38a9c267fd76dfba4c69edc670b9d6e

Contents?: true

Size: 711 Bytes

Versions: 5

Compression:

Stored size: 711 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 Ruby resources.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com>
#
# @version 0.1
class Ruby < Platform::Fingerprinter

    IDs = %w(mod_rack phusion passenger)

    def run
        IDs.each do |id|
            next if !powered_by.include? id
            return platforms << :ruby << :rack
        end
    end

end

end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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