T.ME/BIBIL_0DAY
CasperSecurity


Server : Apache/2
System : Linux server-15-235-50-60 5.15.0-164-generic #174-Ubuntu SMP Fri Nov 14 20:25:16 UTC 2025 x86_64
User : gositeme ( 1004)
PHP Version : 8.2.29
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/gositeme/domains/soundstudiopro.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/gositeme/domains/soundstudiopro.com/public_html/setup_htaccess_monitoring.sh
#!/bin/bash
# Setup .htaccess monitoring - Run this once to set up

cd /home/gositeme/domains/soundstudiopro.com/public_html

echo "๐Ÿ”ง Setting up .htaccess monitoring..."

# Create backup
if [ ! -f .htaccess.clean_backup.20251212_215154 ]; then
    cp .htaccess .htaccess.clean_backup.$(date +%Y%m%d_%H%M%S)
    echo "โœ… Backup created"
fi

# Create integrity hash
if [ ! -f .htaccess.md5 ]; then
    md5sum .htaccess > .htaccess.md5
    echo "โœ… Integrity hash created"
fi

# Test monitoring scripts
echo "๐Ÿงช Testing monitoring scripts..."

php monitor_htaccess.php > /dev/null 2>&1
if [ $? -eq 0 ]; then
    echo "โœ… monitor_htaccess.php working"
else
    echo "โš ๏ธ  monitor_htaccess.php detected recent changes (expected if just modified)"
fi

php verify_htaccess_integrity.php > /dev/null 2>&1
if [ $? -eq 0 ]; then
    echo "โœ… verify_htaccess_integrity.php working"
else
    echo "โš ๏ธ  verify_htaccess_integrity.php issue (check manually)"
fi

# Create cron entry
echo ""
echo "๐Ÿ“‹ To add monitoring to crontab, run:"
echo "   crontab -e"
echo "   Then add this line:"
echo "   */5 * * * * cd /home/gositeme/domains/soundstudiopro.com/public_html && php monitor_htaccess.php >> logs/htaccess_monitor.log 2>&1"
echo ""
echo "โœ… Setup complete!"


CasperSecurity Mini