Host Discovery - jwells24/Tech-Journal GitHub Wiki
Host Discovery & One-Liners
-
In the activity this week, we learned all about using different methods to scan a target network and report back which machines are online. I did all of my scanning in bash using one-liners, and used ping, fping, & nmap. Below is the link to the one-liners and a short description of what they do.
Tips & Issues
- Coming into this activity, I knew my biggest issue was going to be working with editing the text to accurately produce the IPs that are up. Scanning the ports was the easy part using nmap, fping, and ping, but actually formatting them was the problem. I ended up deciding on awk because it was easy to just match a line and choose an element of that line to add to a new file. I had to research a lot of awk on the manual page and online, but I eventually worked out a method. Nmap was harder because I had to figure out how to use awk to remove lines that were unneccessary as well as pick lines that matched the up description. Also, every one-liner I used dealt with a range of IPs and not a singular IP, but it would work the same with one IP or different range.