Linux Bash Apache Log Menu

Instructions:

apacheLogMenu.bash has comments that needs to be implemented.

Including functions:

  • displayOnlyPages

  • frequentVisitors

  • suspiciousVisitors

Add these functions and employ them in the menu. Your menu also needs to display proper messages when an invalid option input is given by the user. for suspiciousVisitors function, you will need to manually create an ioc.txt file.


Set up

Create ioc.txt in the same directory as your script

Input the following:

etc/passwd
cmd=
/bin/bash
/bin/sh
1=1#
1=1--

Create Log events

From both your windows and ubunutu machine visit the website you created. From one of the machines query some of the indicators from ioc.txt.

Change Log File

Change your log file from access.log.1 to access.log in the script file


Function: displayOnlyPages

Function: frequentVisitors

Function: suspiciousVisitors

Update Menu

Updating menu options (3, 5 and 6)

Updating user input responses

Output and Script

Last updated