diff --git a/autoaudit.sh b/autoaudit.sh index f0a87ed..f0ca3b5 100755 --- a/autoaudit.sh +++ b/autoaudit.sh @@ -17,6 +17,35 @@ IDENTITY_LOG_FILE=( #####Functions##### ################### +###Frontend UI Contribution### + +function show_header() { + echo "" + echo "==================================================" + echo " AUTOAUDIT TOOL" + echo "==================================================" + echo " Linux Forensics | Log Tampering | Identity Attacks" + echo "--------------------------------------------------" + echo " This tool helps analyse suspicious Linux log files" + echo " and highlights possible tampering or brute-force activity." + echo "==================================================" + echo "" +} + +function show_footer() { + echo "" + echo "--------------------------------------------------" + echo " Autoaudit scan completed successfully." + echo " Review the detected results carefully before reporting." + echo "--------------------------------------------------" + echo " Frontend contribution: Terminal header and footer UI" + echo " Contributor: Pushpinder Singh" + echo " Documentation: README.md" + echo "--------------------------------------------------" + echo "" +} + + ###Tampering Detection### function tamper_zeroing() { @@ -212,11 +241,12 @@ while $RUNNING; do ;; SELECTION) output=() + show_header echo "Which logs? 1=Log Tampering Attacks 2=Identity Attacks"; read -t 10 choice if [[ "$choice" -eq 1 ]]; then option=TAMPER - elif [[ choice -eq 2 ]]; + elif [[ "$choice" -eq 2 ]]; then option=IDENTITY else @@ -246,6 +276,9 @@ while $RUNNING; do for line in "${output[@]}"; do echo "$line" done + + show_footer + option=default ;; *) @@ -255,4 +288,4 @@ while $RUNNING; do exit 0 ;; esac -done +done \ No newline at end of file