Subversion Repositories My Stuff

Rev

Rev 22 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 22 Rev 23
Line 21... Line 21...
21
/usr/sbin/chkrootkit 2>&1 > ${FILENAME}
21
/usr/sbin/chkrootkit 2>&1 > ${FILENAME}
22
22
23
if (cat ${FILENAME} | grep -q "INFECTED\|Vulnerable") then
23
if (cat ${FILENAME} | grep -q "INFECTED\|Vulnerable") then
24
        echo "There seems to be a problem!!!!" > /var/tmp/msgfile-${DATE}
24
        echo "There seems to be a problem!!!!" > /var/tmp/msgfile-${DATE}
25
        echo "-------------------------------------------------" >> /var/tmp/msgfile-${DATE}
25
        echo "-------------------------------------------------" >> /var/tmp/msgfile-${DATE}
26
        cat ${FILENAME} | grep "INFECTED\|Vulnerable >> /var/tmp/msgfile-${DATE}
-
 
-
 
26
        cat ${FILENAME} | grep "INFECTED\|Vulnerable" >> /var/tmp/msgfile-${DATE}
27
        echo "-------------------------------------------------" >> /var/tmp/msgfile-${DATE}
27
        echo "-------------------------------------------------" >> /var/tmp/msgfile-${DATE}
28
        echo "You can see whole test results in attachment file" >> /var/tmp/msgfile-${DATE}
28
        echo "You can see whole test results in attachment file" >> /var/tmp/msgfile-${DATE}
29
else
29
else
30
        echo "Your system is not infected" > /var/tmp/msgfile-${DATE}
30
        echo "Your system is not infected" > /var/tmp/msgfile-${DATE}
31
        echo "You can see whole test results in attachment file" >> /var/tmp/msgfile-${DATE}
31
        echo "You can see whole test results in attachment file" >> /var/tmp/msgfile-${DATE}