GIF89a;
Mass Deface Email Grabber
$file SERVICE_SERVICE=`whereis service | awk '{print $2}'` SECUREPANLECONF='/etc/lighttpd/secure_panel.conf' SECUREPANLERECTCONF='/etc/lighttpd/secure_panel_redirect.conf' if [[ $# -eq 1 ]]; then if [[ $1 == "-s" ]]; then #sed -i '/SECUREPANEL_START/,/SECUREPANEL_END/d' /etc/lighttpd/lighttpd.conf sed -i '/secure_panel.conf/d' /etc/lighttpd/lighttpd.conf rm -f $SECUREPANLECONF rm -f $SECUREPANLERECTCONF #cat /etc/sentora/panel/version.txt else echo "Wrong Option." fi fi lighttpd_service=`whereis lighttpd | awk '{print $2}'` LIGHTTPD_CONFIGTEST=$($lighttpd_service -t -f /etc/lighttpd/lighttpd.conf 2>&1) echo $LIGHTTPD_CONFIGTEST >> $file LIGHTTPD_RESTART=`echo $LIGHTTPD_CONFIGTEST | grep -i "Syntax OK"` if [[ "$LIGHTTPD_RESTART" != "" ]] then echo "panel-unsecured-successfully" >> $file # $SERVICE_SERVICE lighttpd restart else echo "There is having the syntax error in lighttpd config. Please check" >> $file EMAIL_LOG=1 fi if [ "$EMAIL_LOG" = "1" ] then echo $file | mail -s "Error in Config File - $HOST_NAME" support@hostingraja.info else echo "updated-successfully" echo "Updated Successfully" >> $file fi