Expand description
Sui is a library for embedding and extracting auxillary data from binary files.
§Examples
Embedding data in a Mach-O binary:
use libsui::Macho;
use std::fs::File;
let data = b"Hello, world!";
let exe = std::fs::read("tests/exec_mach64")?;
let mut out = File::create("tests/out")?;
Macho::from(exe)?
.write_section("__SECTION", data.to_vec())?
.build(&mut out)?;
Modules§
- apple_
codesign - utils
- Utilities for detecting binary formats
Structs§
- Elf
- Macho
- Portable
Executable - A portable executable (PE)