From 18b1529871011650b348d52e3a53fcd15771cfb6 Mon Sep 17 00:00:00 2001 From: Delecroix Gustave <114912684+57ave@users.noreply.github.com> Date: Fri, 31 May 2024 17:04:13 +0200 Subject: [PATCH 01/35] chore: delete the template explanation --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index 5845db1..2804b5a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ -> If you see this section, you've just created a repository using [PoC Innovation's Open-Source project template](https://github.com/PoCInnovation/open-source-project-template). Check the [getting started guide](./.github/getting-started.md). - # Brut Forcer Next-Gen Brut Forcer next generation written in go From 4f7ca8af0bb02220d7ddf81f723efa7cb6d81049 Mon Sep 17 00:00:00 2001 From: Lou Onezime Date: Mon, 24 Jun 2024 17:24:40 +0200 Subject: [PATCH 02/35] feat(match): test parse arg to proceed with match option --- src/main.go | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/main.go b/src/main.go index 6ffde47..165cd0b 100644 --- a/src/main.go +++ b/src/main.go @@ -1,9 +1,30 @@ package main import ( + "flag" + "log" "fmt" + // "BruteForce/src/matcher" +) + +var ( + WarningLogger *log.Logger + InfoLogger *log.Logger + ErrorLogger *log.Logger ) func main() { - fmt.Println("Hello World") + matchPtr := flag.String("match", "", "a string") + usagePtr := flag.Bool("help", false, "a bool") + + flag.Parse() + if *usagePtr { + fmt.Println("Usage: use flag match=