Skip to content

Commit

Permalink
add download part
Browse files Browse the repository at this point in the history
  • Loading branch information
dolevf committed Nov 26, 2023
1 parent 860c19f commit 30d99b9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion ch12/exercise_solution.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ check_file_or_directory(){
return 1
}

download_eicar_file(){
wget -q "https://secure.eicar.org/eicar.com.txt"
}

generate_report(){
if [[ ! -f "${REPORT_NAME}" ]]; then
echo "tool, check_type, indicator" > "${REPORT_NAME}"
Expand All @@ -77,4 +81,8 @@ check tripwire directory /etc/tripwire
check aide directory /etc/aide
check apparmor directory /etc/apparmor.d
check fluentbit directory /etc/fluent-bit
check rkhunter file /etc/rkhunter
check rkhunter file /etc/rkhunter

if [[ -f "${REPORT_NAME}" ]]; then
download_eicar_file
fi

0 comments on commit 30d99b9

Please sign in to comment.