The following script takes 1 input. The input is the network prefix for a /24 network. It lists all the possible IPs in the given prefix.
Unsolved:
Solved:
Output:
Adding Length Checking
Unsolved:
Solved:
Output:
IP Pinging
Ping your own IP address from the terminal to see how a successful response to pinging looks. Should look like this:
Write a script that pings all the IP addresses in the given network prefix to list active IP addresses.
Unsolved:
Solved:
I had originally attempted to use "64" instead of "bytes from" in my grep statement, but upon further research I found that a successful ping response won't always be 64 bytes, so using 64 may miss other active ping responses that aren't 64 bytes. Using "bytes from" is better for our purposes, as those words won't ever change in a successful ping response.