From 334eec21306bdbe3947a466d651dc6d300836a4e Mon Sep 17 00:00:00 2001 From: perp Date: Sat, 12 Aug 2023 00:25:21 +0100 Subject: [PATCH] :sparkles: Added commands Added init command and search command. --- internal/shodan/pool.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/internal/shodan/pool.go b/internal/shodan/pool.go index 0d5f8d8..06532d6 100644 --- a/internal/shodan/pool.go +++ b/internal/shodan/pool.go @@ -59,7 +59,6 @@ func Pool(function string, flags *Flags, alert *alert.Alert, scan *scan.Scan) { // Submit job pool.Submit(func() { switch function { - // Alert commands case "alert clear": go shodan.Alert.Clear() case "alert create": @@ -71,7 +70,6 @@ func Pool(function string, flags *Flags, alert *alert.Alert, scan *scan.Scan) { case "alert list": go shodan.Alert.List() - // Scan commands case "scan internet": go shodan.Scan.Internet() case "scan protocols": @@ -79,19 +77,18 @@ func Pool(function string, flags *Flags, alert *alert.Alert, scan *scan.Scan) { case "scan submit": go shodan.Scan.Submit() - // General commands case "count": go shodan.Count() - // case "domain": - // go shodan.Domain() case "host": go shodan.Host() case "info": go shodan.Info() + case "init": + go shodan.Init() case "myip": go shodan.MyIp() - // case "search": - // go shodan.Search() + case "search": + go shodan.Search() case "stats": go shodan.Stats() }