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_pre_selfhollow.py

Python · 1,525 bytes
import paramiko, time

logf = r'D:\Desktop\网安程设\Amaranth_Project\Stage06\vm_pre_selfhollow.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)
    with open(logf, 'w', encoding='utf-8') as f:
        cmds = [
            'netstat -ano | findstr 4782',
            'tasklist /v | findstr "5556"',
            'tasklist /v | findstr "6328"',
            'wmic process where "processid=\'5556\'" get commandline',
            'wmic process where "processid=\'6328\'" get commandline',
            'if exist C:\\Windows\\Temp\\mscorsvc.ps1 (type C:\\Windows\\Temp\\mscorsvc.ps1) else (echo PS1 NOT FOUND)',
            'if exist C:\\Windows\\Temp\\dinvoke.exe (echo dinvoke EXISTS) else (echo dinvoke GONE)',
            'echo %date% %time%',
        ]
        for cmd in cmds:
            f.write(f'>>> {cmd}\n')
            stdin, stdout, stderr = ssh.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[:3000]}\n')
            if err: f.write(f'ERR: {err[:200]}\n')
            f.write('---\n')
            time.sleep(0.5)
    ssh.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}')