LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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
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: 29,415
Blog Entries: 55

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration