Skip to content

Instantly share code, notes, and snippets.

@kkdai
Created July 29, 2021 06:58
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save kkdai/7a07f3e7475b8d26794ccb6267b964a0 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"os"
"github.com/blacktop/go-macho"
)
func main() {
f, err := os.Open("/Users/USER/Binary")
if err != nil {
panic(err)
}
m, err := macho.NewFile(f)
if err != nil {
panic(err)
}
fmt.Println(m.FileTOC.String())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment