forked from yaklang/yakit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yak
34 lines (29 loc) · 755 Bytes
/
test.yak
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
# input your yak code
wg := sync.NewSizedWaitGroup(20)
defer wg.Wait()
func getTitle(target) {
wg.Add()
go func{
defer wg.Done()
urls = str.ParseStringToUrls(target)
fReq, err := fuzz.UrlsToHTTPRequests(urls...)
if err != nil {
return
}
res, err := fReq.Exec()
if err != nil {
return
}
for r := range res {
title = re.Grok(string(r.ResponseRaw), `<title>%{DATA:title}</title>`)["title"][0]
printf("%v %20s\n", r.Url, title)
}
}
}
for _, i := range str.ParseStringToHosts("47.52.100.1/24") {
getTitle(i)
}
servicescan.proto()
servicescan.service()
servicescan.web()
servicescan.concurrent()