shell bypass 403

GrazzMean-Shell Shell

: /lib64/nagios/plugins/nccustom/ [ drwxr-xr-x ]
Uname: Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
Software: LiteSpeed
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.213.251.212
Your Ip: 52.14.6.24
User: allssztx (535) | Group: allssztx (533)
Safe Mode: OFF
Disable Function:
NONE

name : check_cl_license
#!/usr/libexec/platform-python
# version 0.1, 2013/10/16
# writen by Eduard N.
# Modify by Ihor Bilyi, Phantom team, 07/2022

import os
import re
from subprocess import Popen, PIPE

# State Nagios
STATE_OK = 0
STATE_WARNING = 1
STATE_CRITICAL = 2
STATE_UNKNOWN = 3

cldetect = '/usr/bin/cldetect'

ok_pattern = re.compile(r"^OK$")
invalid_pattern = re.compile(r"^No valid license found$")

if os.path.isfile(cldetect):
    result, err = Popen([cldetect, '--check-license'], stdout=PIPE).communicate()
    result = result.decode('utf-8')
    if ok_pattern.search(result):
        print("CL license OK")
        exit(STATE_OK)
    elif invalid_pattern.search(result):
        print("Critical. No CL license found")
        exit(STATE_CRITICAL)
    else:
        print(result)
        print(err.decode('utf-8'))
        exit(STATE_UNKNOWN)
else:
    print("OK. Binary file cldetect not found -> no CL on host, CL license not needed")
    exit(STATE_OK)
© 2025 GrazzMean-Shell