Exploit databaseDownload repository ZIP
GH-9fcdc3b0dd5c5e18b788e8a22f70bf75
tc4dy/cve-2026-134815-poc-exploit
Sources for CVE-2026-134815
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files5
tc4dy/cve-2026-134815-poc-exploitRevision 64eb6a56c017
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
lib/git_harness.py
Python · 2,393 bytesimport json
import os
import random
import shutil
import subprocess
import tempfile
import time
class GitHarness:
def __init__(self, node_bin=None, timeout=20.0, jitter=(0.05, 0.35)):
self.node_bin = node_bin or shutil.which("node") or "node"
self.timeout = timeout
self.jitter = jitter
self._workdir = None
self._script = None
def _setup(self):
if self._script is not None:
return
self._workdir = tempfile.mkdtemp(prefix="simplegit_harness_")
self._script = os.path.join(self._workdir, "harness.js")
src = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "harness", "simple_git_target.js")
if not os.path.isfile(src):
raise RuntimeError(f"harness source not found: {src}")
shutil.copy2(src, self._script)
def _jitter(self):
lo, hi = self.jitter
if hi > 0:
time.sleep(random.uniform(lo, hi))
def run(self, method, args):
self._setup()
self._jitter()
payload = json.dumps({"method": method, "args": args})
try:
proc = subprocess.run(
[self.node_bin, self._script],
input=payload.encode(),
capture_output=True,
timeout=self.timeout,
text=True,
)
except subprocess.TimeoutExpired:
return {"error": "harness timed out", "output": None}
except FileNotFoundError:
return {"error": f"node binary not found: {self.node_bin}", "output": None}
out = (proc.stdout or "").strip()
err = (proc.stderr or "").strip()
if proc.returncode != 0 and not out:
return {"error": err or f"exit {proc.returncode}", "output": None}
try:
result = json.loads(out)
except json.JSONDecodeError:
return {"error": f"unparseable output: {out[:200]}", "output": None}
return result
def version(self):
return self.run("version", [])
def cleanup(self):
if self._workdir and os.path.isdir(self._workdir):
shutil.rmtree(self._workdir, ignore_errors=True)
self._workdir = None
self._script = None
def __enter__(self):
self._setup()
return self
def __exit__(self, exc_type, exc, tb):
self.cleanup()