From c3bd6ec280a83cba69c3fab54b6082d18a696ee0 Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Tue, 13 Feb 2024 13:33:31 +0100 Subject: [PATCH] improved logging --- pkg/fuzzer/fuzzer.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pkg/fuzzer/fuzzer.go b/pkg/fuzzer/fuzzer.go index 8b8e0e1..bc48a90 100644 --- a/pkg/fuzzer/fuzzer.go +++ b/pkg/fuzzer/fuzzer.go @@ -81,19 +81,15 @@ func Dirsearch(Mu *sync.Mutex, app *config.AppConfig, domain, path string, progr switch { // 2xx case resp.StatusCode >= 200 && resp.StatusCode < 300: - //g.Printf("[%s] [%d] %s\n", now, result.status, result.url) app.ZeroLog.Info().Msg(g.Sprintf("%s => %s", urjoin, resp.Status)) // 3xx case resp.StatusCode >= 300 && resp.StatusCode < 400: - //b.Printf("[%s] [%d] %s -> %s\n", now, result.status, result.url, result.location) app.ZeroLog.Info().Msg(b.Sprintf("%s => %s", urjoin, resp.Status)) // 4xx case resp.StatusCode >= 400 && resp.StatusCode < 500 && resp.StatusCode != 404: - //y.Printf("[%s] [%d] %s\n", now, result.status, result.url) app.ZeroLog.Info().Msg(y.Sprintf("%s => %s", urjoin, resp.Status)) // 5xx case resp.StatusCode >= 500 && resp.StatusCode < 600: - //r.Printf("[%s] [%d] %s\n", now, result.status, result.url) app.ZeroLog.Info().Msg(r.Sprintf("%s => %s", urjoin, resp.Status)) }