-
Notifications
You must be signed in to change notification settings - Fork 88
/
main.go
69 lines (52 loc) · 1.09 KB
/
main.go
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package main
import (
"sync"
"bufio"
"net/http"
"fmt"
"os"
"strings"
"io/ioutil"
)
func main(){
// fmt.Println("\n")
fmt.Println("frequester tool By tojojo !!")
fmt.Println("\\__(-_-)__/")
// fmt.Println("\n")
colorReset := "\033[0m"
colorRed := "\033[31m"
colorGreen := "\033[32m"
sc := bufio.NewScanner(os.Stdin)
jobs := make(chan string)
var wg sync.WaitGroup
for i:= 0; i < 20; i++{
wg.Add(1)
go func(){
defer wg.Done()
for domain := range jobs {
resp, err := http.Get(domain)
if err != nil{
continue
}
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
fmt.Println(err)
}
sb := string(body)
check_result := strings.Contains(sb , "alert(1)")
// fmt.Println(check_result)
if check_result != false {
fmt.Println(string(colorRed),"XSS FOUND:", domain,string(colorReset))
}else{
fmt.Println(string(colorGreen),"Not Vulnerable:", domain, string(colorReset))
}
}
}()
}
for sc.Scan(){
domain := sc.Text()
jobs <- domain
}
close(jobs)
wg.Wait()
}