Files
youssefnoob003-SindriKit/include/sindri/loaders/reflective/chain.h
T
sibouzitoun aea2eb6cfb Release v1.1.0: Process Injection & Architecture Hardening
- Implement complete cross-process injection engine via snd_inj_ctx_t
- Track explicit remote_entry_point for safe thread hijacking and PE execution
- Refactor standalone syscall resolvers into a unified pipeline (scan/sort)
- Perfect status code system by purging generic fallbacks in favor of highly-specific, domain-aware error codes
- Fix minor pointer validation and parsing bugs in the reflective loader
2026-06-28 14:14:54 +01:00

37 lines
953 B
C

#ifndef SND_LOADERS_REFLECTIVE_CHAIN_H
#define SND_LOADERS_REFLECTIVE_CHAIN_H
#include <sindri/common/macros.h>
#include <sindri/loaders/reflective/engine.h>
SND_BEGIN_EXTERN_C
/**
* @brief Executes the entire allocation and fixup chain.
*
* @param ctx Initialized loader context.
* @return SND_OK on success, otherwise the failing stage status.
* @note Wraps compatibility check, copy, relocation, imports, protections, and
* TLS.
*/
snd_status_t snd_ldr_pe_prepare_image(snd_ldr_pe_ctx_t *ctx);
/**
* @brief Executes the loaded image entry point.
*
* @param ctx Prepared loader context.
* @return SND_OK on success, otherwise execution error.
*/
snd_status_t snd_ldr_pe_execute_image(snd_ldr_pe_ctx_t *ctx);
/**
* @brief Cleans up and detaches the reflective image state.
*
* @param ctx Reflective loader context.
*/
void snd_ldr_pe_detach_image(snd_ldr_pe_ctx_t *ctx);
SND_END_EXTERN_C
#endif // SND_LOADERS_REFLECTIVE_CHAIN_H