Open VZ installation
With reference : http://wiki.openvz.org Requirements This guide assumes you are running recent release of Fedora Core (like FC5) [...]
Installing RV Sitebuilder
Installing RVSiteBuilder: # cd /usr/local/cpanel/whostmgr/docroot/cgi/ # rm -f rvsitebuilderinstaller.tar # wget http://download.rvglobalsoft.com/rvsitebuilderinstaller.tar # tar -xvf rvsitebuilderinstaller.tar # chmod [...]
DNS caching poisioning
BIND 9 Vulnerability And Solution - Patch BIND To Avoid Cache Poisoning (Fedora/CentOS) I am pretty sure most [...]
Mount /tmp
umount /tmp umount /var/tmp dd if=/dev/zero of=/usr/tmpDSK bs=1024 count=512000 mkfs.ext3 /usr/tmpDSK press 'y' to continue mount -o loop,rw,noexec,nosuid [...]
Script : Blackhole
#! /bin/bash grep -rl ':blackhole:' /etc/valiases/ >> blackhole_files for i in `cat blackhole_files` do grep -v ':blackhole:' $i [...]
Fantastico RV
cd /usr/local/cpanel/whostmgr/docroot/cgi wget -N http://www.netenberg.com/files/free/fantastico_whm_admin.tgz tar -xzpf fantastico_whm_admin.tgz rm -rf fantastico_whm_admin.tgz mkdir /root/rvadmin; cd /root/rvadmin; wget http://download.rvglobalsoft.com/download.php/download/rvskin-auto/saveto/rvauto. tar.bz2; [...]
FTP : Passive not listing
modprob ip_conntack_ftp add ip_conntack_ftp to /etc/sysconfig/iptables-config
Horde : loops back to login page
mysql mysql> use horde; mysql> drop table horde_sessionhandler; mysql> CREATE TABLE horde_sessionhandler ( session_id VARCHAR(32) NOT NULL, session_lastmodified [...]
IonCube Loader Install
There will be a time when you need IonCube loader in order to run PHP scripts encoded with [...]
Starting APF:Unable to load iptables module (ipt_state), aborting.
Just enable the no kernel option in /etc/apf/conf.apf It should be like this: SET_MONOKERN="1" Save and then restart [...]
Script for cropping down the domlogs
#!/bin/bash for domain in /usr/local/apache/domlogs/*; do # Find the domain having more than 100 Mb log file size [...]
To kill Dead process
for i in `ps ax | grep D | awk {'print $1'}`;do kill -9 $(cat /proc/${i}/status | grep [...]
To kill Zombie process
for i in `ps ax | grep Z | awk {'print $1'}`;do kill -9 $(cat /proc/${i}/status | grep [...]
To find ddos attack
netstat -an |grep 80 netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 netstat -plan|grep :25|awk [...]
Top memory consuming processes
ps aux | head -1;ps aux --no-headers| sort -rn +3 | head
Number of exim connections
tail -1000 /var/log/exim_mainlog |grep '[' |cut -d[ -f2 |cut -d] -f1|sort -n |uniq -c |sort -n
To find cppop attack
tail -1000 /var/log/maillog | grep host= | cut -d= -f2| cut -d" " -f1|sort -n |uniq -c |sort [...]
To find number of httpd connections
netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 or netstat -pan | sort +4 | [...]
Script to search any hacking or malicious script
VECTORS="r57sh c99sh h00ly 0wn3d rst.void.ru" VECTORS_FINAL=$(echo $VECTORS | sed 's/ /|/g') find /home/*/public_html/ -type f -exec grep -Eil [...]
Park domain error
Remove the entry of that park domain from these files and try to park the domain again. /var/cpanel/users [...]
Outllook configuration
Follow the below instructions for configuring the outlook 2003. 1. In outlook, select Tools/Email accounts 2. On the [...]
Nagios swap space
Goto Nagios server cd /usr/local/nagios/libexec wget http://www.mycutelife.net/sanju/newtickethelp/nagiosfullsteps/check_swp chmod +x check_swp You need to do this for each [...]
Nagios ssl
adding service ssl to nagios /usr/local/nagios/etc file checkcommands.cfg # 'check_ssl' command definition define command{ [...]
Nagios proc
Configure number of processes in Nagios : on the server to be monitored, vi /etc/nrpe.conf modify the [...]
Nagios – nrpe
# vi /etc/xinetd.d/nrpe # default: on # description: NRPE service nrpe [...]