Skip to content

Commit 9a02e24

Browse files
committed
update readme.md
1 parent 4ed35a3 commit 9a02e24

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# go-embed-extractor
2+
3+
go-embed-extractor is a lightweight Go tool for extracting files embedded in Go binaries using the `embed` package.
4+
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.
5+
6+
## Features
7+
- Extract embedded files from Go binaries.
8+
- Supports multiple architecture files (MachO, ELF, PE).
9+
- Option to save extracted files to a specified directory.
10+
11+
## Basic Usage
12+
13+
1. Use some decompilation tools to obtain the `embed.FS` structure virtual address.
14+
15+
![](https://github.com/user-attachments/assets/ff9f39df-aba8-477e-a135-73dbc932261f)
16+
17+
2. Extract embedded files from a Go binary:
18+
```bash
19+
gee -target ./tests/embedemo_elf -vaddr 0x00000000000F8F60
20+
```
21+
22+
## References
23+
24+
- [Extracting Go Embeds](https://web.archive.org/web/20230606135339/https://0x00sec.org/t/extracting-go-embeds/34885)

0 commit comments

Comments
 (0)