From a4758355f536afb8cc5f357d4e7a23f2a59c16e2 Mon Sep 17 00:00:00 2001 From: edoardottt Date: Mon, 24 May 2021 22:28:03 +0200 Subject: [PATCH] update --- input/check.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/input/check.go b/input/check.go index 89eeb6d..9d7d051 100644 --- a/input/check.go +++ b/input/check.go @@ -68,4 +68,20 @@ func CheckFlags(flags Input) { os.Exit(1) } } + + if flags.EndpointsFile != "" { + if !flags.Endpoints { + fmt.Println("You can't define an endpoint file and not the endpoint search.") + fmt.Println("If you want to scan for custom parameters enter both -e and -ef {filename}.") + os.Exit(1) + } + } + + if flags.SecretsFile != "" { + if !flags.Secrets { + fmt.Println("You can't define a secrets file and not the secrets search.") + fmt.Println("If you want to scan for custom regexes enter both -s and -sf {filename}.") + os.Exit(1) + } + } }