diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/http.go | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/http.go b/src/http.go index 6164976..12a8a6d 100644 --- a/src/http.go +++ b/src/http.go @@ -6,8 +6,7 @@ import ( "strings" ) -func httpRequest(wordlistChannel chan string, printChannel chan Response) { - log.Println("http request") +func httpRequest(wordlistChannel chan string, printChannel chan Response, doneChannel chan int, threadNr int) { for { // replace the first instance of "FUZZ" in the given url by the next // value from the wordlistChannel @@ -29,4 +28,8 @@ func httpRequest(wordlistChannel chan string, printChannel chan Response) { // insert the response into the print channel for further printing printChannel <- response } + + if doneChannel != nil { + doneChannel <- threadNr + } } |