![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Shell script to send email alert for core dump | rtatineni | SUN Solaris | 1 | 08-17-2006 02:33 PM |
| Help? Any method to send system alert email? | ITJacky | UNIX for Dummies Questions & Answers | 1 | 06-03-2006 07:29 PM |
| Email alert script | moon | Shell Programming and Scripting | 1 | 04-26-2002 04:55 PM |
| SMS alert in Linux | rsahu | UNIX for Advanced & Expert Users | 4 | 02-05-2002 02:25 PM |
| ALERT!!! ALERT!!! I messed up the UNIX!!! | Fwurm | UNIX for Dummies Questions & Answers | 15 | 11-06-2001 05:53 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
email Alert
Hello,
I want a script that will scan the file /etc/httpd/conf/httpd.conf and the folder /etc/httpd/libexec/ -bash-2.05b# grep mod_r /etc/httpd/conf/httpd.conf LoadModule rewrite_module libexec/mod_rewrite.so AddModule mod_rewrite.c -bash-2.05b# -bash-2.05b# find /etc/httpd/libexec/ -name mod_r* /etc/httpd/libexec/mod_rewrite.so If the scan finds malicious entry like mod_rphp or mod_root in httpd.conf it will email an alert to a particular email. -bash-2.05b# grep mod_r /etc/httpd/conf/httpd.conf | grep -v mod_rewrite -bash-2.05b# If the scan finds malicious files in the folder /etc/httpd/libexec/ like mod_rphp.so or mod_rootme -bash-2.05b# find /etc/httpd/libexec/ -name mod_r* | grep -v mod_rewrite.so -bash-2.05b# it will email an alert to a particular email. Please advise. format is basically.. 1) if entry exists do email alert 2) if file exists do email alert Thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|