From 92752de651fcbf247f771312a423973e484d7e8c Mon Sep 17 00:00:00 2001 From: sinn3r Date: Wed, 21 Aug 2013 01:20:57 -0500 Subject: [PATCH] Fix undefined method error [FixRM #8324] --- modules/auxiliary/scanner/oracle/spy_sid.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/auxiliary/scanner/oracle/spy_sid.rb b/modules/auxiliary/scanner/oracle/spy_sid.rb index 5326fc21a2..961250ca60 100644 --- a/modules/auxiliary/scanner/oracle/spy_sid.rb +++ b/modules/auxiliary/scanner/oracle/spy_sid.rb @@ -42,7 +42,7 @@ class Metasploit3 < Msf::Auxiliary 'version' => '1.1', }, 5) - if ( res.body =~ /SERVICE_NAME=/ ) + if res and res.body =~ /SERVICE_NAME=/ select(nil,nil,nil,2) sid = res.body.scan(/SERVICE_NAME=([^\)]+)/) report_note(