# Ping Sweeps

A ping sweep is a network scanning technique that uses ICMP (Internet Control Message Protocol) to identify live hosts on a network. It's also known as an ICMP sweep or ping scan.

### Nmap

```
nmap -sn 192.168.1.1/24
```

### Linux Ping Sweep

```
 for i in {1..254} ;do (ping -c 1 x.x.x.$i | grep "bytes from" &) ;done
```

### Windows Ping Sweep

```
for /L %i in (1,1,255) do @ping -n 1 -w 200 x.x.x.%i > nul && echo x.x.x.%i is up.
```


---

# 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://alomancy.gitbook.io/guides/cheat-sheets/ping-sweeps.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.
