---
description: Connect to Targets
---

# \[3] Scan Network for Listening Targets

This action is used to connect to targets where a payload created with option 2 ([Global-Listener](2-global-listener-multiple-targets)) is executed. By default, this command scans the network for machines where a named pipe, named as the one currently set in Amnesiac (used to generate payloads with option 2), is available. If such a payload is found on a target, Amnesiac will establish a connection.

<figure><img src="https://1622982705-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxZYmkSsz78lM8RvvHGKL%2Fuploads%2FPuIsDLz5ftL6lxr23AQV%2Fimage.png?alt=media&#x26;token=44997174-f748-4dfc-b491-261f77ef7c67" alt=""><figcaption></figcaption></figure>

This option is most effective when used in conjunction with the [`Targets`](targets) command. In scenarios with a large network, scanning for all machines with an open pipe for connection can be a time-consuming process. The [`Targets`](targets) command allows users to specify a list of targets, ensuring that Amnesiac only scans those specified machines. This can significantly streamline the process and save time.
