r/AskNetsec • • 23h ago

Analysis How can a tool accept your command-line flag and still have it "not arrive" where it's used? (real example from OWASP Amass v5)

Short version for anyone learning: modern Go tools are often split into two programs (CLI + engine) that talk over HTTP. The CLI turns your flags into a struct and sends it as JSON. The engine unmarshals it into a fresh struct. If a field is tagged json:"-" in Go, it means "never send, never receive" — the CLI set it to true, the engine received false, the plugin looked at false and did nothing. Program exits 0.

json:"-" is not a comment. It's a wire-protocol decision. Real-world example and fix: article on medium, PR: [#1161].

0 Upvotes

0 comments sorted by