Activity 2.1: Host Discovery - squatchulator/Tech-Journal GitHub Wiki
Lab Processes
Reflection
In this activity, I got stuck on creating the script for doing a ping sweep. Mostly this was an issue regarding how best to cut the IPs out from the output of valid pings. To solve this, I used a mix of grep
, cut
, and tr
to separate IPs from the ping output, and append them to a file. I found that this was an issue when writing the NMAP scan script as well, especially considering the output was split between two lines; the line with the IP address I needed to identify, and the line saying that the host resolved OK.