Skip to content

Commit

Permalink
EDR
Browse files Browse the repository at this point in the history
  • Loading branch information
rootTHC committed Nov 5, 2024
1 parent bc3757f commit 60c515b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions hackshell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -874,12 +874,10 @@ gsnc() {
command -v gs-netcat >/dev/null || gs-netcat() { gsnc "$@"; }
_warn_edr() {
local fns
local s
local out
local fns s out
_hs_chk_systemd() { systemctl is-active "${1:?}" &>/dev/null && out+="${2:?}: systemctl status $1"$'\n';}
_hs_chk_fn() { [ ! -f "${1:?}" ] && return; fns+=("${1:?}"); out+="${2:?}: $1"$'\n';}
_hs_chk_fn() { { [ -z "${1}" ] || [ ! -f "${1:?}" ]; } && return; fns+=("${1:?}"); out+="${2:?}: $1"$'\n';}
_hs_chk_fn "/etc/clamd.d/scan.conf" "ClamAV"
_hs_chk_fn "$(command -v clamscan)" "ClamAV"
Expand Down

0 comments on commit 60c515b

Please sign in to comment.