Exploit database

GH-9d8bf7b89f407a0fff790750df76b5d3

lewis-ricardo/amaranth-project

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-8088

19 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files46
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

Stage07/compile_vm.py

Python · 1,778 bytes
"""
Stage07 compile-only: upload source, compile on VM, download binary.
"""
import paramiko, os, sys

STAGE_DIR = r"D:\Desktop\网安程设\Amaranth_Project\Stage07"
STAGER_SRC = os.path.join(STAGE_DIR, "stager_phantom.cs")
STAGER_EXE = os.path.join(STAGE_DIR, "srvinit_phantom.exe")
VM_HOST = "192.168.30.136"
VM_USER = "lewis"
VM_PASS = "lewis123"
VM_TEMP = r"C:\Windows\Temp"
CSC = r"C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe"

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(VM_HOST, username=VM_USER, password=VM_PASS, timeout=10)
sftp = ssh.open_sftp()

# Upload source
print("Uploading source...")
sftp.put(STAGER_SRC, VM_TEMP + r"\stager_phantom.cs")

# Compile
print("Compiling...")
cmd = f'{CSC} /nologo /t:winexe /r:System.dll /r:System.Core.dll /r:System.Management.dll /out:{VM_TEMP}\\srvinit_phantom.exe {VM_TEMP}\\stager_phantom.cs'
stdin, stdout, stderr = ssh.exec_command(cmd, timeout=120)
ec = stdout.channel.recv_exit_status()
out = stdout.read().decode(errors="replace").strip()
err = stderr.read().decode(errors="replace").strip()
print(f"ec={ec}")
if out:
    with open("D:\\Desktop\\网安程设\\Amaranth_Project\\Stage07\\compile_out.txt", "w", encoding="utf-8") as f:
        f.write(out[:2000])
    print(f"Compile output saved")
if err:
    with open("D:\\Desktop\\网安程设\\Amaranth_Project\\Stage07\\compile_err.txt", "w", encoding="utf-8") as f:
        f.write(err[:2000])
    print(f"Compile errors saved")

if ec != 0:
    print("COMPILE FAILED")
else:
    # Download binary
    print("Downloading...")
    sftp.get(VM_TEMP + r"\srvinit_phantom.exe", STAGER_EXE)
    sz = os.path.getsize(STAGER_EXE)
    print(f"Downloaded {sz} bytes -> {STAGER_EXE}")

sftp.close()
ssh.close()