Locating/capturing server passwords

We know that we have two users: sa and nipun. Let's use one of them and try finding the other user credentials. We can achieve this with the help of the mssql_hashdump module. Let's check it's working and investigate all other hashes as follows:

We can see that we have gained access to the password hashes for other accounts on the database server. We can now crack them using a third-party tool and can elevate or gain access to additional databases and tables as well.

Get Mastering Metasploit - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.