shogo/internal/shodan/scan/protocols.go
perp d3744a9dff Scan commands
Added 3 scan commands (internet, protocols and submit).
2023-08-02 04:58:30 +01:00

26 lines
462 B
Go

package scan
import (
"context"
"fmt"
"git.tcp.direct/perp/shogo/internal/utils"
)
// Return protocols to scan
func Protocols() {
// Get results
results, err := utils.Client.GetProtocols(context.Background())
if err != nil {
fmt.Printf("%s: %s\n", utils.Red("Error"), err.Error())
return
}
// Print results
utils.Title.Println("Protocols")
for key, value := range results {
fmt.Printf("%-36s %s\n", utils.Green(key), utils.Blue(value))
}
}