Linux 186-227-203-186.cprapid.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
Apache
Server IP : 186.227.203.186 & Your IP : 216.73.217.151
Domains : 154 Domain
User : pmcaxingo
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
usr /
share /
imunify360 /
scripts /
Delete
Unzip
Name
Size
Permission
Date
Action
modsec_scan.py
878
B
-rwxr-xr-x
2026-05-28 11:26
modsec_scan_real.py
2.36
KB
-rwxr-xr-x
2026-05-28 11:26
pureftpd-on-upload
4.36
MB
-rwxr-xr-x
2026-04-28 16:41
set-service-resources.sh
1.98
KB
-rwxr-xr-x
2026-05-28 11:26
wp-capability-check
7.3
MB
-rwxr-xr-x
2026-05-28 11:26
Save
Rename
#!/bin/bash # FIXME: workaround for bug https://cloudlinux.atlassian.net/browse/DEF-2271 if grep -q 'enable_scan_modsec:\s*true' /etc/sysconfig/imunify360/imunify360-merged.config; then out=($(/usr/share/imunify360/scripts/modsec_scan_real.py "$@")) echo "${out[@]}" # Script prints one of two possible lines: # '1 OK' - when malware is not found in the file # '0 Attempt to upload malware' - when malware has been found in the file # At the moment, Coraza does not handle script output properly: # https://github.com/corazawaf/coraza/pull/1311 # Thus we exit with code 1 to make Coraza pass the file and with code 0 to block the file. # The original modsec 2.x don't care about exit code either, so it should handle it fine. code=${out[0]} [[ "$code" =~ ^[0-9]+$ ]] || code=1 exit $code else echo "1 OK" exit 1 fi