Search This Blog

2020-09-23

Terminal Ping Sweep

Result: List of IP addresses that respond to ping on the specified prefix
  1. Modify the prefix variable as necessary, and paste into terminal
  2. prefix="192.168.0."
  3. Copy and Paste the rest of the following script into the terminal application
  4. for i in {1..100}
    do
            ping -c1 -W1 -i0.2 $prefix$i > /dev/null
            if [ $? -eq 0 ]
            then
                    echo $prefix$i
            fi
    done
    

No comments:

Post a Comment