DEV Community

Cover image for How to Create a Workspace in Metasploit Console
Md Shykat
Md Shykat

Posted on

How to Create a Workspace in Metasploit Console

Creating a workspace in the Metasploit Framework console is straightforward and helps in organizing your penetration testing activities. Here's how you can do it:

Steps to Create a Workspace in Metasploit Console

1.Start Metasploit Console

Launch the Metasploit Framework console by typing:

bash:

msfconsole
Enter fullscreen mode Exit fullscreen mode

2.List Existing Workspaces (Optional)

To see a list of all current workspaces, use:

bash:

workspace
Enter fullscreen mode Exit fullscreen mode

3.Create a New Workspace

To create a new workspace, use the following command:

bash:

workspace -a <workspace_name>
Enter fullscreen mode Exit fullscreen mode

Replace with the name you want for the workspace. For example:

bash:

workspace -a test_workspace
Enter fullscreen mode Exit fullscreen mode

4.Switch to the New Workspace

Once created, you can switch to the new workspace using:

bash:

workspace <workspace_name>
Enter fullscreen mode Exit fullscreen mode

Example:

bash:

workspace test_workspace
Enter fullscreen mode Exit fullscreen mode

5.Verify the Current Workspace

To confirm you’re in the correct workspace, use:

bash:

workspace
Enter fullscreen mode Exit fullscreen mode

The currently active workspace will be marked with an asterisk*.

6.Delete a Workspace (Optional)

If you no longer need a workspace, you can delete it with:

bash:

workspace -d <workspace_name>
Enter fullscreen mode Exit fullscreen mode

If you like this post, please do share.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free