Let's do some compliance check with our bash script. Do: add a new function called servicecheck to the code. It receives

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post by answerhappygod »

Let S Do Some Compliance Check With Our Bash Script Do Add A New Function Called Servicecheck To The Code It Receives 1
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 35 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply