summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/osint.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmd/osint.go b/cmd/osint.go
index 4f459ad..13c3c6e 100644
--- a/cmd/osint.go
+++ b/cmd/osint.go
@@ -1,11 +1,11 @@
package cmd
import (
+ "encoding/json"
+ "fmt"
"git.db.org.ai/dborg/internal/client"
"git.db.org.ai/dborg/internal/config"
"git.db.org.ai/dborg/internal/models"
- "encoding/json"
- "fmt"
"github.com/spf13/cobra"
)
@@ -42,7 +42,8 @@ func init() {
osintUsernameCmd.Flags().IntP("max_tasks", "m", 50, "Maximum concurrent tasks")
osintBSSIDCmd.Flags().BoolP("all", "a", false, "Show all related results instead of exact match only")
- osintBSSIDCmd.Flags().BoolP("map", "m", false, "Include Google Maps URL for the location")
+ osintBSSIDCmd.Flags().BoolP("google", "g", false, "Include Google Maps URL for the location")
+ osintBSSIDCmd.Flags().BoolP("osm", "o", false, "Include OpenStreetMap URL for the location")
}
func runOsintUsernameCheck(cmd *cobra.Command, args []string) error {
@@ -86,7 +87,8 @@ func runOsintBSSIDLookup(cmd *cobra.Command, args []string) error {
BSSID: args[0],
}
params.All, _ = cmd.Flags().GetBool("all")
- params.Map, _ = cmd.Flags().GetBool("map")
+ params.Google, _ = cmd.Flags().GetBool("google")
+ params.OSM, _ = cmd.Flags().GetBool("osm")
response, err := c.LookupBSSID(params)
if err != nil {