Sha256: 512dfb7c772d7bc01c5c15b43e0ba258b5f24d7daabdb50a20254bbff36ac78f
Contents?: true
Size: 924 Bytes
Versions: 2
Compression:
Stored size: 924 Bytes
Contents
=begin Copyright 2010-2017 Sarosys LLC <http://www.sarosys.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 Python resources. # # @author Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> # @version 0.1.2 class Python < Platform::Fingerprinter IDS = %w(python zope zserver wsgi plone) EXTENSION = 'py' def run return update_platforms if extension == EXTENSION IDS.each do |id| return update_platforms if server_or_powered_by_include?( id ) end if cookies.include?( '_ZopeId' ) update_platforms end end def update_platforms platforms << :python end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
arachni-1.5.1 | components/fingerprinters/languages/python.rb |
arachni-1.5 | components/fingerprinters/languages/python.rb |