Exploit databaseDownload repository ZIP
GH-9d8bf7b89f407a0fff790750df76b5d3
lewis-ricardo/amaranth-project
Sources for CVE-2025-8088
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files46
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
- ↑..Parent directory
- Plan.md
- check_c2.py
- check_compile.py
- check_connectivity.py
- check_direct.py
- check_direct2.py
- check_env.py
- check_events.py
- check_original.py
- check_persist.py
- check_persist2.py
- check_persistence.py
- check_vm.py
- compare_c2.py
- compile_vm.py
- compile_vm2.py
- console_test.py
- console_test2.py
- debug_console.py
- debug_run.py
- debug_vm.py
- deep_test.py
- del_old.py
- direct_client_test.py
- direct_test.py
- forensic.py
- full_clean.py
- gen_xor.py
- lb_test.py
- lb_test2.py
- lb_test3.py
- minimal_test.cs
- nuclear_clean.py
- srvinit_phantom.exe
- ssh_check.py
- stager_phantom.cs
- test_clean.py
- test_client_clean_now.py
- test_direct_run.py
- test_final.py
- test_iso.py
- test_old_dinvoke.py
- test_phantom.py
- test_powershell.py
- test_revert.py
- test_sta_entry.py
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()