![]() |
| Possible bug with command line virus checking |
|
alch
Site Admin
|
try this syntax:
<?php system ("\"C:\\Programme\\ClamWin\\bin\\clamscan.exe\" 'C:\\testfile.txt' --database='C:\\Programme\\ClamWin\\clamwin\db'"); ?> with \" or ' quotes you can have spaces inside the path (I think \t is a reserved sequence for TAB in PHP and that explains why it didn't scan the file) |
||||||||||||
|
|
|||||||||||||
|
Luky
|
Thanks for the fast response.
Thats one of the things I have tried already, by replacing all backslashes with chr(92) so i dont have to escape them. But there must be a difference between the execution with system and the command line prompt. When opening a .bat file through system-function of PHP I dont have to escape any chars. So for example the content of test.bat is:
and the System command is: system "D:\\test.bat"; (why do i get a "forbidden" screen when i type in some php code? it returns the empty result. But if I open the bat file directly it shows up that it was scanned successfuly. Maybe some screenshots can help: https://lukydeluxe.org/gfx/scr1.gif 1 | https://lukydeluxe.org/gfx/scr2.gif 2 |
||||||||||||||
|
|
|||||||||||||||
|
alch
Site Admin
|
this string
<?php system ("\"C:\\Programme\\ClamWin\\bin\\clamscan.exe\" 'C:\\testfile.txt' --database='C:\\Programme\\ClamWin\\clamwin\db'"); ?> works here okay |
||||||||||||
|
|
|||||||||||||
|
Luky
|
Hi! Tried this String on 3 other machines with the same result, so tried to make a process connection and that method works:
(Too much to show here, so click https://lukydeluxe.org/Projekte/clamwin.php THIS) Thanks for support! Maybe its a permission failure with system () |
||||||||||||
|
|
|||||||||||||
| Possible bug with command line virus checking |
|
||
|
Powered by phpBB © phpBB Group
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.
Design by phpBBStyles.com | Styles Database.
Content © ClamWin Free Antivirus GNU GPL Free Software Open Source Virus Scanner. Free Windows Antivirus. Stay Virus Free with Free Software.


