Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions autoaudit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -246,6 +276,9 @@ while $RUNNING; do
for line in "${output[@]}"; do
echo "$line"
done

show_footer

option=default
;;
*)
Expand All @@ -255,4 +288,4 @@ while $RUNNING; do
exit 0
;;
esac
done
done