Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCmd = &cobra.Command{ Use: "add", Short: "Add items to scope", Long: `Add items to scope unless it has been excluded via scopious exclude. For example: cat customer-supplied.txt | scopious add scopious add -i internal 10.0.0.0/22 `, Run: func(cmd *cobra.Command, args []string) { org, _ := cmd.Flags().GetString("org") if len(args) > 0 { sulfur.Add(org, args...) } else { scanner := bufio.NewScanner(os.Stdin) for scanner.Scan() { scopeLine := scanner.Text() sulfur.Add(org, scopeLine) } if scanner.Err() != nil { log.Printf("STDIN scanner encountered an error: %s", scanner.Err()) } } }, }
AddCmd represents the add command
View Source
var RootCmd = &cobra.Command{ Use: "acid", Short: "get data into Sulfur", Long: ``, PersistentPreRun: func(cmd *cobra.Command, args []string) { sulfurAPIClient = sulfur.New(viper.GetString("api-endpoint"), viper.GetString("api-user"), viper.GetString("api-pass")) }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Source Files
¶
- acid.go
- add.go
- dns.go
- dnsImport.go
- dnsList.go
- domains.go
- domainsImport.go
- domainsList.go
- externalRefsCmd.go
- externalRefsImport.go
- externalRefsList.go
- importNmap.go
- org.go
- orgBadCerts.go
- orgCerts.go
- orgCertsImport.go
- orgIPs.go
- orgIPsImport.go
- orgList.go
- orgPorts.go
- orgRootDomains.go
- orgRootDomainsImport.go
- orgRootDomainsList.go
- orgSubdomainTakeovers.go
- scope.go
- scopeDomains.go
- scopeList.go
Click to show internal directories.
Click to hide internal directories.