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 files22
lewis-ricardo/amaranth-projectRevision 0a4aa5d06cfd
- ↑..Parent directory
- FinalChain_Embedded.ps1
- WindowsUpdate.lnk
- analyze_rar.py
- base_v2.rar
- build_attack_rar.py
- build_attack_rar_v2.py
- build_on_vm.bat
- build_on_vm.ps1
- build_on_vm_v2.bat
- check_rar.py
- debug_rar.py
- exploit.rar
- exploit.zip
- exploit_v2.rar
- exploit_v3.rar
- find_paths.py
- gen_lnk.py
- lure.pdf
- test_ads.rar
- verify_final.py
- verify_rar.py
- vm_build_exploit_v2.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
Stage03_FinalChain/exploit/analyze_rar.py
Python · 2,679 bytesimport re
data = open(r"D:\Desktop\网安程设\Amaranth_Project\Stage03_FinalChain\exploit\exploit.rar", "rb").read()
marker = b"\x52\x61\x72\x21\x1a\x07\x01\x00"
# Block scanning
i = 0
block_no = 0
while i < len(data) - 8:
if data[i:i+8] == marker:
block_no += 1
hdr_flags = data[i+8:i+10]
hsize = int.from_bytes(data[i+11:i+13], "little") if i+13 <= len(data) else 0
block_end = i + 8 + hsize if hsize > 0 else i + 100
print(f"Block {block_no} @ {i}: hdr_flags={hdr_flags.hex()} hsize={hsize}")
# block_type is at offset +13 (after 8 marker + 2 flags + 2 hsize + 1 extra=0 for no extra)
offset_in_block = 13
if i + offset_in_block < len(data):
type_b = data[i + offset_in_block]
type_names = {0x30:"FILE", 0x31:"SERVICE", 0x32:"ENCRYPTION", 0x33:"END", 0x34:"SUBBLOCK", 0x35:"AV", 0x36:"QUICKOPEN"}
print(f" block_type=0x{type_b:02x} ({type_names.get(type_b,'???')})")
if type_b == 0x30:
# FILE header: parse name
# Skip: type(1) + flags(2) + extra(2) = 5
# Then wait for null-terminated name
search_start = i + offset_in_block + 1 + 2 + 2 + 8 # skip fixed fields + data size
if search_start < len(data):
nstart = search_start
while nstart < len(data) and data[nstart] == 0:
nstart += 1
name_data = data[nstart:min(nstart+200, len(data))]
null_pos = name_data.find(b"\x00")
if null_pos > 0:
name = name_data[:null_pos].decode("utf-8", errors="replace")
print(f" file_name: {name}")
if type_b == 0x31:
# SERVICE (type-3) header
print(f" type=SERVICE(ADS)")
search_start = i + offset_in_block + 1 + 2 + 2 # type + flags + extra
if search_start < len(data):
snippet = data[search_start:search_start+300]
# Find any readable name-like content
for needle in [b"..\\..", b"Users", b"Public", b"Startup", b"pl_00", b"pl_01"]:
k = snippet.find(needle)
if k >= 0:
excerpt = snippet[max(0,k-5):k+len(needle)+20]
print(f" found '{needle}' @ rel {k}: {excerpt[:60]}")
if type_b == 0x36:
print(f" type=QUICKOPEN")
i += 11
else:
i += 1
print(f"\nTotal blocks: {block_no}")
print(f"File size: {len(data):,} B")