Pages

Saturday, September 6, 2014

How to install CHKRootkit

Install CHKROOTKIT
Product Name: CHKROOTKIT
Product Version: 0.49
Homepage: http://www.chkrootkit.org/

Description: chkrootkit (Check Rootkit) is a common Unix-based program intended to help system administrators check their system for known rootkits. It is a shell script using common UNIX/Linux tools like the strings and grep commands to search core system programs for signatures and for comparing a traversal of the /proc filesystem with the output of the ps (process status) command to look for discrepancies.
It can be used from a “rescue disc” (typically a LiveCD) or it can optionally use an alternative directory from which to run all of its own commands. These techniques allow chkrootkit to trust the commands upon which it depends a bit more.

There are inherent limitations to the reliability of any program that attempts to detect compromises (such as rootkits and computer viruses). Newer rootkits may specifically attempt to detect and compromise copies of the chkrootkit programs or take other measures to evade detection by them.
Step 1: Downloading and Installing it:

cd /usr/local/src
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.md5 md5sum -c chkrootkit.md5
tar -zxvf chkrootkit.tar.gz
mkdir /usr/local/chkrootkit
mv /usr/local/src/chkrootkit*/* /usr/local/chkrootkit
cd /usr/local/chkrootkit
make sense Step 2: Adding program to daily cron job
There you go! should be installed, and you will get a mail daily with a status on your system

How to install Malware Detect (Maldet) for CentOS 6 / Linux

Linux Malware Detect (LMD) is a malware scanner for Linux released under the GNU GPLv2 license, that is designed around the threats faced in shared hosted environments. It uses threat data from network edge intrusion detection systems to extract malware that is actively being used in attacks and generates signatures for detection. In addition, threat data is also derived from user submissions with the LMD checkout feature and from malware community resources. The signatures that LMD uses are MD5 file hashes and HEX pattern matches, they are also easily exported to any number of detection tools such as ClamAV.

There is nothing complicated in installation process, but root access to your server is required. 
Installation via SSH

cd /usr/local/src/
wget http://www.rfxn.com/downloads/maldetect-current.tar.gz
tar -xzf maldetect-current.tar.gz
cd maldetect-*
sh ./install.sh or sudo sh ./install.sh
maldet --update-ver
maldet --update

To scan a folder, for example /home you should type maldet -a /home.

Sunday, July 6, 2014

DDOS – How attack check

Whenever the load in the server increases due to a particular user in the server. Check the following:

You can check the user in top.

Find the domain owned by the user:

    grep username /etc/userdomains

use the following command after you get the domain name:

    less /usr/local/apache/domlogs/domain.com | awk ‘{print $1}’ | sort | uniq -c | sort -n

How to install WHMSonic in cpanel

Login to your server root SSH and copy/paste the following command fully and run it.

    cd /root/; rm -f installr.sh; wget http://www.whmsonic.com/setupr/installr.sh; chmod +x installr.sh; ./installr.sh



Sample installation output:

    ***********************************************************************
    * WHMSonic Setup v2.1.11 *
    ***********************************************************************
    WHMSonic installer is now installing the latest version. This may take a few minutes, please wait…
    –2013-11-29 00:55:15– http://www.whmsonic.com/v2/setup/whmsonic.zip
    Resolving www.whmsonic.com… 67.228.53.90
    Connecting to www.whmsonic.com|67.228.53.90|:80… connected.
    HTTP request sent, awaiting response… 200 OK
    Length: 10530510 (10M) [application/zip]
    Saving to: `whmsonic.zip’


How to Configure Multiple shared IP’s in WHM

It is not possible to add multiple shared IP’s from WHM but it is possible to do it from SSH.

First of all we need to create a /var/cpanel/mainips/ directory if it is not present.

    mkdir /var/cpanel/mainips/

Then we have to create a file.

    vi /var/cpanel/mainips/root

Add all IP’s into it. save the file and quit.

How to install kloxo panel in centos

Go to below path.

    cd /usr/local/src

Use the wget Command to download latest version of Kloxo Auto Installer Script

    wget http://download.lxcenter.org/download/kloxo/production/kloxo-installer.sh

Give proper permission.