Stage Cache (Python)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Any, Dict
from kittysploit import *
from core.payload_generation.prestage.stage_cache_context import resolve_stage_cache_context
class Module(Prestage):
PRESTAGE_ID = "stage_cache"
__info__ = {
"name": "Stage Cache (Python)",
"description": "Verified local stage cache with TTL expiration and interrupted download resume",
"author": "KittySploit Team",
"version": "1.0.0",
"platform": Platform.MULTI,
"languages": ["python"],
"prestage_dependencies": ["telemetry_buffer"],
"tags": ["prestage", "offline", "staging", "cache", "python"],
}
cache_dir = OptString("", "Cache directory on target (default: temp/.kitty_stage_cache)", False)
cache_ttl = OptString("86400", "Cache entry TTL in seconds", False)
stage_url = OptString("", "Default stage URL for fetch()", False)
def generate_python(self, context: Dict[str, Any] = None) -> str:
from lib.c2.stage_cache import build_stage_cache_bootstrap
cfg = resolve_stage_cache_context(self, context)
cache_dir = str(cfg.get("cache_dir") or "").strip()
if cache_dir:
return build_stage_cache_bootstrap(
cache_dir,
ttl_seconds=int(cfg.get("cache_ttl") or 86400),
default_url=str(cfg.get("stage_url") or ""),
)
return (
"import os as _os\n"
"import tempfile as _tmp\n"
"_kitty_stage_cache_dir_expr = _os.path.join(_tmp.gettempdir(), '.kitty_stage_cache')\n"
+ build_stage_cache_bootstrap(
"_kitty_stage_cache_dir_expr",
ttl_seconds=int(cfg.get("cache_ttl") or 86400),
default_url=str(cfg.get("stage_url") or ""),
cache_dir_is_expression=True,
)
)
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
29 Sep 2026 10:07Current
5.8Medium risk
Vulners AI Score5.8