-
Notifications
You must be signed in to change notification settings - Fork 94
/
main.go
24 lines (21 loc) · 588 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
package main
import (
"FastjsonScan/Utils"
"FastjsonScan/console"
"flag"
)
// ./FastjsonScan -u http://test.a1phaboy.tech/api/post -o result.txt
// ./FastjsonScan -f targets.txt
func main() {
Console.Banner()
var options Utils.Option
flag.StringVar(&options.Url,"u","","url")
flag.StringVar(&options.Targets,"f","","targets file . for example: -f targets.txt")
flag.StringVar(&options.Result,"o","result.txt","results output file. for example: -o result.txt")
flag.Parse()
if options.Url == "" && options.Targets == ""{
Console.Opts()
return
}
Console.Start(options)
}