Panoptes 1.0.0
Endpoint Detection and Response
Loading...
Searching...
No Matches
Functions
PE Namespace Reference

Functions

 TEST (PEScan, GetImports)
 
 TEST (PEScan, GetSections)
 
 TEST (PEScan, CheckIfSigned)
 

Function Documentation

◆ TEST() [1/3]

PE::TEST ( PEScan  ,
CheckIfSigned   
)

Definition at line 18 of file Test_PanoptesPE.cpp.

18 {
19 PortableExecutable* pe = new PortableExecutable("C:\\Windows\\System32\\notepad.exe");
20 bool result = pe->CheckIfSigned();
21 EXPECT_EQ(result, false);
22 }
bool CheckIfSigned()
Check if the portable executable is signed.
Definition pe-scan.cpp:65
ULONG result
Definition events.cpp:22

References PortableExecutable::CheckIfSigned(), and result.

◆ TEST() [2/3]

PE::TEST ( PEScan  ,
GetImports   
)

Definition at line 6 of file Test_PanoptesPE.cpp.

6 {
7 PortableExecutable* pe = new PortableExecutable("C:\\Windows\\System32\\notepad.exe");
8 std::vector<std::string> result = pe->GetImports();
9 EXPECT_GT(result.size(), 0);
10 }
std::vector< std::string > GetImports()
Get the imports from the portable executable.
Definition pe-scan.cpp:20

References PortableExecutable::GetImports(), and result.

◆ TEST() [3/3]

PE::TEST ( PEScan  ,
GetSections   
)

Definition at line 12 of file Test_PanoptesPE.cpp.

12 {
13 PortableExecutable* pe = new PortableExecutable("C:\\Windows\\System32\\notepad.exe");
14 std::vector<std::pair<std::string, double>> result = pe->GetSections();
15 EXPECT_GT(result.size(), 0);
16 }
std::vector< std::pair< std::string, double > > GetSections()
Get the sections from the portable executable.
Definition pe-scan.cpp:45

References PortableExecutable::GetSections(), and result.