Skip to content

yolofy/AvScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AvScan

CLI wrappers for virus scanners.

###Windows Defender Usage example for windows defender:

  var exeLocation = @"C:\Program Files\Windows Defender\MpCmdRun.exe";
  var scanner = new WindowsDefenderScanner(exeLocation);
  var result = scanner.Scan(@"C:\virus.txt");
  Console.WriteLine(result);

###Eset Usage example for ESET

  var exeLocation = @"C:\Program Files\ESET\ESET Endpoint Antivirus\ecls.exe";
  var scanner = new EsetScanner(exeLocation);
  var result = scanner.Scan(@"C:\virus.txt");
  Console.WriteLine(result);

###Avast Usage example for Avast (ashcmd is shipped in paid versions only)

  var exeLocation = @"C:\Program Files\AVAST Software\Avast\ashcmd.exe";
  var scanner = new AvastScanner(exeLocation);
  var result = scanner.Scan(@"C:\virus.txt");
  Console.WriteLine(result);

###AVG Usage example for AVG (avgscanx.exe is x86, avgscana.exe is x64)

  var exeLocation = @"C:\Program Files (x86)\AVG\Av\avgscanx.exe";
  var scanner = new AVGScanner(exeLocation);
  var result = scanner.Scan(@"C:\virus.txt");
  Console.WriteLine(result);

You can use the eicar file for testing purposes: http://www.eicar.org/86-0-Intended-use.html

About

CLI wrappers for virus scanners.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published