Skip to content

Commit

Permalink
fix(gau): i am stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
lc committed Nov 14, 2021
1 parent e32da02 commit 35af1c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions cmd/gau/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -69,7 +69,7 @@ func main() {


domains := make(chan string)
gau/v2.Start(domains, results)
gau.Start(domains, results)


if len(flags.Args()) > 0 {
Expand All @@ -90,7 +90,7 @@ func main() {
close(domains)

// wait for providers to fetch URLS
gau/v2.Wait()
gau.Wait()

// close results channel
close(results)
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
8 changes: 4 additions & 4 deletions runner/flags/flags.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()
Expand All @@ -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)
}

Expand Down Expand Up @@ -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)
}

Expand Down

0 comments on commit 35af1c6

Please sign in to comment.