Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Test_PanoptesAMSI.cpp
Go to the documentation of this file.
1#include "gtest/gtest.h"
2#include "PanoptesAMSI.h"
3
4namespace AMSI {
5 TEST(AMSIScan, ScanFileCopy) {
6 int result = -1;
7 AmsiScanner::AmsiScanFile("C:\\Windows\\System32\\notepad.exe", "C:\\Windows\\Temp\\notepad2.exe", &result);
8 EXPECT_EQ(result, 1);
9 }
10
11 TEST(AMSIScan, ScanFileNoCopy) {
12 int result = -1;
13 AmsiScanner::AmsiScanFile("C:\\Windows\\System32\\notepad.exe", "", &result);
14 EXPECT_EQ(result, 1);
15 }
16}
static HRESULT AmsiScanFile(std::string PathToFile, std::string CopyPath, int *AmsiResult)
Scan a file using Windows built in AMSI feature set.
Definition amsi-scan.cpp:10
ULONG result
Definition events.cpp:22
TEST(AMSIScan, ScanFileCopy)