Sha256: 02ec6a0e390fcce86d69010c36a303a89aeda51671e44c8655e11d7dbf7d99f0
Contents?: true
Size: 871 Bytes
Versions: 7
Compression:
Stored size: 871 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 PHP resources. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> # # @version 0.1 # class PHP < Platform::Fingerprinter EXTENSION = /php\d*/ # In case it's php5 or something. SESSIONID = 'phpsessid' def run if uri.path =~ /.php\d*\/*/ || extension =~ EXTENSION || parameters.include?( SESSIONID ) || cookies.include?( SESSIONID ) || server_or_powered_by_include?( 'php' ) platforms << :php end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems