-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
45 lines (38 loc) · 844 Bytes
/
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
// Author : Rahmat Wahyu Hadi
package main
import (
"Automation-Security/check"
"Automation-Security/cred"
"Automation-Security/urls"
"Automation-Security/xss"
"Automation-Security/sql"
"flag"
"fmt"
)
type Input struct {
IsURL string
IsEnum string
}
// Value Receiver
func (i Input) call() {
if i.IsEnum == "xss" {
xss.IsCheckXSS(i.IsURL)
} else if i.IsEnum == "spider" {
urls.FindURLS(i.IsURL)
} else if i.IsEnum == "check" {
check.IsCheck(i.IsURL)
} else if i.IsEnum == "cred" {
cred.CheckCred(i.IsURL)
} else if i.IsEnum == "sql"{
sql.IsChekSQL(i.IsURL)
}else {
fmt.Println("[+] Opps Something Errors")
}
}
func main() {
isEnum := flag.String("enum", "not", "Type Vuln")
isURL := flag.String("url", "", "A url/endpoint will check")
flag.Parse()
isInput := Input{*isURL, *isEnum}
isInput.call()
}