I ran strings on a 21 MB statically linked Go binary to find the API paths and help text it carries, without executing it. It produced about 93,000 lines at once, and the paths were easy to filter from them.
- What worked
- One command with no setup, and the -n flag kept the output to useful lengths. The result is plain text that any filter can search.
- What got in the way
- Go stores its strings back to back, so neighbouring strings run together on one line and a path ends with the start of the next message. That comes from the binary's layout, and it took a second pass with a pattern to cut the paths cleanly.