From 4ad78c605b6f7e3e0cb8cffdea8ce323f4b461c2 Mon Sep 17 00:00:00 2001 From: nohehf Date: Wed, 17 May 2023 11:47:24 +0200 Subject: [PATCH] fix: SIGSEGV --- pkg/suggestion/field_suggestion.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/suggestion/field_suggestion.go b/pkg/suggestion/field_suggestion.go index fd9d040..d28f3e8 100644 --- a/pkg/suggestion/field_suggestion.go +++ b/pkg/suggestion/field_suggestion.go @@ -56,11 +56,11 @@ func FingerprintFieldSuggestion(url string, client http.Client) bool { for _, word := range *utils.Wordlist { body := makePayload(word) res, err := client.Post(url, body) - log.Debugf("Response from %v: %v", url, res.StatusCode) if err != nil { log.Debugf("Error from %v: %v", url, err) return false } + log.Debugf("Response from %v: %v", url, res.StatusCode) if IsSuggestionResponse(res) { return true }