Archives

All posts for the month January, 2010

RKHunter Configuration Guide

Published January 23, 2010 by Siva

Rkhunter is a very useful tool that is used to check for trojans, rootkits, and other security problems. This tutorial will touch on installing and setting up a daily report for rkhunter.

Installing:

wget http://downloads.rootkit.nl/rkhunter-1.2.7.tar.gz

wget http://downloads.sourceforge.net/project/rkhunter/rkhunter/1.3.6/rkhunter-1.3.6.tar.gz?use_mirror=nchc
tar -zxvf rkhunter-1.2.7.tar.gz
cd rkhunter-1.2.7
./installer.sh –layout /usr/local/rkhunter –install

Updating rkhunter

gets the latest database updates from their central server and matches your OS better to prevent false positives

rkhunter –update

Now you can run a test scan with the following command:

/usr/local/bin/rkhunter -c

How to setup a daily scan report?

vim /etc/cron.daily/rkhunter.sh

add the following replacing your email address:

#!/bin/bash
/usr/local/bin/rkhunter –cronjob –rwo –nocolors | mail -s “Rkhunter daily run on `uname -n`” siva@example.com
exit 0

chmod +x /etc/cron.daily/rkhunter.sh

Dump just the table structure to a file in MySQL

Published January 13, 2010 by Siva

We will use the mysqldump utility the same as if we were backing upo the entire database

Syntax:

mysqldump -d -h localhost -u root -p databasename > dumpfile.sql

The only option that is different than creating an entire backup is the -d switch, which tells mysqldump not to output the data.

Example:

mysqldump -d -h localhost -u root -p sampledatabase  > dumpfile.sql

Multiple log in in yahoo Without Using any Software

Published January 10, 2010 by Siva
E-mail
Multiple log in in yahoo Without Using any Software You can log in with multiple id’s on the same yahoo messenger without
any download or patch .

1.Go to Start —-> Run . Type regedit, then enter.
2.Navigate to HKEY_CURRENT_USER ——–> Software —>yahoo —–>pager—->Test
3.On the right pane , right-click and choose new Dword value .
4.Rename it as Plural.
5.Double click and assign a decimal value of 1.
That’s it done!!
Now close registry and restart yahoo messenger .For signing in with new id open another messenger.