Exploit database

GH-c02095119fa95c09ae8f14814e99a752

alfzki/ghostlock-app

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-43499

165 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files16
alfzki/ghostlock-appRevision dda9fda3d7a9

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