MCPcopy Create free account
hub / github.com/SafeBreach-Labs/PoolParty / GetTargetProcessHandle

Method GetTargetProcessHandle

PoolParty/PoolParty.cpp:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10std::shared_ptr<HANDLE> PoolParty::GetTargetProcessHandle() const
11{
12 auto p_hTargetPid = w_OpenProcess(PROCESS_VM_READ | PROCESS_VM_WRITE | PROCESS_VM_OPERATION | PROCESS_DUP_HANDLE | PROCESS_QUERY_INFORMATION, FALSE, m_dwTargetPid);
13 BOOST_LOG_TRIVIAL(info) << boost::format("Retrieved handle to the target process: %x") % *p_hTargetPid;
14 return p_hTargetPid;
15}
16
17std::shared_ptr<HANDLE> PoolParty::GetTargetThreadPoolWorkerFactoryHandle() const
18{

Callers 1

InjectMethod · 0.95

Calls 1

w_OpenProcessFunction · 0.85

Tested by

no test coverage detected