Skip to content

Commit 44f7db4

Browse files
committed
Refactoring Success Case
I have refactored the code so that it will work with non-root accounts.
1 parent f8d6af6 commit 44f7db4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/login_scanner/buffalo.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def attempt_login(credential)
4747
})
4848
res = cli.send_recv(req)
4949
body = JSON.parse(res.body)
50-
if res && body.has_key?('data') && body['data'].length && body['data'][0]['pageMode'] == 0
50+
if res && body.has_key?('success') && body['success']
5151
result_opts.merge!(status: Metasploit::Model::Login::Status::SUCCESSFUL, proof: res.body)
5252
else
5353
result_opts.merge!(status: Metasploit::Model::Login::Status::INCORRECT, proof: res)

0 commit comments

Comments
 (0)