> For the complete documentation index, see [llms.txt](https://wiki.zacheller.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.zacheller.dev/pentest/courses/beginner-network-pentesting/week-1/ipsweep.sh.md).

# ipsweep.sh

```
# iplist.txt:
10.0.2.3
10.0.2.4
10.0.2.2
10.0.2.15
```

```
#!/bin/bash

# ipsweep.sh
if [ "$1" == "" ]
then
echo "Syntax: ./ipsweep.sh xxx.xxx.xxx"

else
for ip in `seq 1 254`; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &
done
fi
```
