EasyUniversal / DocsДокументация · SDK 0.3Подписка Universal ↗
Easy Universal / Справочник SDK

process-inspector.as

AngelScript · native runtime · локальная сборка
// Add .as -> select this file -> choose an authorized PID -> enable read
// access -> Load script. Own preview only; not a CS2 wallhack or bypass.
string targetName;
uint64 imageBase = 0;
void on_load() {
    if (!process::attached()) return;
    targetName = process::name();
    imageBase = process::module_base(targetName);
}
void on_frame() {
    render::text(24,24,"Easy: read-only process check",0xf79b53ff);
    if (!process::attached()) {
        render::text(24,54,"Select PID and explicitly enable read access.");
        return;
    }
    if (!process::alive()) {
        render::text(24,54,"Target exited. Stop and choose a new PID.");
        return;
    }
    render::text(24,54,targetName);
    uint signature = 0;
    bool readable = imageBase != 0 && process::read_u32(imageBase,signature);
    if (readable && (signature & 0xffff) == 0x5a4d)
        render::text(24,84,"PASS: real executable memory is readable.",0x72c57dff);
    else
        render::text(24,84,"Read unavailable: " + process::last_error());
}
Easy Universal — отдельный проект. Easy External не изменён.