c47bec5f76
Remade all commands for the pool.
30 lines
536 B
Go
30 lines
536 B
Go
package shodan
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"git.tcp.direct/perp/shogo/internal/utils"
|
|
)
|
|
|
|
// Return domain information
|
|
func Domain(domain string) {
|
|
// Get results
|
|
results, err := utils.Client.GetDomain(context.Background(), domain)
|
|
if err != nil {
|
|
fmt.Printf("%s: %s\n", utils.Red("Error"), err.Error())
|
|
return
|
|
}
|
|
|
|
// Print results
|
|
utils.Title.Printf("Domain: %s", domain)
|
|
|
|
fmt.Printf("\n\n")
|
|
|
|
for index := range results.Data {
|
|
fmt.Println(results.Data[index])
|
|
}
|
|
}
|
|
|
|
// Todo: Find domain records, add padding, add to pool
|