- Let S Do Some Compliance Check With Our Bash Script Do Add A New Function Called Servicecheck To The Code It Receives 1 (71.5 KiB) Viewed 34 times
Let's do some compliance check with our bash script. Do: add a new function called servicecheck to the code. It receives
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Let's do some compliance check with our bash script. Do: add a new function called servicecheck to the code. It receives
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.