Skip to content

Instantly share code, notes, and snippets.

@GaxZE
GaxZE / ipsweep.sh
Last active August 9, 2020 12:14
See what ip's are up on a network
#!/bin/bash
if [ "$1" == "" ]
then
echo "Missing ip address"
echo "Syntax: ./ipsweep.sh 192.168.1"
else
for ip in `seq 1 254`; do
ping -c 1 $1.$ip | grep "64 bytes" | cut -d " " -f 4 | tr -d ":" &