Mint Serena 64 bit using the Mate desktop environment. Most of the following scripts will run on this machine, although some have only been tested with the Gnome desktop. Extra software requirements can be met by the Ubuntu and safe PPA repositories. Scripts may be re-written or added to from time to time, the date serves as the version number. Syntax highlighting on these pages is provided by GVim's "Convert to HTML" option.

RKHunter script

#!/bin/bash
# Filename: RKHunter.sh
# Author: robz
# Version: 051210
# Root Kit Hunter
# Strictly speaking best results from RKHunter are obtained by setting it up
# with a fresh Linux install, so there is no doubt as to the integrity of the
# system files present.
# However, this script runs RKHunter manually, saves a logfile to your home
# directory then parses that log to display any problems it "may" have found.
# Run the script directly, from nautilus-scripts or make yourself a launcher.
# For configuration info. and interpretation of the logfile look at
# /usr/share/doc/rkhunter/FAQ.gz or the readme or goto:
# http://rkhunter.cvs.sourceforge.net/viewvc/rkhunter/rkhunter/files/FAQ
# Don't worry too much if you get a terminal full of red warnings at first,
# read the FAQs or Google for answers first, worry after:)

LOG=/home/$USER/.rkhunter.log

gnome-terminal --geometry=90x65+0+0 -x bash -c "\
    rm -f /home/$USER/.rkhunter*.log
    sudo rkhunter --update -c --sk -l $LOG;\
    read -p 'Hit a key to see logged warnings' -n 1;\
    tput cuu1; tput cuu1; tput cuu1; tput cuu1; echo;\
    sudo chmod a+r $LOG;\
    export GREP_COLOR='1;37;41';\
    grep -A4 -B4 --color=always Warning $LOG |\
    more;\
    export GREP_COLOR='1;31';\
    read -p 'Hit a key to exit' -n 1"
    
sudo -K


Powered by ScribeFire.

No comments: