> For the complete documentation index, see [llms.txt](https://kashz.gitbook.io/kashz-jewels/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kashz.gitbook.io/kashz-jewels/tricks/subnet-scan.md).

# subnet scan

## bash script

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

## nmap

```bash
nmap -sn X.X.X.1-255
nmap -sn X.X.X.0/24
```
