Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Serhatcck committed Oct 6, 2024
1 parent 5144567 commit 99cd98c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func printUsage(flagSet *flag.FlagSet) {

func main() {

test()
//test()
var h bool
var options hidden_fuzzer.Options

Expand Down
14 changes: 11 additions & 3 deletions pkg/hidden_fuzzer/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,18 @@ func (c *Config) Build(options Options) error {
c.Url = url

//wordlist
wordlist, errr := readFileLines(options.Wordlist)
if errr != nil {
return errr

var wordlist []string
if len(options.WordlistStringArray) > 0 {
wordlist = options.WordlistStringArray
} else {
var errr error
wordlist, errr = readFileLines(options.Wordlist)
if errr != nil {
return errr
}
}

//extension
if options.Extensions != "" {
var newWordlist []string
Expand Down
1 change: 1 addition & 0 deletions pkg/hidden_fuzzer/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,5 @@ type Options struct {
ProxyUrl string
XFFHeader bool
XFFValue string
WordlistStringArray []string
}

0 comments on commit 99cd98c

Please sign in to comment.