(g *globalFlags)
| 19 | ) |
| 20 | |
| 21 | func newScanRootCmd(g *globalFlags) *cobra.Command { |
| 22 | cmd := &cobra.Command{ |
| 23 | Use: "scan", |
| 24 | Short: "Discover working SNIs and CDN IPs on this network", |
| 25 | Long: "snix scan helps answer the first question every user of SNI-spoofing asks: " + |
| 26 | "\"which SNIs work for my ISP?\" Use `snix scan sni` to probe SNI candidates, " + |
| 27 | "`snix scan ip` to probe CDN IPs for reachability, or `snix scan all` for both.", |
| 28 | } |
| 29 | cmd.AddCommand(newScanSNICmd(g), newScanIPCmd(g), newScanAllCmd(g)) |
| 30 | return cmd |
| 31 | } |
| 32 | |
| 33 | func newScanSNICmd(g *globalFlags) *cobra.Command { |
| 34 | var ( |
no test coverage detected