17 lines
368 B
Go
17 lines
368 B
Go
package main
|
|
|
|
import "github.com/blacktop/go-macho/pkg/trie"
|
|
import "os"
|
|
import "bytes"
|
|
import "fmt"
|
|
|
|
func main() {
|
|
// buffer, _ := os.ReadFile("./dyld_export_trie.bin")
|
|
buffer, _ := os.ReadFile("./libc_export_trie.bin")
|
|
r := bytes.NewReader(buffer)
|
|
nodes, _ := trie.ParseTrieExports(r, 0x7ff80715c000)
|
|
for _, node := range nodes {
|
|
fmt.Println(node)
|
|
}
|
|
}
|