Brute forcing database login

Database logins can be automated and brute forced just like the other methods. In the previous brute force examples, the majority of the code is the same. The major difference between the applications is the function that actually tests the authentication. Instead of repeating all that code again, these snippets will simply demonstrate how to log in to the various databases. Modify the previous brute force scripts to test for one of these instead of the SSH or HTTP method.

To protect against this, limit access to a database to only the machines that need it and disable root remote login.

Go does not provide any database drivers in the standard library, only the interfaces. Therefore, all of these database examples ...

Get Security with Go now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.