From f6e0a2879350d1354f3bed941a884fb98a4c8cc5 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Mon, 26 Apr 2021 15:34:37 +0200 Subject: [PATCH] fix --- gobustervhost/gobustervhost.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobustervhost/gobustervhost.go b/gobustervhost/gobustervhost.go index 7ce51473..67939160 100644 --- a/gobustervhost/gobustervhost.go +++ b/gobustervhost/gobustervhost.go @@ -121,9 +121,9 @@ func (v *GobusterVhost) Run(ctx context.Context, word string, resChannel chan<- // subdomain must not match default vhost and non existent vhost // or verbose mode is enabled found := !bytes.Equal(body, v.baseline1) && !bytes.Equal(body, v.baseline2) - if found || !helper.SliceContains(v.options.ExcludeLength, int(size)) || v.globalopts.Verbose { + if found || v.globalopts.Verbose { resultStatus := false - if found || !helper.SliceContains(v.options.ExcludeLength, int(size)) { + if found && !helper.SliceContains(v.options.ExcludeLength, int(size)) { resultStatus = true } resChannel <- Result{