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.

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

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay