From 363df835222a3698d07e38c67252d91e0d136def Mon Sep 17 00:00:00 2001 From: Kasra Motamedi Date: Wed, 15 Jun 2022 11:54:22 +0430 Subject: [PATCH] fixing index number --- loot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/loot.go b/loot.go index 012de7f..0515967 100644 --- a/loot.go +++ b/loot.go @@ -20,8 +20,8 @@ func findSecrets(origPath, secPath string, content *[]byte) { if len(x) > 0 { for _, y := range x { // fmt.Print("\n") - // log.Printf("Secrets found -> Type: %s | Secret: %s", typerex, string(y[1])) - writer.Write([]string{typerex + " Exposed", origPath, secPath, string(y[1])}) + // log.Printf("Secrets found -> Type: %s | Secret: %s", typerex, string(y[0])) + writer.Write([]string{typerex + " Exposed", origPath, secPath, string(y[0])}) } } }