#!/bin/bash # Task 1.2 # Security Audit Script # Lists all SUID files echo "SUID File Audit" DATE=$(date) echo "Scan Date: $DATE" echo "Searching for SUID files..." find / -perm -4000 -type f 2>/dev/null > suid_report.txt COUNT=$(wc -l < suid_report.txt) echo "Found $COUNT SUID files." echo "Report saved as suid_report.txt" echo "Top 10 entries:" head suid_report.txt echo "Audit completed."
To embed this project on your website, copy the following code and paste it into your website's HTML: