blob: 0a6dfcab1bf9bf654c5d68fe7c71077b65934205 (
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()
channelsStruct := 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(channelsStruct, wordlist)
go printResponses(channelsStruct)
// start the http server exposing the data found
go httpStartServer()
// make the http requests by fetching the data from the channels
httpHandler(channelsStruct)
}
|