From dcff06eba1a33c5c7d7bfe71492d3ca5dfe100a0 Mon Sep 17 00:00:00 2001 From: Meatballs Date: Fri, 7 Feb 2014 23:59:28 +0000 Subject: [PATCH] More verbose failure messages --- modules/exploits/multi/http/mediawiki_thumb.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/exploits/multi/http/mediawiki_thumb.rb b/modules/exploits/multi/http/mediawiki_thumb.rb index f02ba679de..f3b358f1eb 100644 --- a/modules/exploits/multi/http/mediawiki_thumb.rb +++ b/modules/exploits/multi/http/mediawiki_thumb.rb @@ -343,7 +343,11 @@ class Metasploit3 < Msf::Exploit::Remote }, 1) if r - print_error("Received response, exploit probably failed.") + if r.code == 404 and r.body =~ /not exist/ + print_error("File: #{file_name} does not exist.") + else + print_error("Received response #{r.code}, exploit probably failed.") + end end end