Skip to content

Commit 11004ab

Browse files
committed
typo fix
1 parent 262b541 commit 11004ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/login_scanner/wordpress_rpc.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def attempt_login(credential)
3737

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

0 commit comments

Comments
 (0)