How To Find Infected Files Running clamcan -r and move them

Miscellaneous tools
Locked
Message
Author
User avatar
michaellowe
Posts: 66
Joined: Sat 17 Dec 2011, 08:33
Location: The Garden

How To Find Infected Files Running clamcan -r and move them

#1 Post by michaellowe »

Install clamav if you dont have it already:

check out http://murga-linux.com/puppy/viewtopic.php?t=53171 for info

run this command if you want to scan recursively and move the infected files to eg. /somewhere

here run this:

Code: Select all

clamscan -r --move=/home/USER/VIRUS /home/USER
just replace /home/USER/Virus with /.../... (wherever you want)
and /home/USER with whichever directory you are wanting to scan like your whole filesystem /

the above example was taken fro launchpad for ubuntu usesr so it will differ for each different OS naturally

mine is eg:

Code: Select all

clamscan -r --move=/mnt/home/vault /
Funnily enough i did find that there is already a directory for the found infected viruses at / called Virus

Nevermind, they both work ;-)
Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post by Flash »

This is a continuation of a thread on this subject that michaellowe started here.

Locked