Let's do some compliance check with our bash script. Do: add a new function called servicecheck to the code. It receives
Posted: Fri Jul 01, 2022 5:47 am
Let's do some compliance check with our bash script. Do: add a new function called servicecheck to the code. It receives two arguments, an IP and a port number. In the function, call nmap on the IP and from the results, search for the port number. nmaplog=`nmap $1 | grep $2` If the port number exists in the result, write a warning to the log file. Otherwise, do nothing. Do: check your code on port 135 of the Windows machine. Also check it on port 100. Copy and paste your outputs in the log file (only for this part) in the textbox below.