16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 08:09:19 +02:00
This commit is contained in:
maj00r
2026-06-14 04:18:23 +02:00
parent 876a4c7c18
commit ada6553917
22 changed files with 518 additions and 729 deletions

View File

@@ -43,7 +43,7 @@ def read_cstring(f, rva: int) -> str:
def parse(path: Path) -> None:
with path.open("rb") as f:
sig, ver, num_streams, dir_rva, checksum, ts, flags = struct.unpack(
"<IIIIIQ", f.read(32)
"<IIIIIIQ", f.read(32)
)
print(f"File: {path}")
print(f"Size: {path.stat().st_size:,} bytes")