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.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay