shell bypass 403

GrazzMean-Shell Shell

: /lib64/nagios/plugins/nccustom/ [ drwxr-xr-x ]
Uname: Linux server105.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 68.65.120.251
Your Ip: 18.191.160.52
User: travtpib (6521) | Group: travtpib (6478)
Safe Mode: OFF
Disable Function:
NONE

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
© 2025 GrazzMean-Shell