Now that I've started to learn Perl, I'm trying to write a
number of scripts that help me do systems administration. Yes, I
know, dozens of people have done this before, but it's always fun to
do it yourself.
One of the things I'd like to do is check to see if any of a
set of binaries have been modified since the last time I ran the
check. Perl will allow me to verify that the file size is the same as
the last time I ran the script, and it will also let me look at the
last modified date. The question is: which is safer to monitor? If I
were a cracker, and I wanted to modify a binary so that it would make
the system work for me, I *think* it would be easy to make the patch
so that the executable was the same size as the original. Is there
any way the presumed intruder (or even a user on the system) can
change the last modified date for a file?
In case anyone cares, this is a Linux box using the ext2 file
system.
--
Lee Silverman, Brown class of '94, Brown GeoPhysics ScM '95
"Nonsense - you only say it's impossible because nobody's ever done it."