In this recipe, we will explore how to use Metasploit to attack a PostgreSQL database server using the PostgreSQL Scanner module. PostgreSQL is touted as being the world's most advanced open source database and is said to be an enterprise-class database by many enthusiasts. We will use Metasploit in order to apply brute force to a PostgreSQL login.
The following requirement needs to be fulfilled:
Let's begin our PostgreSQL attack by opening a terminal window: