LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-06-2003, 11:18 PM   #1
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Rep: Reputation: 15
::Simple Linux Program::


I just need to make a simple program that goes through your whole hard drive and deletes any files with .eml and .nws extensions... Can anyone give me any pointers?
-Thanks
Andy
 
Old 06-07-2003, 12:32 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Of course I can
first do
cd /
then
find . -name "*.[en][mw][ls]" -type f -exec rm -f {} \; 2>/dev/null

Incidentally check the spaces!You may end up deleting everything.
 
Old 06-07-2003, 03:08 AM   #3
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
.eml....reminds me of the nimda virus.
 
Old 06-07-2003, 04:51 AM   #4
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Nimda?
Now what is that?
 
Old 06-07-2003, 08:38 AM   #5
thebear
Member
 
Registered: Mar 2003
Distribution: RedHat 9
Posts: 52

Rep: Reputation: 15
Nimda was one of those worms that caused worldwide havoc (right up there with I Luv U, and Code Red)
 
Old 06-07-2003, 10:30 AM   #6
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Yeah, you're right I have the Nimda virus and I've had it for a while and can't seem to get ride of it. I can only isolate it... Any tips on getting rid of it? Like do you think this program would get rid of it?
Thanks
-Andy
 
Old 06-07-2003, 01:54 PM   #7
Edward78
Member
 
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
Quote:
Originally posted by XxAndyxX
Yeah, you're right I have the Nimda virus and I've had it for a while and can't seem to get ride of it. I can only isolate it... Any tips on getting rid of it? Like do you think this program would get rid of it?
Thanks
-Andy
Do you have a virus scenner? Try www.sarc.com
 
Old 06-07-2003, 02:38 PM   #8
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Yeah, I have a virus scanner on all my client computer (which are all clean) the virus lies in my RedHat 8.0 server... Which the fix given to me from Norton
"http://securityresponse.symantec.com/avcenter/venc/data/w32.nimda.e@mm.removal.tool.html" does not support linux.... It doesn't even support novel.
 
Old 06-07-2003, 10:33 PM   #9
BryanMC
Member
 
Registered: Feb 2003
Distribution: SUSE Pro 8.1
Posts: 33

Rep: Reputation: 15
wasn't nimbda = code red??

i may be wrong....
 
Old 06-07-2003, 11:05 PM   #10
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Did you tried
cd /
then
find . -name "*.[en][mw][ls]" -type f -exec rm -f {} \; 2>/dev/null
(mount your windows partition before using the command, and hope that it is fat32)
 
Old 06-09-2003, 09:42 AM   #11
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
Yes, that worked. It got rid of files with .eml and .nws extensions thanks a lot for the help guys.
 
Old 06-09-2003, 11:48 AM   #12
Edward78
Member
 
Registered: Jul 2002
Distribution: OpenSuSE 11
Posts: 441

Rep: Reputation: 30
I thought there was no linux viruses. Why don't they make a linux virus scanner to scan linux for viruses?
 
Old 06-09-2003, 03:37 PM   #13
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
they have them avaiable (id post a name or a link but i dont know what they are called, i forgot).
 
Old 06-09-2003, 03:39 PM   #14
Robert0380
LQ Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
WHOA WHOA WHOA....

NIMDA AND CODE RED ONLY AFFECT WINDOWS MACHINES!!!

this thread is misleading.
 
Old 06-09-2003, 03:46 PM   #15
XxAndyxX
Member
 
Registered: Mar 2003
Location: Houston, TX
Distribution: RedHat 8.0
Posts: 79

Original Poster
Rep: Reputation: 15
To clear things up....

I had one of my machines on my network infected with the Nimda virus. That computer was mapped to my server's root and everything... So it got into my server through the Window's client. Then when another client connected to the server it spread... But now I have all my clients cleaned out. I wanted to delete the virus out of my server too.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
simple program help! rohitkara Linux - General 1 05-24-2005 08:57 PM
simple mail program works on windows and not on linux naijaguy Linux - General 1 04-21-2005 08:45 PM
A simple program on C++ for the linux with an error. Israfel2000 Programming 4 06-16-2004 06:25 PM
find a simple Windows program to check my hardware is compatibale with Linux or no czy11421 Linux - Newbie 3 05-07-2004 06:00 AM
simple program bprasanth_20 Programming 5 10-29-2003 12:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:05 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