Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×