MCPcopy Create free account
hub / github.com/SamNet-dev/snix / newScanRootCmd

Function newScanRootCmd

cmd/snix/scan.go:21–31  ·  view source on GitHub ↗
(g *globalFlags)

Source from the content-addressed store, hash-verified

19)
20
21func 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
33func newScanSNICmd(g *globalFlags) *cobra.Command {
34 var (

Callers 1

newRootCmdFunction · 0.85

Calls 3

newScanSNICmdFunction · 0.85
newScanIPCmdFunction · 0.85
newScanAllCmdFunction · 0.85

Tested by

no test coverage detected