LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-05-2002, 06:41 AM   #1
ian54
LQ Newbie
 
Registered: Feb 2002
Posts: 5

Rep: Reputation: 0
Simple "anti-virus" file checker


I remember on early Windows you could get a simple utility to scan and record the file sizes (or checksums) of all programs in the system and report any differences since the last scan, it was a very simple anti-virus and anti-tamper utility.

Is there an example for Linux, although I'm a newbie I have over 15 years experience with UNIX and I'm sure I could write a quick C program or shell script to do this task, but just so I don't re-invent the wheel ...

TIA
 
Old 03-05-2002, 07:27 AM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
Maybe md5sum?
 
Old 03-05-2002, 09:26 AM   #3
ian54
LQ Newbie
 
Registered: Feb 2002
Posts: 5

Original Poster
Rep: Reputation: 0
I was thinking of using md5sum in a script at first, but does it also detect "missing" or "new" files too ? I suppose doing a simple diff against two md5sum outputs might be an easy solution.
 
Old 03-05-2002, 10:11 AM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,536

Rep: Reputation: 148Reputation: 148
When there is an error (no such file) most programs return value different than 0. So you can use if instruction.
 
Old 03-05-2002, 12:03 PM   #5
isajera
Senior Member
 
Registered: Jun 2001
Location: San Antonio, TX
Distribution: distro? what's a distro?
Posts: 1,635

Rep: Reputation: 45
if you do an search on linux-virus checking, you're going to get some pretty scant results. most of what you'd find would be people saying there are no viruses under linux, or there are only a few viruses under linux, ect. ect. the good real info that you're looking for will be hard to come by.

if you can't find anything on sourceforge or freshmeat to perform the checks you're talking about, you might be best off writing it yourself.
 
Old 03-05-2002, 12:35 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,374
Blog Entries: 54

Rep: Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870Reputation: 2870
If you're talking checksumming and such, check out "file integrity checker" apps like Aide, Tripwire or Samhain.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
Symantec Anti Virus "CORP" ? realized Linux - Security 0 10-11-2004 03:39 AM
Boot virus or Anti-Virus? AVG Free Anti-Virus Software problems SparceMatrix Linux - Security 9 08-02-2004 02:35 PM
f-prot anti-virus "Segmentation fault" error and other weird stuff dalek Linux - Software 9 10-22-2003 07:37 PM
Can't locate object method "splitpath" via package "File::Spec" RobJohnston Linux - General 2 06-28-2003 09:59 AM


All times are GMT -5. The time now is 07:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration