Changing the prompt and making use of database variables

How cool is it to work on your favorite penetration testing framework and have your prompt? Very easy, I would say. To have your prompt in Metasploit, all you need to do is to set a prompt variable to anything of your choice. Taking the fun apart, suppose that you tend to forget what workspace you are currently using, you can make use of prompt with the database variable %W to have it in easy access, as shown in the following screenshot:

In addition, you can always do something like what's shown in the following screenshot:

We can see that we have used %D to display the current local ...

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.