From f5387ab3f2d05b2ad8793bef95a7b8029dbedb4f Mon Sep 17 00:00:00 2001 From: wchen-r7 Date: Thu, 23 Jul 2015 20:49:18 -0500 Subject: [PATCH] Fix #5766, check res for send_request_raw Fix #5766 --- .../auxiliary/scanner/http/ms15_034_http_sys_memory_dump.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/auxiliary/scanner/http/ms15_034_http_sys_memory_dump.rb b/modules/auxiliary/scanner/http/ms15_034_http_sys_memory_dump.rb index 0ee3145011..67a5bdd222 100644 --- a/modules/auxiliary/scanner/http/ms15_034_http_sys_memory_dump.rb +++ b/modules/auxiliary/scanner/http/ms15_034_http_sys_memory_dump.rb @@ -88,6 +88,11 @@ class Metasploit3 < Msf::Auxiliary } ) + unless res + vprint_error("#{peer} - Timed out :-(") + return Exploit::CheckCode::Unknown + end + vmessage = "#{peer} - Checking #{uri} [#{res.code}]" if res && res.body.include?('Requested Range Not Satisfiable')