Cybersecurity course

profileDudecol
id-cyberops.sh

#!/bin/bash ########################### #Student ID: ########################### ################################################################ # Start of comment block ################################################################ #Each function represents one subtask for the assessment #You ***MUST*** place ***ALL*** code within the task function ################################################################ #If I had the follow task, as an example: #"Display, to standard output, all the files with a #.java extension in present working directory" #The function will look like: # # function example_task { # ls *.java # } # #Another example task with function: #"Prompt the user for a greeting, via standard output, and display #the greeting via standard output" # # function example_task_2 { # #this task uses examples from http://example.com # #to help read input # read -p "Please enter a greeting: " greeting # echo $greeting # } # ################################################################# #Delete the echo statements in each function when you start #Remember, you will get an error if your function body is blank #so leave the echo statement there until you are ready to work on #the task. ################################################################# #You are welcome to delete this comment block once you are happy #with its instructions ################################################################# #### task 1 #### function task1_q1 { : #<--- delete this colon in all functions when starting work on the task } function task1_q2 { #remember, when prompting user for input use the command: #read -p "<some text prompt>: " some_var : } function task1_q3 { : } function task1_q4 { : } function task1_q5 { : } #### task 2 #### function task2_q1 { : } function task2_q2 { : } function task2_q3 { : } function task2_q4 { : } #### task 3 #### function task3_q1 { : } function task3_q2 { : } ##### Execute your functions below this comment (do not delete this comment) ###### #task1_q1 #task1_q2 #etc ######### DO NOT PUT ANYTHING BELOW THIS COMMENT ##########