forked from GhostTroops/scan4all
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebScanUrls.go
50 lines (47 loc) · 1.44 KB
/
webScanUrls.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
package webScan
import (
"bytes"
"github.com/hktalent/scan4all/lib/util"
ws01 "github.com/hktalent/scan4all/webScan/Functions"
Configs "github.com/hktalent/scan4all/webScan/config"
"strings"
)
type ExpJsons struct {
Name string `json:"Name"`
Description string `json:"Description"`
Product string `json:"Product"`
Author string `json:"author"`
Request []struct {
Method string `json:"Method"`
Header map[string]string `json:"Header"`
Uri string `json:"Uri"`
Port string `json:"Port"`
Data string `json:"Data"`
Follow_redirects string `json:"Follow_redirects"`
Upload struct {
Name string `json:"Name"`
FileName string `json:"fileName"`
FilePath string `json:"FilePath"`
} `json:"Upload"`
Response struct {
Check_Steps string `json:"Check_Steps"`
Checks []struct {
Operation string `json:"Operation"`
Key string `json:"Key"`
Value string `json:"Value"`
} `json:"Checks"`
}
Next_decide string `json:"Next_decide"`
} `json:"Request"`
}
// 集成 webscan
func CheckUrls(buf *bytes.Buffer) {
if nil == buf {
return
}
urllist := strings.Split(strings.TrimSpace(buf.String()), "\n")
Configs.UserObject.GetTitle = true
Configs.UserObject.AllJson = true
Configs.UserObject.ThreadNum = util.GetValAsInt("Fuzzthreads", 4)
ws01.Choose(urllist)
}