Monthly Archives: June 2009

//June
­
29 06, 2009

Script used to correct permission of files after suphp

By |June 29th, 2009|Cpanel, Issues, Scripts, Server Security|1 Comment

#!/bin/bash # For some stupid reason, cPanel screws up the directory permissions. chmod 755 /opt/suphp find /opt/suphp -type d -exec chmod 755 {} ; # Ensure that the permissions are sane and won't cause a 500 error. for user in `/bin/ls /var/cpanel/users`; do chown -R ${user}:${user} /home/${user}/public_html chmod 755 /home/${user}/public_html find /home/${user}/public_html -name "*.php" -exec [...]

29 06, 2009

Script used to find vulnerable php files

By |June 29th, 2009|Issues, Scripts, Server Security|1 Comment

#!/bin/bash shellpattern='r0nin|m0rtix|upl0ad|r57|c99|shellbot|phpshell|void.ru|phpremoteview|directmail|bash_history|vulnscan|spymeta|raslan58' for user in `/bin/ls /var/cpanel/users` do find /home/$user/public_html ( -name '*.php' -o -name '*.cgi' -o -name '*.inc' ) -exec egrep -il "$shellpattern" {} ; done

28 06, 2009

Stats not working in Plesk

By |June 28th, 2009|Issues, Plesk, Scripts, Third party softwares|0 Comments

Create the following cron: ------------------------------------------------------------------------------------------------ 9,24,39,54  * * * * /usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1 10 1 * * * /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1 10 1 * * * /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=xxx.com ------------------------------------------------------------------------------------------------ and run the script for checking : /usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=xxx.com where xxx.com is your domainname.com

26 06, 2009

Red5 installation

By |June 26th, 2009|General discussions, Scripts, Server Setup, Third party softwares|3 Comments

cd /root vi red5install copy paste the below script echo " " echo "Hello ,Please choose the RED5 version : (1,2,3 or 4)" echo " " echo "1. RED5 0.7.0" echo "2. RED5 0.6.3" echo "3. RED5 0.5 " echo " Press Any other key to install 1. RED5 0.7.0" read ver cd /usr/src echo [...]

24 06, 2009

To block an IP range using Iptables

By |June 24th, 2009|General discussions, Issues, Server Security|1 Comment

iptables -I INPUT -m iprange --src-range 192.168.1.10-192.168.1.13 -j DROP

Load More Posts