⚰️ Broken API
API endpoint is broken for wrapper.
This commit is contained in:
parent
92fcb205a3
commit
fd09769dd2
@ -1,34 +0,0 @@
|
||||
package commands
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"git.tcp.direct/perp/shogo/internal/shodan"
|
||||
"git.tcp.direct/perp/shogo/internal/utils"
|
||||
)
|
||||
|
||||
// Domain command
|
||||
var domainCmd = &cobra.Command{
|
||||
Use: "domain",
|
||||
Short: "Return domain information",
|
||||
Example: "domain <domain>\ndomain <domain-1> <domain-2>...",
|
||||
Args: cobra.MinimumNArgs(1),
|
||||
Run: func(_ *cobra.Command, args []string) {
|
||||
utils.CheckColor()
|
||||
|
||||
// Loop through args
|
||||
if len(args) > 1 {
|
||||
for index := range args {
|
||||
shodan.Domain(args[index])
|
||||
// Print newline per argument
|
||||
if index != len(args)-1 {
|
||||
fmt.Println("")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
shodan.Domain(args[0])
|
||||
}
|
||||
},
|
||||
}
|
Loading…
Reference in New Issue
Block a user