macho/research/scripts/parse_export_trie.go
2023-05-31 16:17:45 +07:00

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)
}
}