components/checks/passive/backdoors.rb in arachni-1.3.2 vs components/checks/passive/backdoors.rb in arachni-1.4

- old
+ new

@@ -1,7 +1,7 @@ =begin - Copyright 2010-2015 Tasos Laskos <tasos.laskos@arachni-scanner.com> + Copyright 2010-2016 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 @@ -14,10 +14,12 @@ def self.filenames @filenames ||= read_file( 'filenames.txt' ) end def run + return if page.code != 200 + path = get_path( page.url ) return if audited?( path ) self.class.filenames.each { |file| log_remote_file_if_exists( path + file ) } audited( path ) @@ -27,10 +29,10 @@ { name: 'Backdoors', description: %q{Tries to find common backdoors on the server.}, elements: [Element::Server], author: 'Tasos "Zapotek" Laskos <tasos.laskos@arachni-scanner.com> ', - version: '0.2.5', + version: '0.2.6', exempt_platforms: Arachni::Platform::Manager::FRAMEWORKS, issue: { name: %q{A backdoor file exists on the server}, description: %q{