diff --git a/main b/main new file mode 100755 index 0000000..275a64f Binary files /dev/null and b/main differ diff --git a/main.go b/main.go index 4be9ac4..f3bf0f6 100644 --- a/main.go +++ b/main.go @@ -5,13 +5,14 @@ import ( "flag" "fmt" "io/ioutil" - "context" "log" "net/http" "os" "strings" "time" "sync" + "context" + "crypto/tls" ) const ( @@ -27,34 +28,42 @@ type arrayFlags []string func main() { var headers arrayFlags filepath := flag.String("i", "urls.txt", "Path to file containing urls to test") + debug := flag.Bool("d", false, "Debug, ex: -d=true") flag.Var(&headers, "H" ,"Headers ex: -H='Cookie: PHPSESSID=shjhjdgvbhjhvnv'") flag.Parse() urls := getUrlsFromFile(string(*filepath)) + fmt.Println(len(urls)) + var wg sync.WaitGroup + ctx := context.Background() for i:=0;i