-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
v1ll4n
committed
Oct 19, 2021
1 parent
cd310de
commit 24f253f
Showing
5 changed files
with
160 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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() |