static void Main(string[] args) { Hasher hasher = new Hasher(new string[] { @"C:\Users\AuthBase\source\repos\AuthBaseSystemIOMonitor\packages\EntityFramework.6.2.0" }); var hashes = hasher.HashSystem(); FileHasherContext context = new FileHasherContext(); FileRepository repository = new FileRepository(context); //repository.SaveFiles(hashes); Program program = new Program(); var objs = program.GetProcessInfo("devenv"); CheckHashes(); //var process = Process.GetProcessesByName("firefox")[0]; //string path = process.MainModule.FileName; //ProcessStartInfo startInfo = new ProcessStartInfo //{ // UseShellExecute = true, // CreateNoWindow = false, // WindowStyle = ProcessWindowStyle.Normal, // FileName = @"C:\Users\AuthBase\source\repos\AuthBaseSystemIOMonitor\AuthBaseMonitoringService\Resources\DialogDisplay.exe", // //Arguments = @"C:\hashes.json" //}; //Process.Start(startInfo); //System.Windows.Forms.Application.Run(new DialogDisplay.DialogDisplay()); RunTest("devenv"); VirusTotalService virusTotal = new VirusTotalService(); var output1 = virusTotal.SigCheckDirectoryFull(@"C:\Users\AuthBase\source\repos\AuthBaseSystemIOMonitor\packages"); var output2 = virusTotal.SigCheckFile(@"C:\Users\AuthBase\source\repos\AuthBaseSystemIOMonitor\AuthBaseMonitoringService\bin\Debug\AuthBaseMonitoringService.exe"); }
private bool CheckHash(string hash) { FileHasherContext context = new FileHasherContext(); FileRepository repository = new FileRepository(context); return(repository.CheckHash(hash)); }