# Metasploit Datatabase

### Importing Scans

```bash
# Importing an Nmap scan into msfdb
db_import NmapScan-1000.xml

# Importing a Nessus scan into msfdb
load nessus
nessus_scan_list -c
nessus_db_import $id
```

### Searching the Database

```bash
# List all service banners
services -O 6

# List specific port(s)
services -p 80,443

# Search for a specific string
services -S telnet

# Output services that are 'up' to a CSV file
services -u -o AliveServices
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ttp.parzival.sh/red-teaming/c2/metasploit/metasploit_database.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
