Skip to content

Commit

Permalink
just generating wordlist and silent mode added
Browse files Browse the repository at this point in the history
  • Loading branch information
Musa Sana authored and Musa Sana committed Jul 16, 2023
1 parent aa4936f commit cb0a081
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions fuzzuli.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,14 @@ var bar = progressbar.Default(-1, "request count")

func main() {

banner()

options = ParseOptions()

if !options.silent {
timeInfo("starting")
defer timeInfo("ending")
banner()
}

if options.file != "" {
readFromFile()
} else {
Expand Down Expand Up @@ -77,9 +81,6 @@ func main() {
paths = strings.Split(options.paths, "")
}

timeInfo("starting")
defer timeInfo("ending")

wp := workerpool.New(options.worker)

for _, url := range urls {
Expand Down Expand Up @@ -124,7 +125,14 @@ func getAllCombination(domain string) {
}
}

wpx := workerpool.New(16)
if options.just_wordlist {
for _, word := range generate_wordlist {
fmt.Println(domain + "/" + word)
}
os.Exit(0)
}

wpx := workerpool.New(options.worker)

for _, word := range generate_wordlist {
word := word
Expand Down Expand Up @@ -374,6 +382,8 @@ type Options struct {
status_code int
domain_length int
min_content_length int
just_wordlist bool
silent bool
version bool
print bool
help bool
Expand All @@ -389,6 +399,7 @@ func ParseOptions() *Options {
flagSet.StringVar(&options.file, "f", "", "input file containing list of host/domain"),
flagSet.StringVar(&options.paths, "pt", "/", "paths. separate with commas to use multiple paths. e.g. /,/db/,/old/"),
flagSet.BoolVar(&options.print, "p", false, "print urls that is sent request"),
flagSet.BoolVar(&options.silent, "sl", false, "silent mode"),
flagSet.BoolVar(&options.version, "v", false, "print version"),
)

Expand All @@ -399,6 +410,7 @@ func ParseOptions() *Options {
flagSet.StringVar(&options.extension, "ex", "", "file extension. default (rar, zip, tar.gz, tar, gz, jar, 7z, bz2, sql, backup, war)"),
flagSet.StringVar(&options.replace, "rp", "", "replace specified char"),
flagSet.StringVar(&options.remove, "rm", "", "remove specified char"),
flagSet.BoolVar(&options.just_wordlist, "jw", false, "just generate wordlist do not http request"),
)

createGroup(flagSet, "domain options", "DOMAIN OPTIONS",
Expand Down

0 comments on commit cb0a081

Please sign in to comment.