7COM1068 Penetration Testing Assignment.

Publish By: Admin,
Last Updated: 08-Jul-23
Price: $120

Part 1 - Group work exercise

For the group activity during unit 3, you read a fictitious case study of an attack against a web server. Your group scoped a penetration test by answering the relevant questions within the `Scoping a Penetration Test` document under unit 3.

The important aspect for the group task was not necessarily answering all the questions in the scoping document, but how you worked as a team in a high-pressure scenario.

Using the notes you took during the group activity, discuss and reflect upon your group exercise using no more than 250 words.

Part 2 - Information gathering script writing exercise

Create a script called my_new_whois.sh that utilises the provided whois_yahoo_mnt.txt file to create a script that prompts the user to perform the following tasks:

1. Obtain all unique people in the file sorted in alphabetical order and place them in the specified file.

2. Obtain all inetnums in the file sorted in ascending numerical order and place them in the specified file.

3. Obtain all unique netnames sorted in alphabetical order and place them in the specified text file.

Your script should take as arguments the whois_yahoo_mnt.txt file and a user-specified output file name to save the output of your script. An example of how your script should execute from the shell is shown below: ./my_new_whois.sh whois_yahoo_mnt.txt output.txt

A demo video of how a user interacts with the script is available on Canvas.

Your script should also

Provide an adequate level of input validation. For example, if the user enters `4` as an option (an invalid option) they should be prompted to enter a valid input.

Remove leading white space from any lines of text. You will need to research sed and/or awk in order to achieve this.