From c4ffd7ae36f56560a7fc54fcac85b706bcdfd3f3 Mon Sep 17 00:00:00 2001 From: Jon Hart Date: Mon, 16 Nov 2015 10:38:40 -0800 Subject: [PATCH] When sending SOAP requests, print out proto/status/message when fail --- modules/exploits/linux/http/f5_icall_cmd.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/exploits/linux/http/f5_icall_cmd.rb b/modules/exploits/linux/http/f5_icall_cmd.rb index 84444642ed..dda149f99c 100644 --- a/modules/exploits/linux/http/f5_icall_cmd.rb +++ b/modules/exploits/linux/http/f5_icall_cmd.rb @@ -95,11 +95,7 @@ class Metasploit3 < Msf::Exploit::Remote if res && res.code == 200 return res elsif res - if res.code == 401 - print_error('401 Unauthorized - Check credentials') - else - print_error("#{res.code} - Unknown error") - end + print_error("HTTP/#{res.proto} #{res.code} #{res.message}") else vprint_error('No response') end