ClamWin

Discuss and share scripts and script files...
Post Reply
stanmarsh
Posts: 85
Joined: 10 Mar 2009 07:43

ClamWin

Post 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;
You do not have the required permissions to view the files attached to this post.

Post Reply