-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmain.go
38 lines (32 loc) · 1.53 KB
/
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
package main
import (
"flag"
"fmt"
"sni-fetch/fetch"
)
func main() {
targetIP := flag.String("t", "", "The target IP")
sniNum := flag.Int("n", 1, "The required number of sni")
conNum := flag.Int("c", 50, "The number of concurrent checks in a single round")
file := flag.String("file", "", "")
flag.Parse()
printProcInfo()
fetch.Start(fetch.Fetch{
Addr : *targetIP,
Num : *sniNum,
Con : *conNum,
DomainsFile: *file,
})
}
func printProcInfo() {
title := `
███████╗███╗ ██╗██╗ ███████╗███████╗████████╗ ██████╗██╗ ██╗
██╔════╝████╗ ██║██║ ██╔════╝██╔════╝╚══██╔══╝██╔════╝██║ ██║
███████╗██╔██╗ ██║██║ █████╗ █████╗ ██║ ██║ ███████║
╚════██║██║╚██╗██║██║ ██╔══╝ ██╔══╝ ██║ ██║ ██╔══██║
███████║██║ ╚████║██║ ██║ ███████╗ ██║ ╚██████╗██║ ██║
╚══════╝╚═╝ ╚═══╝╚═╝ ╚═╝ ╚══════╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
Github: https://github.com/HelloLingC/SNI-Fetch
`
fmt.Printf(title + "\n")
}