feat:增加gadget配置界面

This commit is contained in:
jiqiu2021
2025-06-27 16:15:38 +08:00
parent cc4fb60b7b
commit 7e5a96cd78
6 changed files with 273 additions and 3 deletions

View File

@@ -19,10 +19,19 @@ namespace Config {
CUSTOM_LINKER = 2
};
struct GadgetConfig {
std::string address = "0.0.0.0";
int port = 27042;
std::string onPortConflict = "fail";
std::string onLoad = "wait";
std::string gadgetName = "libgadget.so";
};
struct AppConfig {
bool enabled = false;
InjectionMethod injectionMethod = InjectionMethod::STANDARD;
std::vector<SoFile> soFiles;
GadgetConfig* gadgetConfig = nullptr;
};
struct ModuleConfig {