Skip to content

Commit

Permalink
Final Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
emirpolatt authored Oct 19, 2023
1 parent 158271c commit 0a94c03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def run
'X-Atlassian-Token' => 'no-check'
}
)

return fail_with(Msf::Exploit::Failure::NoAccess, 'The admin user could not be created. Try a different username.') unless created_user

print_warning('Admin user was created but setup could not be completed.') unless res&.code == 200
Expand All @@ -112,7 +112,7 @@ def run
protocol: 'tcp',
status: Metasploit::Model::Login::Status::UNTRIED
})

print_good("Admin user was created successfully. Credentials: #{datastore['NEW_USERNAME']} - #{datastore['NEW_PASSWORD']}")
print_good("Now you can login as administrator from: http://#{datastore['RHOSTS']}:#{datastore['RPORT']}#{datastore['TARGETURI']}login.action")
end
Expand Down

0 comments on commit 0a94c03

Please sign in to comment.