blob: bfb839cb1dba80af5e2b6bbecfcb909fdc423807 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package main
import (
"log"
)
func main() {
// read command line arguments, create channels...
registerFlags()
channels = registerChannels()
// read the wordlist from a file
wordlist, err := readWordlist(wordlist)
if err != nil {
log.Println(err)
}
// write into the wordlist channel and read out of the print channel
// these functions wait for input into the channels and process the given
// data
go writeWordlistToChannel(channels, wordlist)
go printResponses(channels)
// start the http server exposing the data found
go httpStartServer()
// make the http requests by fetching the data from the channels
httpHandler(wordlistChannel, printChannel, doneChannel)
}
|