diff --git a/lib/metasploit/framework/login_scanner/wordpress_rpc.rb b/lib/metasploit/framework/login_scanner/wordpress_rpc.rb index bf4ea1462a..bf4c4c65d3 100644 --- a/lib/metasploit/framework/login_scanner/wordpress_rpc.rb +++ b/lib/metasploit/framework/login_scanner/wordpress_rpc.rb @@ -37,7 +37,7 @@ module Metasploit if response && response.code == 200 && response.body =~ /401<\/int><\/value>/ || response.body =~ /user_id<\/name>/ result_opts.merge!(status: Metasploit::Model::Login::Status::SUCCESSFUL, proof: response) - elsif res.body =~ /-32601<\/int><\/value>/ + elsif response.body =~ /-32601<\/int><\/value>/ result_opts.merge!(status: Metasploit::Model::Login::Status::UNABLE_TO_CONNECT) else result_opts.merge!(status: Metasploit::Model::Login::Status::INCORRECT, proof: response)