From befe224c58a3e898e6fbd157843d8122c09d0b06 Mon Sep 17 00:00:00 2001 From: William Vu Date: Wed, 8 Feb 2017 07:24:57 -0600 Subject: [PATCH] Use wordpress_and_online? before actions --- .../auxiliary/scanner/http/wordpress_content_injection.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/auxiliary/scanner/http/wordpress_content_injection.rb b/modules/auxiliary/scanner/http/wordpress_content_injection.rb index 12e36ac69a..f993003606 100644 --- a/modules/auxiliary/scanner/http/wordpress_content_injection.rb +++ b/modules/auxiliary/scanner/http/wordpress_content_injection.rb @@ -66,6 +66,11 @@ class MetasploitModule < Msf::Auxiliary end def run_host(_ip) + if !wordpress_and_online? + print_error("WordPress not detected at #{full_uri}") + return + end + case action.name when 'LIST' do_list