1
1
Fork 0
mirror of https://github.com/OJ/gobuster.git synced 2024-06-10 21:16:03 +02:00

fix increment error

This commit is contained in:
Christian Mehlmauer 2018-08-29 23:56:22 +02:00
parent d8be724b99
commit 7b411354b1
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591

View File

@ -111,7 +111,6 @@ func (g *Gobuster) ClearProgress() {
// GetRequest issues a GET request to the target and returns
// the status code, length and an error
func (g *Gobuster) GetRequest(url string) (*int, *int64, error) {
g.incrementRequests()
return g.http.makeRequest(url, g.Opts.Cookies)
}
@ -126,6 +125,7 @@ func (g *Gobuster) worker(wordChan <-chan string, wg *sync.WaitGroup) {
if !ok {
return
}
g.incrementRequests()
// Mode-specific processing
res, err := g.plugin.Process(g, word)
if err != nil {