From e0d29f9d70c660038b89e91226b4f280dcc834f8 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Mon, 26 Apr 2021 15:36:07 +0200 Subject: [PATCH] another try --- gobustervhost/gobustervhost.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gobustervhost/gobustervhost.go b/gobustervhost/gobustervhost.go index 67939160..73bd8d5e 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 || v.globalopts.Verbose { + if (found && !helper.SliceContains(v.options.ExcludeLength, int(size))) || v.globalopts.Verbose { resultStatus := false - if found && !helper.SliceContains(v.options.ExcludeLength, int(size)) { + if found { resultStatus = true } resChannel <- Result{