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

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

Stage06/ssh_wait_task.py

Python · 1,531 bytes
import paramiko, time

logf = r'D:\Desktop\网安程设\Amaranth_Project\Stage06\vm_verify_persisted.txt'

ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())

try:
    ssh.connect('192.168.30.136', username='lewis', password='lewis123', timeout=15, allow_agent=False, look_for_keys=False)
    ssh.close()
except:
    pass

print('Waiting for scheduled task at 10:02...')
time.sleep(300)  # 5 min

ssh2 = paramiko.SSHClient()
ssh2.set_missing_host_key_policy(paramiko.AutoAddPolicy())

try:
    ssh2.connect('192.168.30.136', username='lewis', password='lewis123', timeout=15, allow_agent=False, look_for_keys=False)
    
    with open(logf, 'w', encoding='utf-8') as f:
        cmds = [
            'type C:\\Windows\\Temp\\dinvoke_debug.txt',
            'netstat -an | findstr 4782',
            'tasklist /v | findstr /i "powershell"',
            'echo %date% %time%',
        ]
        
        for cmd in cmds:
            f.write(f'>>> {cmd}\n')
            stdin, stdout, stderr = ssh2.exec_command(cmd, timeout=15)
            out = stdout.read().decode('utf-8', errors='replace').strip()
            err = stderr.read().decode('utf-8', errors='replace').strip()
            if out: f.write(f'{out[:2000]}\n')
            if err: f.write(f'ERR: {err[:200]}\n')
            f.write('---\n')
            time.sleep(0.5)
    
    ssh2.close()
    print('DONE')
except Exception as e:
    with open(logf, 'a', encoding='utf-8') as f:
        f.write(f'Error: {e}\n')
    print(f'Error: {e}')