go-embed-extractor is a lightweight Go tool for extracting files embedded in Go binaries using the embed package.
It provides a simple way for developers and reverse engineers to analyze and recover embedded static resources, such as HTML, CSS, images, or other files.
- Extract embedded files from Go binaries.
- Supports multiple architecture files (MachO, ELF, PE).
- Option to save extracted files to a specified directory.
- Use some decompilation tools to obtain the
embed.FSstructure virtual address.
@leonjza shared a method to locate FS structure pointers using radare, and then extract embedded files with go-embed-extractor.
- Extract embedded files from a Go binary:
gee -target -target ./tests/embedemo_macho -vaddr 0x00000001000EAA00