From 35af1c6249a5990139ca5224044351d2501c4e47 Mon Sep 17 00:00:00 2001 From: lc Date: Sun, 14 Nov 2021 16:42:20 -0600 Subject: [PATCH] fix(gau): i am stupid --- cmd/gau/main.go | 6 +++--- pkg/providers/providers.go | 2 +- runner/flags/flags.go | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cmd/gau/main.go b/cmd/gau/main.go index 8a6de09..35ab15f 100644 --- a/cmd/gau/main.go +++ b/cmd/gau/main.go @@ -32,7 +32,7 @@ func main() { gau := &runner.Runner{} - if err = gau/v2.Init(config, pMap); err != nil { + if err = gau.Init(config, pMap); err != nil { log.Fatal(err) } @@ -69,7 +69,7 @@ func main() { domains := make(chan string) - gau/v2.Start(domains, results) + gau.Start(domains, results) if len(flags.Args()) > 0 { @@ -90,7 +90,7 @@ func main() { close(domains) // wait for providers to fetch URLS - gau/v2.Wait() + gau.Wait() // close results channel close(results) diff --git a/pkg/providers/providers.go b/pkg/providers/providers.go index ca8a8cf..b314ae8 100644 --- a/pkg/providers/providers.go +++ b/pkg/providers/providers.go @@ -5,7 +5,7 @@ import ( "github.com/valyala/fasthttp" ) -const Version = `2.0.1` +const Version = `2.0.4` // Provider is a generic interface for all archive fetchers type Provider interface { diff --git a/runner/flags/flags.go b/runner/flags/flags.go index 5ec87a9..8068a1b 100644 --- a/runner/flags/flags.go +++ b/runner/flags/flags.go @@ -96,7 +96,7 @@ func New() *Options { pflag.Uint("retries", 0, "retries for HTTP client") pflag.String("proxy", "", "http proxy to use") pflag.StringSlice("blacklist", []string{}, "list of extensions to skip") - pflag.StringSlice("providers", []string{}, "list of providers to use (gau/v2,commoncrawl,otx,urlscan)") + pflag.StringSlice("providers", []string{}, "list of providers to use (wayback,commoncrawl,otx,urlscan)") pflag.Bool("subs", false, "include subdomains of target domain") pflag.Bool("verbose", false, "show verbose output") pflag.Bool("json", false, "output as json") @@ -108,7 +108,7 @@ func New() *Options { pflag.StringSlice("ft", []string{}, "list of mime-types to filter") pflag.String("from", "", "fetch urls from date (format: YYYYMM)") pflag.String("to", "", "fetch urls to date (format: YYYYMM)") - pflag.Bool("version", false, "show gau/v2 version") + pflag.Bool("version", false, "show gau version") pflag.CommandLine.AddGoFlagSet(flag.CommandLine) pflag.Parse() @@ -130,7 +130,7 @@ func (o *Options) ReadInConfig() (*Config, error) { return o.DefaultConfig(), err } - confFile := filepath.Join(home, ".gau/v2.toml") + confFile := filepath.Join(home, ".gau.toml") return o.ReadConfigFile(confFile) } @@ -184,7 +184,7 @@ func (o *Options) getFlagValues(c *Config) { subs := o.viper.GetBool("subs") if version { - fmt.Printf("gau/v2 version: %s\n", providers.Version) + fmt.Printf("gau version: %s\n", providers.Version) os.Exit(0) }