⚝
One Hat Cyber Team
⚝
Your IP:
18.118.159.157
Server IP:
162.254.39.145
Server:
Linux premium289.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
Server Software:
LiteSpeed
PHP Version:
8.2.28
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib64
/
nagios
/
plugins
/
nccustom
/
View File Name :
check_suid_status.sh
#!/bin/bash log_file_suid="/var/log/nc_audit/suid_check.log" if [ -s "$log_file_suid" ]; then last_line_suid=$(tail -n 1 "$log_file_suid") if [[ "$last_line_suid" == *"CRITICAL!"* ]]; then tac "$log_file_suid" | awk '/OK./{exit}1' | tac exit 2 fi fi echo "OK" exit 0