Fix undefined method error

[FixRM #8324]
bug/bundler_fix
sinn3r 2013-08-21 01:20:57 -05:00
parent 77942f0d29
commit 92752de651
1 changed files with 1 additions and 1 deletions

View File

@ -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(