![]() |
Panoptes 1.0.0
Endpoint Detection and Response
|
Resources shared by the cases of one test run, created in the child process. The remote processes are started by Start, before the first case, so what process creation itself triggers (CreateProcess writes to the child's PEB) is reported as setup rather than attributed to a case. More...
#include <hook_test_harness.hpp>
Public Member Functions | |
| ~HookTestContext () | |
| void | Start () |
| Starts the remote targets. Called by the harness before the first case. | |
| const BYTE * | PEImage () const |
| A buffer holding a real PE image: this executable's own mapped headers. | |
| HANDLE | RemoteProcess () const |
| A suspended cmd.exe of the same architecture to use as a remote target. | |
| HANDLE | RemoteThread () const |
| The suspended main thread of RemoteProcess. | |
| HANDLE | Wow64RemoteProcess () const |
| A suspended 32-bit cmd.exe, started only by x64 runs: from x64, a WOW64 target has both a 64-bit and a 32-bit PEB. | |
Static Public Attributes | |
| static constexpr SIZE_T | PESize = 0x1000 |
| The number of PEImage() bytes the cases copy, one page. | |
Resources shared by the cases of one test run, created in the child process. The remote processes are started by Start, before the first case, so what process creation itself triggers (CreateProcess writes to the child's PEB) is reported as setup rather than attributed to a case.
Definition at line 46 of file hook_test_harness.hpp.
|
inline |
Definition at line 48 of file hook_test_harness.hpp.
|
inline |
A buffer holding a real PE image: this executable's own mapped headers.
Definition at line 65 of file hook_test_harness.hpp.
|
inline |
A suspended cmd.exe of the same architecture to use as a remote target.
Definition at line 71 of file hook_test_harness.hpp.
|
inline |
The suspended main thread of RemoteProcess.
Definition at line 74 of file hook_test_harness.hpp.
|
inline |
Starts the remote targets. Called by the harness before the first case.
Definition at line 54 of file hook_test_harness.hpp.
References MAX_PATH, and StartSuspended().
Referenced by hook_test_detail::RunChild().
|
inline |
A suspended 32-bit cmd.exe, started only by x64 runs: from x64, a WOW64 target has both a 64-bit and a 32-bit PEB.
Definition at line 78 of file hook_test_harness.hpp.
|
staticconstexpr |
The number of PEImage() bytes the cases copy, one page.
Definition at line 68 of file hook_test_harness.hpp.