> For the complete documentation index, see [llms.txt](https://ttp.parzival.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ttp.parzival.sh/red-teaming/c2/metasploit.md).

# Metasploit

```bash
# Installing the Metasploit Framework
curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && chmod 755 msfinstall && ./msfinstall
```

### Basic Usage

```bash
# Access msfconsole
./msfconsole

# Enable and start the database
msfdb init

# Delete and reinit the database
msfdb reinit

# Stop the database
msfdb stop

# Delete the database
msfdb delete
```

### References

{% embed url="<https://docs.rapid7.com/metasploit/msf-overview/>" %}
