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 require a third-party package from GitHub, as well as a running instance of the database to connect to. This book does not cover how to...