Sha256: cab5232fd20aa8390da6e983ca301c6c6d4c39b2535f3c641ffdaadf9d03a508

Contents?: true

Size: 837 Bytes

Versions: 6

Compression:

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

    IDs = %w(linux ubuntu gentoo debian dotdeb centos redhat sarge etch lenny
                squeeze wheezy jessie) | ['red hat', 'scientific linux']

    def run
        IDs.each do |id|
            next if !server_or_powered_by_include? id
            return platforms << :linux
        end
    end

end

end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
arachni-1.3.2 components/fingerprinters/os/linux.rb
arachni-1.3.1 components/fingerprinters/os/linux.rb
arachni-1.3 components/fingerprinters/os/linux.rb
arachni-1.2.1 components/fingerprinters/os/linux.rb
arachni-1.2 components/fingerprinters/os/linux.rb
arachni-1.1 components/fingerprinters/os/linux.rb