From dc6c8b2eb8b22dcb90dde5bdc1bf0e749e2796c9 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Thu, 6 Dec 2012 17:04:16 -0600 Subject: [PATCH] Fix #57 Plugins form passive detection no longer loaded when enumerating only vulnerable plugins --- lib/wpscan/wp_detector.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wpscan/wp_detector.rb b/lib/wpscan/wp_detector.rb index 40362e94..75d82bf3 100644 --- a/lib/wpscan/wp_detector.rb +++ b/lib/wpscan/wp_detector.rb @@ -23,7 +23,9 @@ class WpDetector result = items if items == nil or items.length == 0 - result = passive_detection(options[:base_url], options[:type], options[:wp_content_dir]) + unless options[:only_vulnerable_ones] + result = passive_detection(options[:base_url], options[:type], options[:wp_content_dir]) + end end enum_results = WpEnumerator.enumerate(options)