@@ -3,16 +3,6 @@ package main
33import (
44 "flag"
55 "fmt"
6- "math"
7- "net/http"
8- "os"
9- "strings"
10- "sync"
11- "syscall"
12- "time"
13-
14- "os/signal"
15-
166 "github.com/CyberRoute/bruter/pkg/config"
177 "github.com/CyberRoute/bruter/pkg/fuzzer"
188 "github.com/CyberRoute/bruter/pkg/handlers"
@@ -23,6 +13,14 @@ import (
2313 "github.com/fatih/color"
2414 "github.com/rs/zerolog"
2515 "github.com/rs/zerolog/log"
16+ "math"
17+ "net/http"
18+ "os"
19+ "os/signal"
20+ "strings"
21+ "sync"
22+ "syscall"
23+ "time"
2624)
2725
2826type workerContext struct {
4240 Domain = flag .String ("domain" , "" , "domain to scan" )
4341 Apikey = flag .String ("shodan" , "" , "shodan API key" )
4442 Address = flag .String ("address" , "127.0.0.1" , "IP address to bind the web UI server to." )
43+ Extension = flag .String ("extension" , "js" , "File extension." )
4544 Dictionary = flag .String ("dictionary" , "db/apache-list" , "File to use for enumeration." )
4645 Verbose = flag .Bool ("verbose" , false , "Verbosity" )
4746)
@@ -137,7 +136,7 @@ func createQueue(mu *sync.Mutex, domain string, list []string, shift, total int,
137136
138137 for index , payload := range list {
139138 modifiedIndex := index + shift
140- payload = strings .ReplaceAll (payload , "%EXT%" , "js" )
139+ payload = strings .ReplaceAll (payload , "%EXT%" , * Extension )
141140 progress := 100 * float32 (modifiedIndex ) / float32 (total )
142141 progress = float32 (math .Round (float64 (progress )))
143142 queue .Add (async .Job (& workerContext {
0 commit comments