atredispartners / flamingo

Flamingo captures credentials sprayed across the network by various IT and security products.
BSD 2-Clause "Simplified" License
451 stars 50 forks source link

Broken CLI flag found #12

Closed subfission closed 3 years ago

subfission commented 3 years ago

Hello there! I think I found a bug in the latest release (v0.0.16).

Erroneous block:

https://github.com/atredispartners/flamingo/blob/9dbf2fe06dd9014e232faca894052b27d059773a/cmd/root.go#L66

Flags listed with ./flamingo -h:

Flags:
      ----dont-ignore           Treat individual listener failures as fatal
      --dns-ports string        The list of UDP ports to listen on for DNS (default "53,5353")
      --dns-resolve-to string   The IP address used to respond to DNS Type A question. If empty, no response will be sent

Usage:

./flamingo ----dont-ignore

Output:

bad flag syntax: ----dont-ignore

Variations of hyphen count seem to have no effect on outcomes.