Jump to content
M_R

How to find exe files? [solved]

Recommended Posts

Hello,

 

I have run into a problem here:

 

I got this Win32:parite virus which infects executable files. It has infected my Linux installation via Wine (didn't know a virus could spread via Wine). All of the .exe files I have are infected. Now, I know that this virus will never be able to infect any Linux executable, but the problem is that this is a server here, and it's going to infect other machines running Windows via SAMBA. So I'd like to remove all the executables and replace them with new uninfected files.

 

I found the file that briught the virus in, but it has spread all over, so I need to delete all .exe files first.

 

Is there a search program which is as effective as Windows' tools? I don't care if it is a command, I just need a reliable way of locating any *.exe files. I have located most of them, but I need to make sure there are no more exe's in my Linux.

 

Thanks in advance, I know this is quite simple.

 

[moved from Software by spinynorman]

Share this post


Link to post
Share on other sites

You can try the locate command (rpm package name is 'mlocate' in case you don't have it installed). If there are lines where 'exe' is not at the end you can use grep to remove them from the list, but that could also remove a line you want to see if exe appears at the end and also elsewhere in the line.

 

locate -i \.exe | grep -iv exe. | less

Edited by boatman9

Share this post


Link to post
Share on other sites

Another one:

 

find ./ -iname *.exe

 

will find all case insensitive of exe.

Share this post


Link to post
Share on other sites

locate uses a database, so it means you need to run updatedb first, before it can interrogate it. find you can use without building the database. updatedb would have to be run each time you start your system, or before you search. So either way, find or locate will take about the same time, unless the system is always on like a server, then you can schedule updatedb to update everything.

 

slocate used to be used, it was a better version of locate, but then somehow disappeared, no idea why.

Share this post


Link to post
Share on other sites

Thank you guys for all your help. That's exaclty what I needed.

 

 

 

Thanks

Edited by M_R

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...