Skip to content

Instantly share code, notes, and snippets.

@kiknaio
Created March 23, 2020 06:29
Show Gist options
  • Save kiknaio/e03d0adcc613a81774bf1abdebbb5eeb to your computer and use it in GitHub Desktop.
Save kiknaio/e03d0adcc613a81774bf1abdebbb5eeb to your computer and use it in GitHub Desktop.
Ping sweep with bash
#!/bin/sh
for i in {1..254} ;do (ping -c 1 192.168.1.$i | grep "bytes from" &) ;done
@kiknaio
Copy link
Author

kiknaio commented Mar 23, 2020

This script will log all the active devices under provided network range.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment