# Import Nmap & Masscan XML

**Example URL:** <https://pentest.ws/e/{engagement.id}/import>

Importing scan results is the fastest way to populate an engagement with real data. PenTest.WS supports XML output from both **Nmap** and **Masscan**, allowing you to bring in discovered hosts and their associated ports in bulk. Instead of manually adding systems one by one, simply drop in your scan files and let PenTest.WS build the host and port inventory for you.

![Scan & Import XML](/files/k63RX0ksLuo3MwFeklX7)

Once you have scanned a target or network range with Nmap or Masscan, import the results in PenTest.WS by drag-and-drop or opening a file dialog.

## Multiple Files

Multiple XML files can be imported at once. These files can be a mix of Nmap and Masscan results, but must be separate files. Click the trash can icon to remove a file from your current import.

## Copy & Paste

You can also Copy & Paste a single XML file contents. This is handy for reverse shell or pivot shells where file extraction is only possible through the clipboard.

## Import Options

**Open ports only:** Only imports tcp/udp ports which are open and accessible. All *closed* or *filtered* ports will not be imported.

**Skip portless hosts:** Do not create host records that do not have any associated ports.

## Default Target

When a new host is discovered in the XML content, PenTest.WS will create a new Host record. You can choose to create Hosts with the target value of either a Hostname or an IP Address.&#x20;

## Tier Availability

**Import XML** is available on all tiers.


---

# 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://docs.pentest.ws/getting-started/import-nmap-and-masscan-xml.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.
