Exploit databaseDownload repository ZIP
GH-c02095119fa95c09ae8f14814e99a752
alfzki/ghostlock-app
Sources for CVE-2026-43499
165 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files16
alfzki/ghostlock-appRevision dda9fda3d7a9
- ↑..Parent directory
- ancillary/
- backend/
- exploit_session.cpp
- exploit_session.hpp
- handoff_probe.cpp
- handoff_probe.hpp
- root_child_frontend.cpp
- root_child_frontend.hpp
- runtime_config.cpp
- runtime_config.h
- runtime_paths.h
- stage_types.hpp
- victim_context.cpp
- victim_context.hpp
- victim_process.cpp
- victim_process.hpp
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/core/session/runtime_config.h
Text · 1,550 bytes#ifndef GHOSTLOCK_RUNTIME_CONFIG_H
#define GHOSTLOCK_RUNTIME_CONFIG_H
#include "profile/model.h"
#include <string>
namespace ghostlock::config {
/* One runtime snapshot captured once from the environment. Paths own their
* storage; callers convert to c_str() only at syscall/exec boundaries so no
* temporary string pointer can outlive the snapshot. */
class RuntimeConfig final {
public:
int32_t main_cpu = 0;
int32_t consumer_cpu = 1;
std::string home_dir = "/data/local/tmp";
std::string root_script_path = "/data/local/tmp/.ghostlock_root.sh";
/* Per-run KernelSU log (U01-S14): Kotlin passes GHOSTLOCK_KSU_LOG so a
* previous run's markers can never be misread; falls back to the legacy
* home-dir name for CLI runs. */
std::string ksu_log_path = "/data/local/tmp/.ghostlock_ksu.log";
/* Kernel-log dump directory from --dump-kernel-log; empty disables the dump. */
std::string debug_dir;
RuntimeConfig() noexcept = default;
/* Capture the process environment exactly once. */
int32_t init();
/* Merge the profile's recommended CPU pair (validated). */
int32_t apply_profile(const ghostlock::profile::TargetProfile *profile);
void log() const;
};
/* The process snapshot is owned by ExploitSession. Callers reach it through
* this accessor; the public reference alias is gone (CPP12/SESSION-01). */
RuntimeConfig &runtime_config_snapshot() noexcept;
} // namespace ghostlock::config
#endif