Tired of pulling goblin for throwaway lab tools. ~400 lines: DOS stub, COFF, optional header, section table, export dir.
Not a replacement for a real parser. Useful when you want something you can read in one sitting. MIT, no samples.
let magic = u16::from_le_bytes(b[0..2].try_into().unwrap());
assert_eq!(magic, 0x5A4D);Refs: ELF
Lab / educational. Public binaries and patched classes only. Isolated VM.