Jump to content

How to find exe files? [solved]


 Share

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]

Link to comment
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
Link to comment
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.

Link to comment
Share on other sites

  • 2 weeks later...

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...
 Share

×
×
  • Create New...