Merge pull request #6 from hakbyte/main

Add support to `go install` command
main
Muhammad Daffa 2022-06-05 10:51:16 +07:00 committed by GitHub
commit 5e1c764dcc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 10 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
# Compiled binaries
*.exe
Git-Secret

View File

@ -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 📷
@ -16,7 +17,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

4
go.mod
View File

@ -1,5 +1,3 @@
module github.com/daffainfo/Git-Secret
go 1.16
replace github.com/daffainfo/Git-Secret => /Git-Secret
go 1.18

13
main.go
View File

@ -59,12 +59,12 @@ type Commit struct {
func show_banner() {
fmt.Println(Blue(`
____ _ ___ ____ ____ ____ ____ ____ ___
| __ | | __ [__ |___ | |__/ |___ |
|__] | | ___] |___ |___ | \ |___ |
____ _ ___ ____ ____ ____ ____ ____ ___
| __ | | __ [__ |___ | |__/ |___ |
|__] | | ___] |___ |___ | \ |___ |
Author: Muhammad Daffa
Version: 1.0
Version: v1.0.2
`))
}
@ -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)