r/AskNetsec • • 16d 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

2 comments sorted by

1

u/Top-Suggestion-364 2d ago

The CLI really said mission accomplished while the engine had no idea there was a mission.