Skip to content

Commit

Permalink
Added some custom checks
Browse files Browse the repository at this point in the history
  • Loading branch information
topscoder committed May 19, 2023
1 parent d003fb3 commit ad576e9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions fourohme.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,25 @@ func main() {
go fourohme.TalkHttpBaby(ch, &wg, *silentPtr)
}

// Try some custom variants
wg.Add(1)
var headerList []fourohme.Header

var urlList []string
urlList = append(urlList, fmt.Sprintf("%s/%s//", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/.%s/..", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/;%s", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s/.;%s", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s//;/%s", sUrl, sPath))
urlList = append(urlList, fmt.Sprintf("%s%s", sUrl, strings.ToUpper(sPath)))

for _, url := range urlList {
wg.Add(1)
request := fourohme.Request{Verb: "GET", Url: url, Headers: headerList}
ch <- request
go fourohme.TalkHttpBaby(ch, &wg, *silentPtr)
}

close(ch)
wg.Wait()
}
Expand Down

0 comments on commit ad576e9

Please sign in to comment.