We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21cd6aa commit 3a0c6b1Copy full SHA for 3a0c6b1
project_template/main.cpp
@@ -15,8 +15,11 @@ size_t g_PayloadSize = 0;
15
// manually load the PE file using libPeConv
16
bool load_payload(LPCTSTR pe_path)
17
{
18
- // manually load the PE file using libPeConv:
19
- size_t g_PayloadSize = 0;
+ if (g_Payload) {
+ // already loaded
20
+ std::cerr << "[!] The payload is already loaded!\n";
21
+ return false;
22
+ }
23
#ifdef LOAD_FROM_PATH
24
//if the PE is dropped on the disk, you can load it from the file:
25
g_Payload = peconv::load_pe_executable(pe_path, g_PayloadSize);
0 commit comments