Network Preflight (Python)
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from typing import Any, Dict
from kittysploit import *
class Module(Prestage):
PRESTAGE_ID = "network_preflight"
__info__ = {
"name": "Network Preflight (Python)",
"description": "Probe callback reachability before entering the main implant loop",
"author": "KittySploit Team",
"version": "1.0.0",
"platform": Platform.MULTI,
"languages": ["python"],
"prestage_dependencies": ["telemetry_buffer"],
"tags": ["prestage", "offline", "network", "python"],
}
timeout = OptString("3", "TCP connect timeout in seconds", False)
def generate_python(self, context: Dict[str, Any] = None) -> str:
from lib.c2.prestage_guards import build_network_preflight_bootstrap
ctx = dict(context or {})
c2_host = str(ctx.get("c2_host") or "").strip()
c2_port = int(ctx.get("c2_port") or 8088)
try:
timeout = float(getattr(getattr(self, "timeout", None), "value", self.timeout) or 3)
except (TypeError, ValueError):
timeout = 3.0
if not c2_host:
return "pass # network_preflight: set lhost on payload"
return build_network_preflight_bootstrap(c2_host=c2_host, c2_port=c2_port, timeout=timeout)
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