From 09698b7afc8b169ece5b76af62e67f9a1341fcdd Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sat, 4 Jun 2022 19:33:43 +0200 Subject: [PATCH 1/7] Delete replace directive --- go.mod | 2 -- 1 file changed, 2 deletions(-) diff --git a/go.mod b/go.mod index 92b1505..2140f5f 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,3 @@ module github.com/daffainfo/Git-Secret go 1.16 - -replace github.com/daffainfo/Git-Secret => /Git-Secret \ No newline at end of file From f96ec783cb2db24861b93fc2525ebe950ca1c742 Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sat, 4 Jun 2022 19:34:29 +0200 Subject: [PATCH 2/7] Bump Go version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 2140f5f..ba1aa76 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/daffainfo/Git-Secret -go 1.16 +go 1.18 From 5942455131c8537b68bff6b37b49b79bf8cb9914 Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sat, 4 Jun 2022 19:35:44 +0200 Subject: [PATCH 3/7] Bump Git-Secret version --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 4e6ddc2..90ff5fc 100644 --- a/main.go +++ b/main.go @@ -59,12 +59,12 @@ type Commit struct { func show_banner() { fmt.Println(Blue(` -____ _ ___ ____ ____ ____ ____ ____ ___ -| __ | | __ [__ |___ | |__/ |___ | -|__] | | ___] |___ |___ | \ |___ | +____ _ ___ ____ ____ ____ ____ ____ ___ +| __ | | __ [__ |___ | |__/ |___ | +|__] | | ___] |___ |___ | \ |___ | Author: Muhammad Daffa -Version: 1.0 +Version: v1.0.2 `)) } From b53109a0b78e4eb425d38cbb918bed067883c645 Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sat, 4 Jun 2022 19:38:49 +0200 Subject: [PATCH 4/7] Update build and installation instructions --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 331eaca..cd41d9f 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ![](https://img.shields.io/github/stars/daffainfo/Git-Secret) ![](https://img.shields.io/github/last-commit/daffainfo/Git-Secret) -## Update V1.0.1 🚀 +## Update V1.0.1 🚀 - Removing some checkers - Adding example file contains github dorks @@ -16,7 +16,14 @@ ## How to Install -```go get github.com/daffainfo/Git-Secret``` +To install the latest version: + +``` +go install github.com/daffainfo/Git-Secret@latest +``` + +Alternatively, you can clone this repo and build the project by running +`go build` inside the cloned repo. ## How to Use From d9f5c517c646f392f417a4c24ec24dc51f05522f Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sat, 4 Jun 2022 19:39:47 +0200 Subject: [PATCH 5/7] Update release notes --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd41d9f..2140a07 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,10 @@ ![](https://img.shields.io/github/stars/daffainfo/Git-Secret) ![](https://img.shields.io/github/last-commit/daffainfo/Git-Secret) -## Update V1.0.1 🚀 +## Update V1.0.2 🚀 - Removing some checkers - Adding example file contains github dorks +- Add support to `go install` command ([issue #5](https://github.com/daffainfo/Git-Secret/issues/5)) ## Screenshoot 📷 From a95721bad21aabaf86ffb2c8143beb913a5a01d1 Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sat, 4 Jun 2022 20:24:19 +0200 Subject: [PATCH 6/7] Add `.gitignore` --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d493b46 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Compiled binaries +*.exe +Git-Secret \ No newline at end of file From 5de252e9a6de7974877c5a1090b1dc66b2483787 Mon Sep 17 00:00:00 2001 From: hakbyte Date: Sun, 5 Jun 2022 05:27:19 +0200 Subject: [PATCH 7/7] Check for empty URL before proceeding --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 90ff5fc..f2077b7 100644 --- a/main.go +++ b/main.go @@ -258,7 +258,10 @@ func main() { show_banner() fmt.Println(Blue("Input URL")) - fmt.Scanln(&url) + if _, err := fmt.Scanln(&url); err != nil { + fmt.Print(Red("No URL provided")) + os.Exit(1) + } fmt.Println(Blue("\nInput path file contain dorks (Leave it blank if you dont have it)")) fmt.Scanln(&dorks)