From 0eaef9cd6901ef6a3d70648d29f91ea6bcb88544 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Sat, 15 Sep 2012 23:37:15 +0200 Subject: [PATCH] -) Bugfixing -) Added HTTP 500 Status code, since this means there is a file and php encountered an error on execution --- lib/wpscan/wp_target.rb | 2 +- lib/wpstools/parse_svn.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wpscan/wp_target.rb b/lib/wpscan/wp_target.rb index 89af3f91..12e2787f 100644 --- a/lib/wpscan/wp_target.rb +++ b/lib/wpscan/wp_target.rb @@ -74,7 +74,7 @@ class WpTarget # Valid HTTP return codes def self.valid_response_codes - [200, 403, 301, 302] + [200, 403, 301, 302, 500] end # return WpTheme diff --git a/lib/wpstools/parse_svn.rb b/lib/wpstools/parse_svn.rb index a205bb32..aa61e667 100644 --- a/lib/wpstools/parse_svn.rb +++ b/lib/wpstools/parse_svn.rb @@ -93,6 +93,7 @@ class Svn_Parser end # Get a file in each directory + # TODO: exclude files like Thumbs.db (Example: wordpress-23-related-posts-plugin/) def get_svn_file_entries(dirs) entries = [] queue_count = 0