Page 1 of 1

ClamWin

Posted: 17 Nov 2009 06:52
by stanmarsh
ClamWin is an open-source antivirus, you can use this to double-check suspicious files. If anyone can improve this script, please don't hesitate to do so, I tested this using ClamWinPortable only.

Code: Select all

//ClamWin

"_settings"
	global $g_exec,$g_db,$g_update;
    $g_exec = "<xypath>\ClamWinPortable\App\clamwin\bin\clamscan.exe";
    $g_db = "<xypath>\ClamWinPortable\Data\db";
	$g_update = "<xypath>\ClamWinPortable\ClamWinPortable.exe";
	if(exists($g_exec)!=1){
        msg "ClamScan path is invalid!";
		end 1;}
	if(exists($g_db)!=2){
        msg "Virus Database path is invalid!";
		end 1;}
	if(exists($g_update)!=1){
        msg "ClamWinPortable path is invalid!";
		end 1;}

"Scan : scan"
	global $g_exec,$g_db;
	sub _settings;
	openwith """$g_exec"" --database=""$g_db"" --recursive <items>",s;
	
"Update : update "
	global $g_update;
	sub _settings;
	open $g_update,w;
	
-

"Cancel : cancel"
	end 1;