MCPcopy
hub / github.com/pingc0y/URLFinder / UrlFuzz

Function UrlFuzz

crawler/urlFuzz.go:17–36  ·  view source on GitHub ↗

Fuzz

()

Source from the content-addressed store, hash-verified

15
16// Fuzz
17func UrlFuzz() {
18 var host string
19 re := regexp.MustCompile("([a-z0-9\\-]+\\.)*([a-z0-9\\-]+\\.[a-z0-9\\-]+)(:[0-9]+)?")
20 hosts := re.FindAllString(cmd.U, 1)
21 if len(hosts) == 0 {
22 host = cmd.U
23 } else {
24 host = hosts[0]
25 }
26 if cmd.D != "" {
27 host = cmd.D
28 }
29 disposes, _ := util.UrlDispose(append(result.ResultUrl, mode.Link{Url: cmd.U, Status: "200", Size: "0"}), host, "")
30 if cmd.Z == 2 || cmd.Z == 3 {
31 fuzz2(disposes)
32 } else if cmd.Z != 0 {
33 fuzz1(disposes)
34 }
35 fmt.Println("\rFuzz OK ")
36}
37
38// fuzz请求
39func fuzzGet(u string) {

Callers 2

ValidateFFFunction · 0.85
startFunction · 0.85

Calls 3

UrlDisposeFunction · 0.92
fuzz2Function · 0.85
fuzz1Function · 0.85

Tested by

no test coverage detected