!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/5.6.40 

uname -a: Linux cpanel06wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.80.el6.x86_64 #1 SMP Thu Sep 24
01:42:00 EDT 2020 x86_64
 

uid=851(cp949260) gid=853(cp949260) groups=853(cp949260) 

Safe-mode: OFF (not secure)

/etc/mail/spamassassin/CMAE-SA/script/linux/   drwxr-xr-x
Free 227.34 GB of 981.82 GB (23.15%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     authority_server.sh (3.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/sh
#
# $Revision: 140281 $ $Date: 2014-06-02 15:02:48 -0700 (Mon, 02 Jun 2014) $
#
### BEGIN INIT INFO
# Provides:          authority_server
# Required-Start:    $syslog $time $local_fs $remote_fs $named $network
# Required-Stop:     $syslog $time $local_fs $remote_fs $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Cloudmark Authority HTTP Server
# Description:       The http based server that provides access to CMAE4
### END INIT INFO
#
# chkconfig: 345 20 80
# description: Cloudmark authority server for message analysis
# processname: authority_server
#
# Note: You may need to append to the LD_LIBRARY_PATH line to include
# supplementary library paths.

######################################################################
##
## The following environment variables define the default server layout.
## If necessary, they should be edited to reflect the layout of a
##  particular installation.
##
## Note: You may need to append to the LD_LIBRARY_PATH line to include
## supplementary library paths.

AUTHORITY_HOME=/opt/cloudmark
NAME=authority_server
DAEMON=$AUTHORITY_HOME/bin/$NAME
CONFIG=$AUTHORITY_HOME/etc/authority_server.cfg
LIBDIRS=$AUTHORITY_HOME/lib:$AUTHORITY_HOME/syslib
PATH=/bin:/usr/bin:/sbin:/usr/sbin


alias log_success_msg='echo "Success: "'
alias log_warning_msg='echo "Warning: "'
alias log_failure_msg='echo "Failed: "'

# Implement our own status function per LSB specs. This will be used on
# non-RedHat systems.
authority_server_status() {
	PID=$(authority_server_getpid)
	rstat=$?
	if [ $rstat -eq 0 ]; then
		echo "$NAME (pid $PID) is running..."
		return 0
	elif [ $rstat -eq 3 ]; then
		echo "$NAME is stopped"
		return 3
	elif [ $rstat -eq 1 ]; then
		echo "$NAME dead but pid file exists"
		return 1
	else
		echo "Could not access PID file"
		return 2
	fi
}

authority_server_getpid() {
	LD_LIBRARY_PATH=$LIBDIRS; export LD_LIBRARY_PATH
	PID=$( $DAEMON -p -c $CONFIG)
	rstat=$?
	if [ $rstat -eq 0 ]; then
		if [ -n "$(which pgrep)" ]; then
			for p in $(pgrep -f $DAEMON); do
				if [ "$PID" = "$p" ]; then
					echo $p
					return 0
				fi
			done
			echo $PID
			return 1
		elif [ -x "/bin/pidof" ]; then
			for p in $(/bin/pidof -o %PPID $DAEMON); do
				if [ "$PID" = "$p" ]; then
					echo $p
					return 0
				fi
			done
			echo $PID
			return 1
		fi
		echo $PID
		return 0
	elif [ $rstat -eq 1 ]; then
		echo $PID
		return 3
	else
		echo $PID
		return $rstat
	fi
}

authority_server_killproc() {
	[ -z "$1" ] && return 1
	if [ -n "$2" ]; then 
		signal=$2
	else
		signal="TERM"
	fi
	if $(authority_server_getpid); then
		pkill -"$signal" -f $1
	fi
}


if [ ! -x "$DAEMON" ]; then
	exit 5
fi

if [ ! -f "$CONFIG" ]; then
	log_failure_msg "$CONFIG not found"
	exit 6
fi


authority_server_start() {
	echo -n "Starting Authority Server: "
	LD_LIBRARY_PATH=$LIBDIRS; export LD_LIBRARY_PATH
	cd $AUTHORITY_HOME
	$DAEMON -c $CONFIG
	if [ $? -eq 0 ]; then
		log_success_msg $NAME
	else
		log_failure_msg $NAME
	fi
}

authority_server_stop() {
	echo -n "Stopping Authority Server: "
	LD_LIBRARY_PATH=$LIBDIRS; export LD_LIBRARY_PATH
	$DAEMON -x -c $CONFIG
	if [ $? -eq 0 ]; then
		log_success_msg $NAME
	else
		log_failure_msg $NAME
	fi
}

case "$1" in
  start)
  	authority_server_start
	;;
	
  stop)
  	authority_server_stop
	;;
	
  restart|force-reload)
  	authority_server_stop
	authority_server_start
	;;

  status)
	authority_server_status $NAME
	;;
esac

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.149 ]--