Lucene search
+L

Resource Guard (Zig)

🗓️ 29 Sep 2026 10:07:34Reported by KittySploitType 
kittysploit
 kittysploit
🔗 github.com👁 17 Views

Resource Guard (Zig) exits early when memory or disk looks too constrained.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from typing import Any, Dict

from kittysploit import *
from lib.c2.prestage_guards_zig import Prestage_guards_zig


class Module(Prestage, Prestage_guards_zig):
    PRESTAGE_ID = "resource_guard"

    __info__ = {
        "name": "Resource Guard (Zig)",
        "description": "Exit early when memory or disk looks too constrained for the intended target",
        "author": "KittySploit Team",
        "version": "1.0.0",
        "platform": Platform.MULTI,
        "languages": ["zig"],
        "prestage_dependencies": ["telemetry_buffer"],
        "tags": ["prestage", "offline", "guard", "zig"],
    }

    min_mem_mb = OptString("32", "Minimum physical memory in MB", False)
    min_disk_mb = OptString("10", "Minimum free disk in MB", False)

    def generate_zig(self, context: Dict[str, Any] = None) -> str:
        try:
            min_mem = int(getattr(getattr(self, "min_mem_mb", None), "value", self.min_mem_mb) or 32)
        except (TypeError, ValueError):
            min_mem = 32
        try:
            min_disk = int(getattr(getattr(self, "min_disk_mb", None), "value", self.min_disk_mb) or 10)
        except (TypeError, ValueError):
            min_disk = 10
        return self.build_resource_guard_zig(min_mem_mb=min_mem, min_disk_mb=min_disk)

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

23 Nov 2026 00:18Current
6Medium risk
Vulners AI Score6
17