The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

how i can scan all hdd with clamav?

Discussion in 'cPanel Developers' started by robocap, Nov 25, 2006.

  1. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    hi dear.
    i have one dedicated and i want scan all hdd and server for virus and .. with clamav.
    i want use of putty or shell
    please give me command or help,.
    thanks
     
  2. ramprage

    ramprage Well-Known Member

    Joined:
    Jul 21, 2002
    Messages:
    667
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Canada
    clamscan /
     
  3. HelloAdam

    HelloAdam Well-Known Member

    Joined:
    Nov 6, 2005
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Hey,

    Should it be

    /home ?

    Code:
    clamscan home
    
    From,
    Adam
     
  4. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    thanks of you.
    i test the way
    but

    please see

    Code:
    root@host [/]# clamscan home/
    LibClamAV Warning: ********************************************************
    LibClamAV Warning: ***  This version of the ClamAV engine is outdated.  ***
    LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/faq.html ***
    LibClamAV Warning: ********************************************************
    
    ----------- SCAN SUMMARY -----------
    Known viruses: 78632
    Engine version: 0.88.5
    Scanned directories: 1
    Scanned files: 0
    Infected files: 0
    Data scanned: 0.00 MB
    Time: 3.554 sec (0 m 3 s)
    
    clamscan cant scan all hdd.
    i want scan all home directory
    i test clamscan home/

    but again take to me


    please help me

    thanks
    good luck
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Look in the documentation:

    man clamscan

    For recursive lookups you would therefore use:

    clamscan -r /home

    Though that's quite noisy, so:

    clamscan -r --quiet /home

    Would probably be better.

    That said, why would you want to scan all the files in /home for viruses?
     
  6. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    hi dear.
    thanks of you
    yes
    i want scan for virus and shell and trojand and ...
    thanks of your help.
    good luck
     
  7. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    more for shell
    because hacker can with one bug upload shell,yet c99 shell.

    but if customer want upload shell with file manger server take to him that the file is problem(virus and ...)
    but if customer crate new file for exapmle good.php

    and edit them
    and copy paste code,clamav can`t DISTINCTION problem file.

    ok?
    thanks
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Running ClamAV against yur unix files won't have any effect on those issues at all. ClamAV is baiscally only going to find windows and email viruses, as there's aren't any for Linux.
     
  9. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    thanks
    do you have better SUGGESTION?

    thanks of you.
    good luck
     
  10. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    how i can destroy auto files that have virus and trojan? (deleted auto file that have trojan and virus)



    ----------- SCAN SUMMARY -----------
    Known viruses: 78632
    Engine version: 0.88.6
    Scanned directories: 207
    Scanned files: 1273
    Infected files: 4
    Data scanned: 51.77 MB
    Time: 85.325 sec (1 m 25 s)
     
  11. robocap

    robocap Well-Known Member

    Joined:
    Nov 6, 2006
    Messages:
    67
    Likes Received:
    0
    Trophy Points:
    6
    hi dear.
    thanks of you.
    i can find command


    clamscan -r --remove /home


    you can run clamscan --help

    good luck
     

Share This Page