@markartisan. I found your contribution here very interesting but I am not sure if your advice would resolve my lock-out problem.
After I found that the site was hacked, I changed the username and password through the ControlPanel Myphp and also removed the hackers credentials, but I am still not able to access the WP dashboard. The wp-admin page currently shows a link to upload. Please help. thanks