-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bffa283
Showing
10 changed files
with
815 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <https://unlicense.org> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
BINARY_NAME=giex | ||
|
||
build: | ||
go build -o bin/${BINARY_NAME} main.go | ||
|
||
release: | ||
GOARCH=amd64 GOOS=linux go build -o bin/${BINARY_NAME}-linux main.go | ||
GOOS=linux GOARCH=arm go build -o bin/${BINARY_NAME}-linux-arm main.go | ||
GOOS=linux GOARCH=arm64 go build -o bin/${BINARY_NAME}-linux-arm64 main.go | ||
GOARCH=amd64 GOOS=darwin go build -o bin/${BINARY_NAME}-darwin main.go | ||
GOARCH=amd64 GOOS=windows go build -o bin/${BINARY_NAME}-windows main.go | ||
|
||
clean: | ||
go clean | ||
rm -f bin/${BINARY_NAME} | ||
rm -f bin/${BINARY_NAME}-linux | ||
rm -f bin/${BINARY_NAME}-linux-arm | ||
rm -f bin/${BINARY_NAME}-linux-arm64 | ||
rm -f bin/${BINARY_NAME}-darwin | ||
rm -f bin/${BINARY_NAME}-windows |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Giex | ||
|
||
Perhaps the fastest publicly available tool for identifying websites with publicly available ```.git``` repositories. | ||
|
||
## Usage | ||
|
||
Download the **giex-*** file for your platform in the latest available [release](https://github.com/azate/giex/releases) | ||
|
||
``` | ||
$ ./giex-* -h | ||
Usage: | ||
giex [flags] | ||
Flags: | ||
-h, --help help for giex | ||
-i, --input string Path to the file with domains <one row one domain> (default "domains.txt") | ||
-t, --max-tasks uint Maximum prepared tasks (default 200) | ||
-w, --max-workers uint Maximum workers (default 100) | ||
-o, --output string Path to the folder for saving the git configs (default "/tmp") | ||
-p, --proxy string HTTP proxy | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package cmd | ||
|
||
import ( | ||
"github.com/azate/giex/internal/runner" | ||
"github.com/spf13/cobra" | ||
"github.com/spf13/viper" | ||
"strings" | ||
) | ||
|
||
func NewCmd() *cobra.Command { | ||
viper.AutomaticEnv() | ||
viper.SetEnvPrefix("GIEX") | ||
viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_")) | ||
|
||
cmd := &cobra.Command{ | ||
Use: "giex", | ||
RunE: func(cmd *cobra.Command, args []string) error { | ||
cfg := runner.LoadConfig() | ||
if err := cfg.Check(); err != nil { | ||
return err | ||
} | ||
|
||
return runner.New(cfg).Go() | ||
}, | ||
} | ||
|
||
cmd.Flags().StringP("input", "i", "domains.txt", "Path to the file with domains <one row one domain>") | ||
cmd.Flags().StringP("output", "o", "/tmp", "Path to the folder for saving the git configs") | ||
cmd.Flags().UintP("max-workers", "w", 100, "Maximum workers") | ||
cmd.Flags().UintP("max-tasks", "t", 200, "Maximum prepared tasks") | ||
cmd.Flags().StringP("proxy", "p", "", "HTTP proxy") | ||
|
||
if err := viper.BindPFlags(cmd.Flags()); err != nil { | ||
panic(err) | ||
} | ||
|
||
return cmd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module github.com/azate/giex | ||
|
||
go 1.17 | ||
|
||
require ( | ||
github.com/alitto/pond v1.7.1 | ||
github.com/spf13/cobra v1.4.0 | ||
github.com/spf13/viper v1.10.1 | ||
github.com/valyala/fasthttp v1.34.0 | ||
) | ||
|
||
require ( | ||
github.com/andybalholm/brotli v1.0.4 // indirect | ||
github.com/fsnotify/fsnotify v1.5.1 // indirect | ||
github.com/hashicorp/hcl v1.0.0 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/klauspost/compress v1.15.1 // indirect | ||
github.com/magiconair/properties v1.8.6 // indirect | ||
github.com/mitchellh/mapstructure v1.4.3 // indirect | ||
github.com/pelletier/go-toml v1.9.4 // indirect | ||
github.com/spf13/afero v1.8.2 // indirect | ||
github.com/spf13/cast v1.4.1 // indirect | ||
github.com/spf13/jwalterweatherman v1.1.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/subosito/gotenv v1.2.0 // indirect | ||
github.com/valyala/bytebufferpool v1.0.0 // indirect | ||
golang.org/x/net v0.0.0-20220225172249-27dd8689420f // indirect | ||
golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5 // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
gopkg.in/ini.v1 v1.66.4 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) |
Oops, something went wrong.