Sh3ll



Directory :  /scripts2/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

Current File : //scripts2/imunify_stat.sh
#!/bin/bash
# Print current scan status (ImunifyAV).

LOAD=$(imunify-antivirus malware on-demand status --json)

STATE=$(echo $LOAD | jq -r .items.status)

if [ "$STATE" == "stopped" ]; then
  echo "No scan is currently running."
else
  cur=$(echo $LOAD | jq -r .items.path)
  strt=$(echo $LOAD | jq -r .items.started)
  echo "Scan running in $(realpath $cur) -- since $(date -d @$strt)."
fi

Sh3LL