Install ClamAV on CentOS 6.0

To install ClamAV antivirus on CentOS 6.0 along with automatic updates and a nightly full system scan please use the following process:

1. Change to your SRC install directory:

# cd /usr/src

2. Download the ClamAV installation package, ClamAV database, ClamAV development libraries and ClamAV daemon for your operating system type (32 bit of 64 bit):

For 32 bit:

# wget http://pkgs.repoforge.org/clamav/clamav-0.97.1-1.el6.rf.i686.rpm http://pkgs.repoforge.org/clamav/clamav-db-0.97.1-1.el6.rf.i686.rpm http://pkgs.repoforge.org/clamav/clamav-devel-0.97.1-1.el6.rf.i686.rpm http://pkgs.repoforge.org/clamav/clamd-0.97.1-1.el6.rf.i686.rpm

For 64 bit:

# wget http://pkgs.repoforge.org/clamav/clamav-0.97.1-1.el6.rf.x86_64.rpm http://pkgs.repoforge.org/clamav/clamav-db-0.97.1-1.el6.rf.x86_64.rpm Continue reading "Install ClamAV on CentOS 6.0"

Install Dell OpenManage on CentOS 6.x

The Dell OpenManage Server Administrator (OMSA) on is a great (and free) Dell hardware monitoring and management system available for Windows and RedHat Linux. It can also be installed on CentOS 6.0 (32bit and 64bit) using the following process:

1. Login to your server via SSH.
2. Change directories to your SRC install

# cd /usr/src

3. Create an install script:

# nano -w dellomi.sh

4. Cut and paste the following text:

#!/bin/bash
#
# Dell OpenIPMI & OpenManage Installer
# Revision: July 22nd 2011
#
HOST=`hostname`
D=`date '+%d%m%y'`
echo "Dell OpenIPMI & OpenManage Automatic Installer"
echo "Revision: July 22nd 2011"
echo
echo "Installing Dell Yum Repository..." Continue reading "Install Dell OpenManage on CentOS 6.x"

Install EPEL Repo on CentOS

The Extra Packages for Enterprise Linux (or EPEL) can be installed on any CentOS 4, CentOS 5 or CentOS 6 server using the following commands:

CentOS 4

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/4/i386/epel-release-4-10.noarch.rpm

CentOS 5

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

CentOS 6

# rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm

Once you have completed the installation you can install packages from EPEL using:

# yum install package-name

Plesk Error: Table mysql.servers doesn’t exist

You may receive a “Table ‘mysql.servers’ doesn’t exist” error message while adding a database user in Plesk or while restarting the MySQL service. The complete error message is:

Error: Connection to the database server has failed:
Table 'mysql.servers' doesn't exist

OR

Can't open and lock privilege tables:
Table 'mysql.servers' doesn't exist

This problem occurs when MySQL server is upgraded from an older to a newer version and the upgrade remains incomplete. Since MySQL often introduces new tables with the newer versions, you need to run the “mysql_fix_privilege_tables” script located in the “/usr/bin/” directory so that the MySQL administrative database is updated with the latest contents thus fixing the privileges of the database users as well.

To fix the issue, SSH to your server as root and execute the command:

# mysql_fix_privilege_tables --user=admin --password=`cat /etc/psa/.psa.shadow` --verbose

This will resolve the issue and allow new user additions and MySQL configuration changes.

WPScan – WordPress Security Scanner

WPScan is a vulnerability scanner which checks the security of WordPress installations using a black box approach – scanning without any prior knowledge of what has been installed.

Features

  •     Username enumeration (from author querystring and location header)
  •     Weak password cracking (multithreaded)
  •     Version enumeration (from generator meta tag)
  •     Vulnerability enumeration (based on version)
  •     Plugin enumeration (2220 most popular by default)
  •     Plugin vulnerability enumeration (based on version) (todo)
  •     Plugin enumeration list generation
  •     Other misc WordPress checks (theme name, dir listing, …)

Requirements

WPScan requires two non native Ruby gems, typhoeus and xml-simple. It should work on both Ruby 1.8.x and 1.9.x.

sudo apt-get install libcurl4-gnutls-dev
sudo gem install –user-install typhoeus
sudo gem install –user-install xml-simple Continue reading “WPScan – WordPress Security Scanner”