Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Virus Scanning help [php]
#1
I am trying to make a file scanner to check if it has viruses with php. I made the upload form already. Can someone help me with the code? I heard you can do it with clamscan. I tried:

exec("clamscan /var/www/upload", $file, $return)

if ($return == 0)
{
echo "clean"
}

else
{
echo "virus!"
}

But it always comes out as infected, even if it is not. Help please? show me the right path or somethnig. Or just the right code.

thanksBlackhat
Support the best of ideas ----->

- http://www.vinceking69.blogspot.com -
Reply
#2
$return is whole reply from clamscan.
you would have to parse the reply from clamscan.
Reply
#3
I don't understand, could you put more details please?
Support the best of ideas ----->

- http://www.vinceking69.blogspot.com -
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)