bug/bundler_fix
Cenk Kalpakoğlu 2014-09-11 16:27:35 +03:00
parent 262b5413bc
commit 11004ab7c6
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module Metasploit
if response && response.code == 200 && response.body =~ /<value><int>401<\/int><\/value>/ || response.body =~ /<name>user_id<\/name>/ if response && response.code == 200 && response.body =~ /<value><int>401<\/int><\/value>/ || response.body =~ /<name>user_id<\/name>/
result_opts.merge!(status: Metasploit::Model::Login::Status::SUCCESSFUL, proof: response) result_opts.merge!(status: Metasploit::Model::Login::Status::SUCCESSFUL, proof: response)
elsif res.body =~ /<value><int>-32601<\/int><\/value>/ elsif response.body =~ /<value><int>-32601<\/int><\/value>/
result_opts.merge!(status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT) result_opts.merge!(status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT)
else else
result_opts.merge!(status: Metasploit::Model::Login::Status::INCORRECT, proof: response) result_opts.merge!(status: Metasploit::Model::Login::Status::INCORRECT, proof: response)