├── .github └── workflows │ └── go.yml ├── .gitignore ├── .images └── image-20210827090928254.png ├── README.md ├── cmd └── blueming │ └── main.go ├── config └── main.go ├── go.mod ├── go.sum ├── internal └── core │ ├── core.go │ ├── listen.go │ └── utils.go └── pkg ├── file-download └── main.go ├── general-file-name └── main.go ├── http-request └── main.go ├── log └── log.go ├── parseip └── main.go └── useragent └── main.go /.github/workflows/go.yml: -------------------------------------------------------------------------------- 1 | name: Go 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | 7 | jobs: 8 | build: 9 | runs-on: ubuntu-18.04 10 | steps: 11 | - uses: actions/checkout@v2 12 | 13 | - name: Install Golang 14 | uses: actions/setup-go@v2 15 | with: 16 | go-version: 1.17 # 1.18 后会出现tls: server selected unsupported protocol version 301错误 17 | 18 | - name: Get Current Date 19 | id: date 20 | run: echo "::set-output name=date::$(date +'%Y%m%d%H%M')" 21 | 22 | - name: Build && Packet 23 | run: | 24 | go build -v -ldflags '-w -s' -gcflags '-N -l' -o blueming cmd/blueming/main.go 25 | tar -zcvf blueming.tar.gz blueming 26 | 27 | - name: Auto Release 28 | uses: softprops/action-gh-release@v1 29 | env: 30 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 31 | with: 32 | tag_name: ${{ steps.date.outputs.date }} 33 | release_name: Release ${{ steps.date.outputs.date }} 34 | files: | 35 | *.tar.gz 36 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | cmd/blueming/blueming 2 | cmd/blueming/output 3 | cmd/blueming/log 4 | cmd/blueming/wordlists 5 | -------------------------------------------------------------------------------- /.images/image-20210827090928254.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bufsnake/blueming/fc781536ec1963606a4f62812a21926a2d2caafa/.images/image-20210827090928254.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 简介 2 | 3 | > 最近挺喜欢听IU的blueming,所以命名为blueming 4 | > 5 | > 获取网站备份文件,以及目录扫描,被动扫描 6 | 7 | ## 使用 8 | 9 | ```bash 10 | Usage: 11 | blueming [command] 12 | 13 | Available Commands: 14 | backupscan backupscan scan 15 | dirscan dirscan scan 16 | help Help about any command 17 | passive passive scan 18 | 19 | Flags: 20 | -h, --help help for blueming 21 | 22 | Use "blueming [command] --help" for more information about a command. 23 | ``` 24 | 25 | ### backupscan 26 | 27 | 1. 启动扫描 28 | 29 | ```bash 30 | └> ./blueming backupscan -u http://xx.xx.xx.xx:xxx 31 | [INFO] 08-27 09:04:15 cmd/blueming/main.go:192 1 个URL, 100 线程, 10 超时 32 | [INFO] 08-27 09:04:15 internal/core/core.go:93 start scan backup 33 | ... 34 | ``` 35 | 36 | 2. 清洗结果(新开终端/或等待任务结束后进行清洗) 37 | 38 | ![image-20210827090928254](.images/image-20210827090928254.png) 39 | 40 | ### dirscan 41 | 42 | > 不是重点 43 | 44 | ### passive 45 | 46 | > 不是重点 47 | 48 | ## TODO 49 | 50 | > 基本满足以下要求即可 51 | 52 | - [ ] 常见文件泄露扫描 .git .hg .idea .DS_Store ... 53 | - [x] 提取域名关键字进行目录扫描 54 | - [ ] 日志文件扫描: 指定扫描地址,计算头一天的日期,根据日期生成字典,可定制日期出现的位置 55 | "image$TIME$" "pay.$time$" 56 | - [x] 开启被动扫描模式,配合httpx自动进行目录扫描(二级、三级、四级...) 57 | - [x] 通过URL自动生成文件名 58 | - [x] 根据后缀名将URL定义为对应的文件格式,如zip、tar.gz等 59 | - [x] 自动下载备份文件,并进行重命名 60 | - [x] 能够自定义字典 61 | - [x] 优化内存占用 62 | - [x] filter.sh 移至程序内部 63 | - [x] 目录扫描部分添加 页面相似度比较,每个新产生的都会与前面所有的请求进行比较一次(耗时) 64 | - 比较时,各网站相互独立,采用协程的方式 65 | - [x] 采用 GET 请求,查看文件过大时的response 66 | - 文件过大导致的超时 则获取 header,比较历史记录中的length 67 | - 正常情况,比较body 68 | -------------------------------------------------------------------------------- /cmd/blueming/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "github.com/bufsnake/blueming/config" 6 | "github.com/bufsnake/blueming/internal/core" 7 | "github.com/bufsnake/blueming/pkg/log" 8 | "github.com/spf13/cobra" 9 | "golang.org/x/text/encoding/simplifiedchinese" 10 | "io/ioutil" 11 | "math" 12 | "os" 13 | "os/exec" 14 | "runtime" 15 | "strings" 16 | "sync" 17 | "syscall" 18 | "time" 19 | ) 20 | 21 | func init() { 22 | // 开启多核模式 23 | runtime.GOMAXPROCS(runtime.NumCPU() * 3 / 4) 24 | // 关闭 GIN Debug模式 25 | // 设置工具可打开的文件描述符 26 | var rLimit syscall.Rlimit 27 | rLimit.Max = 999999 28 | rLimit.Cur = 999999 29 | if runtime.GOOS == "darwin" { 30 | rLimit.Cur = 10240 31 | } 32 | err := syscall.Setrlimit(syscall.RLIMIT_NOFILE, &rLimit) 33 | if err != nil { 34 | fmt.Println(err) 35 | os.Exit(1) 36 | } 37 | _ = syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rLimit) 38 | } 39 | 40 | func main() { 41 | conf := config.Config{} 42 | var blueming = &cobra.Command{ 43 | Use: "blueming", 44 | } 45 | blueming.CompletionOptions = cobra.CompletionOptions{ 46 | DisableDefaultCmd: true, 47 | DisableNoDescFlag: true, 48 | DisableDescriptions: true, 49 | HiddenDefaultCmd: true, 50 | } 51 | var backupscan = &cobra.Command{ 52 | Use: "backupscan", 53 | Short: "backupscan scan", 54 | Args: cobra.NoArgs, 55 | Run: func(cmd *cobra.Command, args []string) { 56 | if (conf.Urlfile == "" && conf.Url == "") && !conf.FilterOutput { 57 | cmd.Usage() 58 | log.Fatal("please specify a goal") 59 | } 60 | if conf.FilterOutput { 61 | allfiles, _ := ioutil.ReadDir("./output") 62 | for _, f := range allfiles { 63 | if !f.IsDir() { 64 | if f.Size() <= 1048576 { 65 | err := os.Remove("./output/" + f.Name()) 66 | if err != nil { 67 | log.Fatal(err) 68 | } 69 | } 70 | } 71 | } 72 | wait := sync.WaitGroup{} 73 | files, _ := ioutil.ReadDir("./output") 74 | fmt.Println("current exist", len(files), "files") 75 | go func() { 76 | for { 77 | fmt.Printf("\r%.2f%%", math.Trunc(((increase/float64(len(files)))*100)*1e2)*1e-2) 78 | time.Sleep(1 * time.Second / 10) 79 | } 80 | }() 81 | for _, f := range files { 82 | if !f.IsDir() { 83 | wait.Add(1) 84 | go filter(&wait, strings.ReplaceAll("./output/"+f.Name(), " ", ` `), float64(len(files))) 85 | } else { 86 | increaseAdd() 87 | fmt.Printf("\r%.2f%%", math.Trunc(((increase/float64(len(files)))*100)*1e2)*1e-2) 88 | } 89 | } 90 | wait.Wait() 91 | os.Exit(1) 92 | } 93 | }, 94 | } 95 | backupscan.Flags().StringVarP(&conf.Url, "url", "u", "", "scan a website") 96 | backupscan.Flags().StringVarP(&conf.Urlfile, "url-list", "l", "", "scan multiple websites") 97 | backupscan.Flags().StringVarP(&conf.Proxy, "proxy", "p", "", "set up proxy(http://localhost:8080)") 98 | backupscan.Flags().IntVarP(&conf.Thread, "thread", "t", 100, "set up thread") 99 | backupscan.Flags().IntVarP(&conf.Timeout, "timeout", "s", 10, "set up timeout") 100 | backupscan.Flags().StringVarP(&conf.Loglevel, "log-level", "v", log.DEBUG, "set up log level(trace,debug,info,warn,fatal)") 101 | backupscan.Flags().BoolVarP(&conf.FilterOutput, "filter-output", "f", false, "empty junk data, must be used for backup scan") 102 | 103 | var dirscan = &cobra.Command{ 104 | Use: "dirscan", 105 | Short: "dirscan scan", 106 | Args: cobra.NoArgs, 107 | Run: func(cmd *cobra.Command, args []string) { 108 | if (conf.Urlfile == "" && conf.Url == "") || conf.Wordlist == "" { 109 | cmd.Usage() 110 | log.Fatal("please specify target and dictionary") 111 | } 112 | }, 113 | } 114 | dirscan.Flags().StringVarP(&conf.Url, "url", "u", "", "scan a website") 115 | dirscan.Flags().StringVarP(&conf.Urlfile, "url-list", "l", "", "scan multiple websites") 116 | dirscan.Flags().StringVarP(&conf.Proxy, "proxy", "p", "", "set up proxy(http://localhost:8080)") 117 | dirscan.Flags().IntVarP(&conf.Thread, "thread", "t", 100, "set up thread") 118 | dirscan.Flags().IntVarP(&conf.Timeout, "timeout", "s", 10, "set up timeout") 119 | dirscan.Flags().StringVarP(&conf.Wordlist, "wordlist", "w", "", "set up wordlist") 120 | dirscan.Flags().StringVarP(&conf.Index, "index", "i", "", "set the starting position of the dictionary(-i /test.php)") 121 | 122 | var passive = &cobra.Command{ 123 | Use: "passive", 124 | Short: "passive scan", 125 | Args: cobra.NoArgs, 126 | Run: func(cmd *cobra.Command, args []string) { 127 | if conf.Urlfile == "" || conf.Wordlist == "" { 128 | cmd.Usage() 129 | log.Fatal("please specify target and dictionary") 130 | } 131 | passives := core.NewPassive(conf) 132 | err := passives.Start() 133 | if err != nil { 134 | log.Fatal(err) 135 | } 136 | os.Exit(1) 137 | }, 138 | } 139 | passive.Flags().StringVarP(&conf.Urlfile, "url-list", "l", "", "scan multiple websites") 140 | passive.Flags().StringVarP(&conf.Listen, "listen", "i", "127.0.0.1:8091", "set listening address") 141 | passive.Flags().IntVarP(&conf.Timeout, "timeout", "s", 10, "set up timeout") 142 | passive.Flags().IntVarP(&conf.Thread, "thread", "t", 100, "set up thread") 143 | passive.Flags().StringVarP(&conf.Wordlist, "wordlist", "w", "", "set up wordlist") 144 | passive.Flags().StringVarP(&conf.Cert, "cert", "c", "ca.crt", "set up the certificate") 145 | passive.Flags().StringVarP(&conf.Key, "key", "k", "ca.key", "set up the key") 146 | blueming.AddCommand(backupscan, dirscan, passive) 147 | err := blueming.Execute() 148 | if err != nil { 149 | log.Fatal(err) 150 | } 151 | log.SetLevel(conf.Loglevel) 152 | 153 | urls := []string{} 154 | if conf.Url != "" { 155 | urls = append(urls, conf.Url) 156 | } else if conf.Urlfile != "" { 157 | file, err := ioutil.ReadFile(conf.Urlfile) 158 | if err != nil { 159 | log.Warn(err) 160 | } 161 | split := strings.Split(string(file), "\n") 162 | for i := 0; i < len(split); i++ { 163 | split[i] = strings.Trim(split[i], "\r") 164 | if len(split[i]) != 0 { 165 | urls = append(urls, split[i]) 166 | } 167 | } 168 | } 169 | if len(urls) == 0 { 170 | return 171 | } 172 | 173 | // 判断 output 文件夹是否存在 174 | if !exists("./output") { 175 | log.Info("create output file path") 176 | err = os.Mkdir("./output/", os.ModePerm) 177 | if err != nil { 178 | log.Warn("create output file path error", err) 179 | os.Exit(1) 180 | } 181 | } 182 | 183 | // 创建 Log 文件夹 184 | if !exists("./logs") { 185 | log.Info("create logs file path") 186 | err = os.Mkdir("./logs/", os.ModePerm) 187 | if err != nil { 188 | log.Warn("create logs file path error", err) 189 | os.Exit(1) 190 | } 191 | } 192 | 193 | log.Info(len(urls), "个URL,", conf.Thread, "线程,", conf.Timeout, "超时") 194 | 195 | config.LogFileName = "./logs/Log-" + time.Now().Format("2006-01-02 15:04:05") 196 | create, err := os.Create(config.LogFileName) 197 | if err != nil { 198 | log.Warn(err) 199 | } 200 | err = create.Close() 201 | if err != nil { 202 | log.Warn(err) 203 | } 204 | 205 | newCore := core.NewCore(urls, conf) 206 | newCore.Core() 207 | } 208 | 209 | func exists(path string) bool { 210 | _, err := os.Stat(path) //os.Stat获取文件信息 211 | if err != nil { 212 | if os.IsExist(err) { 213 | return true 214 | } 215 | return false 216 | } 217 | return true 218 | } 219 | 220 | var increase float64 = 0 221 | var inc_l sync.Mutex 222 | 223 | func increaseAdd() { 224 | inc_l.Lock() 225 | defer inc_l.Unlock() 226 | increase++ 227 | } 228 | 229 | func filter(wait *sync.WaitGroup, filename string, totalcount float64) { 230 | defer wait.Done() 231 | bin := []string{"-c", "function filter { if [[ $(file $1 | grep $1\": data\") == \"\" && $(file $1 | grep \"image data\") == \"\" && $(file $1 | grep \"HTML\") == \"\" && $(file $1 | grep \"empty\") == \"\" && $(file $1 | grep \"JSON\") == \"\" && $(file $1 | grep \"text\") == \"\" ]]; then file $1; else rm -rf $1; fi } && filter '" + filename + "'"} 232 | // 其他的shell环境太烦了 233 | run := exec.Command("/bin/zsh", bin...) 234 | output, err := run.Output() 235 | if err != nil { 236 | log.Fatal(err) 237 | } 238 | output, err = simplifiedchinese.GB18030.NewDecoder().Bytes(output) 239 | if err != nil { 240 | log.Fatal(err) 241 | } 242 | if len(output) != 0 { 243 | fmt.Print("\r" + string(output)) 244 | } 245 | increaseAdd() 246 | fmt.Printf("\r%.2f%%", math.Trunc(((increase/totalcount)*100)*1e2)*1e-2) 247 | } 248 | -------------------------------------------------------------------------------- /config/main.go: -------------------------------------------------------------------------------- 1 | package config 2 | 3 | type Config struct { 4 | Thread int 5 | Timeout int 6 | Url string 7 | Urlfile string 8 | Loglevel string 9 | Wordlist string 10 | Index string 11 | Proxy string 12 | FilterOutput bool // 过滤 output 文件夹中的垃圾数据 13 | Listen string 14 | Cert string 15 | Key string 16 | } 17 | 18 | var LogFileName string 19 | 20 | type HTTPStatus struct { 21 | URL string 22 | Status int 23 | ContentType string 24 | Size string 25 | Body string 26 | } 27 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/bufsnake/blueming 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/antlabs/strsim v0.0.2 7 | github.com/davecgh/go-spew v1.1.1 // indirect 8 | github.com/google/martian v2.1.0+incompatible 9 | github.com/inconshreveable/mousetrap v1.0.0 // indirect 10 | github.com/kr/pretty v0.3.0 // indirect 11 | github.com/kr/text v0.2.0 // indirect 12 | github.com/logrusorgru/aurora v2.0.3+incompatible 13 | github.com/pmezard/go-difflib v1.0.0 // indirect 14 | github.com/rogpeppe/go-internal v1.8.1 // indirect 15 | github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect 16 | github.com/spf13/cobra v1.4.0 17 | github.com/spf13/pflag v1.0.5 // indirect 18 | github.com/spf13/viper v1.8.1 // indirect 19 | github.com/stretchr/testify v1.7.2 // indirect 20 | github.com/weppos/publicsuffix-go v0.15.0 21 | golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 // indirect 22 | golang.org/x/text v0.3.7 23 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect 24 | gopkg.in/yaml.v3 v3.0.1 // indirect 25 | ) 26 | -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- 1 | cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 2 | cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= 3 | cloud.google.com/go v0.38.0/go.mod h1:990N+gfupTy94rShfmMCWGDn0LpTmnzTp2qbd1dvSRU= 4 | cloud.google.com/go v0.44.1/go.mod h1:iSa0KzasP4Uvy3f1mN/7PiObzGgflwredwwASm/v6AU= 5 | cloud.google.com/go v0.44.2/go.mod h1:60680Gw3Yr4ikxnPRS/oxxkBccT6SA1yMk63TGekxKY= 6 | cloud.google.com/go v0.45.1/go.mod h1:RpBamKRgapWJb87xiFSdk4g1CME7QZg3uwTez+TSTjc= 7 | cloud.google.com/go v0.46.3/go.mod h1:a6bKKbmY7er1mI7TEI4lsAkts/mkhTSZK8w33B4RAg0= 8 | cloud.google.com/go v0.50.0/go.mod h1:r9sluTvynVuxRIOHXQEHMFffphuXHOMZMycpNR5e6To= 9 | cloud.google.com/go v0.52.0/go.mod h1:pXajvRH/6o3+F9jDHZWQ5PbGhn+o8w9qiu/CffaVdO4= 10 | cloud.google.com/go v0.53.0/go.mod h1:fp/UouUEsRkN6ryDKNW/Upv/JBKnv6WDthjR6+vze6M= 11 | cloud.google.com/go v0.54.0/go.mod h1:1rq2OEkV3YMf6n/9ZvGWI3GWw0VoqH/1x2nd8Is/bPc= 12 | cloud.google.com/go v0.56.0/go.mod h1:jr7tqZxxKOVYizybht9+26Z/gUq7tiRzu+ACVAMbKVk= 13 | cloud.google.com/go v0.57.0/go.mod h1:oXiQ6Rzq3RAkkY7N6t3TcE6jE+CIBBbA36lwQ1JyzZs= 14 | cloud.google.com/go v0.62.0/go.mod h1:jmCYTdRCQuc1PHIIJ/maLInMho30T/Y0M4hTdTShOYc= 15 | cloud.google.com/go v0.65.0/go.mod h1:O5N8zS7uWy9vkA9vayVHs65eM1ubvY4h553ofrNHObY= 16 | cloud.google.com/go v0.72.0/go.mod h1:M+5Vjvlc2wnp6tjzE102Dw08nGShTscUx2nZMufOKPI= 17 | cloud.google.com/go v0.74.0/go.mod h1:VV1xSbzvo+9QJOxLDaJfTjx5e+MePCpCWwvftOeQmWk= 18 | cloud.google.com/go v0.78.0/go.mod h1:QjdrLG0uq+YwhjoVOLsS1t7TW8fs36kLs4XO5R5ECHg= 19 | cloud.google.com/go v0.79.0/go.mod h1:3bzgcEeQlzbuEAYu4mrWhKqWjmpprinYgKJLgKHnbb8= 20 | cloud.google.com/go v0.81.0/go.mod h1:mk/AM35KwGk/Nm2YSeZbxXdrNK3KZOYHmLkOqC2V6E0= 21 | cloud.google.com/go/bigquery v1.0.1/go.mod h1:i/xbL2UlR5RvWAURpBYZTtm/cXjCha9lbfbpx4poX+o= 22 | cloud.google.com/go/bigquery v1.3.0/go.mod h1:PjpwJnslEMmckchkHFfq+HTD2DmtT67aNFKH1/VBDHE= 23 | cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvftPBK2Dvzc= 24 | cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= 25 | cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= 26 | cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= 27 | cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= 28 | cloud.google.com/go/datastore v1.1.0/go.mod h1:umbIZjpQpHh4hmRpGhH4tLFup+FVzqBi1b3c64qFpCk= 29 | cloud.google.com/go/firestore v1.1.0/go.mod h1:ulACoGHTpvq5r8rxGJ4ddJZBZqakUQqClKRT5SZwBmk= 30 | cloud.google.com/go/pubsub v1.0.1/go.mod h1:R0Gpsv3s54REJCy4fxDixWD93lHJMoZTyQ2kNxGRt3I= 31 | cloud.google.com/go/pubsub v1.1.0/go.mod h1:EwwdRX2sKPjnvnqCa270oGRyludottCI76h+R3AArQw= 32 | cloud.google.com/go/pubsub v1.2.0/go.mod h1:jhfEVHT8odbXTkndysNHCcx0awwzvfOlguIAii9o8iA= 33 | cloud.google.com/go/pubsub v1.3.1/go.mod h1:i+ucay31+CNRpDW4Lu78I4xXG+O1r/MAHgjpRVR+TSU= 34 | cloud.google.com/go/storage v1.0.0/go.mod h1:IhtSnM/ZTZV8YYJWCY8RULGVqBDmpoyjwiyrjsg+URw= 35 | cloud.google.com/go/storage v1.5.0/go.mod h1:tpKbwo567HUNpVclU5sGELwQWBDZ8gh0ZeosJ0Rtdos= 36 | cloud.google.com/go/storage v1.6.0/go.mod h1:N7U0C8pVQ/+NIKOBQyamJIeKQKkZ+mxpohlUTyfDhBk= 37 | cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RXyy7KQOVs= 38 | cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= 39 | dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= 40 | github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= 41 | github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= 42 | github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= 43 | github.com/antlabs/strsim v0.0.2 h1:R4qjokEegYTrw+fkcYj3/UndG9Cn136fH+fpw9TIz9k= 44 | github.com/antlabs/strsim v0.0.2/go.mod h1:95XAAF2dJK9IiZMc0Ue6H9t477/i6fvYoMoeey8sEnc= 45 | github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= 46 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= 47 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 48 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 49 | github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= 50 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 51 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 52 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 53 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 54 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 55 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 56 | github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 57 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 58 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 59 | github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= 60 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 61 | github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= 62 | github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= 63 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 64 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 65 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 66 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 67 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 68 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 69 | github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= 70 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 71 | github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 72 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 73 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 74 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 75 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 76 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 77 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 78 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 79 | github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= 80 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 81 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 82 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 83 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 84 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 85 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 86 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 87 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 88 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 89 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 90 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 91 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 92 | github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= 93 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 94 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 95 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 96 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 97 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 98 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 99 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 100 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 101 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 102 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 103 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 104 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 105 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 106 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 107 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 108 | github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= 109 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 110 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 111 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 112 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 113 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 114 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 115 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 116 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 117 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 118 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 119 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 120 | github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 121 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 122 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 123 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 124 | github.com/google/martian v2.1.0+incompatible h1:/CP5g8u/VJHijgedC/Legn3BAbAaWPgecwXBIDzw5no= 125 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 126 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 127 | github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 128 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 129 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 130 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 131 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 132 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 133 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 134 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 135 | github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 136 | github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 137 | github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 138 | github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 139 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 140 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 141 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 142 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 143 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 144 | github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= 145 | github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= 146 | github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= 147 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 148 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 149 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 150 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= 151 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 152 | github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= 153 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= 154 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 155 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 156 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 157 | github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= 158 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 159 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 160 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 161 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 162 | github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= 163 | github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= 164 | github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= 165 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 166 | github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 167 | github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= 168 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 169 | github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 170 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 171 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 172 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 173 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 174 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 175 | github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= 176 | github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI= 177 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 178 | github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= 179 | github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0= 180 | github.com/kr/pretty v0.3.0/go.mod h1:640gp4NfQd8pI5XOwp5fnNeVWj67G7CFk/SaSQn7NBk= 181 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 182 | github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= 183 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 184 | github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= 185 | github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= 186 | github.com/logrusorgru/aurora v2.0.3+incompatible h1:tOpm7WcpBTn4fjmVfgpQq0EfczGlG91VSDkswnjF5A8= 187 | github.com/logrusorgru/aurora v2.0.3+incompatible/go.mod h1:7rIyQOR62GCctdiQpZ/zOJlFyk6y+94wXzv6RNZgaR4= 188 | github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= 189 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 190 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 191 | github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= 192 | github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= 193 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 194 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 195 | github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= 196 | github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= 197 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 198 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 199 | github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 200 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 201 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 202 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 203 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 204 | github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= 205 | github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= 206 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 207 | github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= 208 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 209 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 210 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 211 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 212 | github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 213 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 214 | github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= 215 | github.com/rogpeppe/go-internal v1.8.1 h1:geMPLpDpQOgVyCg5z5GoRwLHepNdb71NXb67XFkP+Eg= 216 | github.com/rogpeppe/go-internal v1.8.1/go.mod h1:JeRgkft04UBgHMgCIwADu4Pn6Mtm5d4nPKWu0nJ5d+o= 217 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 218 | github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 219 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= 220 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= 221 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 222 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 223 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 224 | github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= 225 | github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 226 | github.com/spf13/cobra v1.2.1 h1:+KmjbUw1hriSNMF55oPrkZcb27aECyrj8V2ytv7kWDw= 227 | github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= 228 | github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q= 229 | github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g= 230 | github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= 231 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 232 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 233 | github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= 234 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 235 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 236 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 237 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 238 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 239 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 240 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 241 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 242 | github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s= 243 | github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= 244 | github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= 245 | github.com/weppos/publicsuffix-go v0.15.0 h1:2uQCwDczZ8YZe5uD0mM3sXRoZYA74xxPuiKK8LdPcGQ= 246 | github.com/weppos/publicsuffix-go v0.15.0/go.mod h1:HYux0V0Zi04bHNwOHy4cXJVz/TQjYonnF6aoYhj+3QE= 247 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 248 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 249 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 250 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 251 | github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 252 | go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= 253 | go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= 254 | go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= 255 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 256 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 257 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 258 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 259 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 260 | go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= 261 | go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= 262 | go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= 263 | go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= 264 | go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= 265 | golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 266 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 267 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 268 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 269 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 270 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 271 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 272 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 273 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 274 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 275 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 276 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 277 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 278 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 279 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 280 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 281 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 282 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 283 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 284 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 285 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 286 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 287 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 288 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 289 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 290 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 291 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 292 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 293 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 294 | golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 295 | golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 296 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 297 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 298 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 299 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 300 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 301 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 302 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 303 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 304 | golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 305 | golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 306 | golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 307 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 308 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 309 | golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 310 | golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 311 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 312 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 313 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 314 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 315 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 316 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 317 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 318 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 319 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 320 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 321 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 322 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 323 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 324 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 325 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 326 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 327 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 328 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 329 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 330 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 331 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 332 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 333 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 334 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 335 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 336 | golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 337 | golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 338 | golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 339 | golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 340 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 341 | golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= 342 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4 h1:4nGaVu0QrbjT/AK2PRLuQfQuh6DJve+pELhqTdAj3x0= 343 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 344 | golang.org/x/net v0.0.0-20220617184016-355a448f1bc9 h1:Yqz/iviulwKwAREEeUd3nbBFn0XuyJqkoft2IlrvOhc= 345 | golang.org/x/net v0.0.0-20220617184016-355a448f1bc9/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= 346 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 347 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 348 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 349 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 350 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 351 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 352 | golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 353 | golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 354 | golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 355 | golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 356 | golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 357 | golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 358 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 359 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 360 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 361 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 362 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 363 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 364 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 365 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 366 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 367 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 368 | golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 369 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 370 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 371 | golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 372 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 373 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 374 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 375 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 376 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 377 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 378 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 379 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 380 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 381 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 382 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 383 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 384 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 385 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 386 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 387 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 388 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 389 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 390 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 391 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 392 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 393 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 394 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 395 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 396 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 397 | golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 398 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 399 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 400 | golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 401 | golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 402 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 403 | golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 404 | golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 405 | golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 406 | golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 407 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 408 | golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 409 | golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 410 | golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 411 | golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 412 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 413 | golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= 414 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 415 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 416 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 417 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 418 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 419 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 420 | golang.org/x/text v0.3.5 h1:i6eZZ+zk0SOf0xgBpEpPD18qWcJda6q1sxt3S0kzyUQ= 421 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 422 | golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk= 423 | golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= 424 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 425 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 426 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 427 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 428 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 429 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 430 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 431 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 432 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 433 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 434 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 435 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 436 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 437 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 438 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 439 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 440 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 441 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 442 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 443 | golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 444 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 445 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 446 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 447 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 448 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 449 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 450 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 451 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 452 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 453 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 454 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 455 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 456 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 457 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 458 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 459 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 460 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 461 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 462 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 463 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 464 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 465 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 466 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 467 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 468 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 469 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 470 | golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 471 | golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 472 | golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 473 | golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 474 | golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 475 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 476 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 477 | golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 478 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 479 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 480 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 481 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 482 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 483 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 484 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 485 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 486 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 487 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 488 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 489 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 490 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 491 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 492 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 493 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 494 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 495 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 496 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 497 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 498 | google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= 499 | google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= 500 | google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= 501 | google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= 502 | google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= 503 | google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= 504 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 505 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 506 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 507 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 508 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 509 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 510 | google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 511 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 512 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 513 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 514 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 515 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 516 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 517 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 518 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 519 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 520 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 521 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 522 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 523 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 524 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 525 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 526 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 527 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 528 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 529 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 530 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 531 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 532 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 533 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 534 | google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 535 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 536 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 537 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 538 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 539 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 540 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 541 | google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 542 | google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 543 | google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 544 | google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 545 | google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 546 | google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 547 | google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 548 | google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 549 | google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 550 | google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= 551 | google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= 552 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 553 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 554 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 555 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 556 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 557 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 558 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 559 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 560 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 561 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 562 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 563 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 564 | google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 565 | google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= 566 | google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= 567 | google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= 568 | google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 569 | google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 570 | google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 571 | google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= 572 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 573 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 574 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 575 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 576 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 577 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 578 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 579 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 580 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 581 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 582 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 583 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 584 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 585 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY= 586 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 587 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= 588 | gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= 589 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 590 | gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 591 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 592 | gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 593 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 594 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 595 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 596 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= 597 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 598 | gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= 599 | gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 600 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 601 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 602 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 603 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 604 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 605 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 606 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 607 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 608 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 609 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 610 | -------------------------------------------------------------------------------- /internal/core/core.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "fmt" 5 | "github.com/antlabs/strsim" 6 | "github.com/bufsnake/blueming/config" 7 | file_download "github.com/bufsnake/blueming/pkg/file-download" 8 | general_file_name "github.com/bufsnake/blueming/pkg/general-file-name" 9 | http_request "github.com/bufsnake/blueming/pkg/http-request" 10 | "github.com/bufsnake/blueming/pkg/log" 11 | "github.com/bufsnake/blueming/pkg/parseip" 12 | . "github.com/logrusorgru/aurora" 13 | "github.com/weppos/publicsuffix-go/publicsuffix" 14 | "io/ioutil" 15 | url2 "net/url" 16 | "os" 17 | "regexp" 18 | "strings" 19 | "sync" 20 | ) 21 | 22 | type core struct { 23 | config config.Config 24 | url []string 25 | wordlist []string 26 | htmlsimilarity map[string][]string // 耗时又占内存 27 | hslock sync.Mutex 28 | } 29 | 30 | func NewCore(url []string, config config.Config) core { 31 | wordlist := make([]string, 0) 32 | if config.Wordlist != "" { 33 | file, err := ioutil.ReadFile(config.Wordlist) 34 | if err != nil { 35 | log.Fatal(err) 36 | } 37 | split := strings.Split(string(file), "\n") 38 | flag := false 39 | if config.Index == "" { 40 | flag = true 41 | } 42 | for i := 0; i < len(split); i++ { 43 | split[i] = strings.Trim(split[i], "\r") 44 | if split[i] == "" || split[i] == "/" { 45 | continue 46 | } 47 | if flag { 48 | wordlist = append(wordlist, split[i]) 49 | } 50 | if split[i] == config.Index { 51 | flag = true 52 | } 53 | } 54 | if len(wordlist) == 0 { 55 | log.Fatal("specify index not found") 56 | } 57 | } 58 | hs := make(map[string][]string) 59 | return core{htmlsimilarity: hs, url: url, config: config, wordlist: wordlist} 60 | } 61 | 62 | // 目录扫描 和 备份文件扫描 分开 63 | func (c *core) Core() { 64 | if c.config.Wordlist != "" { // 目录扫描 65 | c.dirscan() 66 | } else { // 备份文件扫描 67 | c.backup() 68 | } 69 | } 70 | 71 | func (c *core) dirscan() { 72 | httpr := sync.WaitGroup{} 73 | httpc := make(chan string, c.config.Thread) 74 | for i := 0; i < c.config.Thread; i++ { 75 | httpr.Add(1) 76 | go c.httprequest(&httpr, httpc, nil, c.config.Timeout) 77 | } 78 | for i := 0; i < len(c.url); i++ { 79 | for req, _ := range c.domain_path(c.url[i]) { 80 | httpc <- strings.Trim(c.url[i], "/") + "/" + req 81 | } 82 | } 83 | length := general_file_name.InitGeneral(c.wordlist) 84 | for w := 0; w < length; w++ { 85 | for i := 0; i < len(c.url); i++ { 86 | genURL, err := general_file_name.NewGenURL(c.url[i]) 87 | if err != nil { 88 | log.Warn(err) 89 | continue 90 | } 91 | httpc <- genURL.GetDirURI(w) 92 | } 93 | } 94 | close(httpc) 95 | httpr.Wait() 96 | } 97 | 98 | func (c *core) backup() { 99 | log.Info("start scan backup") 100 | httpr := sync.WaitGroup{} 101 | httpc := make(chan string, c.config.Thread) 102 | httpd := make(chan config.HTTPStatus, c.config.Thread) 103 | for i := 0; i < c.config.Thread; i++ { 104 | httpr.Add(1) 105 | go c.httprequest(&httpr, httpc, httpd, c.config.Timeout) 106 | } 107 | down := sync.WaitGroup{} 108 | for i := 0; i < c.config.Thread; i++ { 109 | down.Add(1) 110 | go c.httpdownload(&down, httpd) 111 | } 112 | // 一阶段 扫描 固定死的URI 113 | length := general_file_name.InitGeneral([]string{}) 114 | for index := 0; index < length; index++ { 115 | for i := 0; i < len(c.url); i++ { 116 | genURL, err := general_file_name.NewGenURL(c.url[i]) 117 | if err != nil { 118 | log.Warn(err) 119 | continue 120 | } 121 | httpc <- genURL.GetBackupURI(index) 122 | } 123 | } 124 | 125 | // 扫描生成的URI 126 | index := 0 127 | for { 128 | flag := true 129 | for i := 0; i < len(c.url); i++ { 130 | genURL, err := general_file_name.NewGenURL(c.url[i]) 131 | if err != nil { 132 | log.Warn(err) 133 | continue 134 | } 135 | getURL := genURL.GetBackupExtURI() 136 | if len(*getURL) <= index { 137 | continue 138 | } 139 | flag = false 140 | httpc <- (*getURL)[index] 141 | } 142 | if flag { 143 | break 144 | } 145 | index++ 146 | } 147 | // 分析内存占用 148 | //memStat := new(runtime.MemStats) 149 | //runtime.ReadMemStats(memStat) 150 | //fmt.Println(len(to), memStat.Alloc) 151 | close(httpc) 152 | httpr.Wait() 153 | close(httpd) 154 | down.Wait() 155 | } 156 | 157 | func (c *core) httprequest(wait *sync.WaitGroup, httpc chan string, httpd chan config.HTTPStatus, timeout int) { 158 | defer wait.Done() 159 | for url := range httpc { 160 | var ( 161 | status int 162 | ct string 163 | size string 164 | body string 165 | err error 166 | ) 167 | status, ct, size, body, err = http_request.HTTPRequest(url, c.config.Proxy, timeout) 168 | if err != nil { 169 | log.Warn(err) 170 | continue 171 | } 172 | log.Trace(status, ct, size, body, err, url) 173 | if c.config.Wordlist != "" { 174 | if status == 404 || status == 0 { 175 | continue 176 | } 177 | // 计算页面相似度 -- 耗时严重 - 默认使用head请求 178 | // 与当前URL的所有历史记录进行匹配 179 | // 相似值低于0.75则追加 180 | parse, err := url2.Parse(url) 181 | if err != nil { 182 | log.Warn(err) 183 | continue 184 | } 185 | c.hslock.Lock() 186 | similarity := false 187 | for i := 0; i < len(c.htmlsimilarity[parse.Host]); i++ { 188 | // 2.516400257s 189 | //compare := strsim.Compare(body, c.htmlsimilarity[parse.Host][i], strsim.DiceCoefficient(1)) 190 | 191 | // 2.916750287s 192 | //compare := strsim.Compare(body, c.htmlsimilarity[parse.Host][i], strsim.Jaro()) 193 | 194 | // 1.839468012s 195 | compare := strsim.Compare(body, c.htmlsimilarity[parse.Host][i], strsim.Hamming()) 196 | if compare >= 0.75 { 197 | similarity = true 198 | break 199 | } 200 | } 201 | 202 | if similarity { // 相似 退出 203 | c.hslock.Unlock() 204 | continue 205 | } 206 | c.htmlsimilarity[parse.Host] = append(c.htmlsimilarity[parse.Host], body) 207 | c.hslock.Unlock() 208 | 209 | pr := make([]interface{}, 0) 210 | if status >= 200 && status < 300 { 211 | pr = append(pr, "["+BrightGreen(status).String()+"]") 212 | } else if status >= 300 && status < 400 { 213 | pr = append(pr, "["+BrightYellow(status).String()+"]") 214 | } else if status >= 400 && status < 500 { 215 | pr = append(pr, "["+BrightMagenta(status).String()+"]") 216 | } else { 217 | pr = append(pr, "["+BrightWhite(status).String()+"]") 218 | } 219 | pr = append(pr, "["+BrightCyan(size).String()+"]") 220 | pr = append(pr, "["+BrightWhite(url).String()+"]") 221 | if ct == "" { 222 | pr = append(pr, "["+"null"+"]") 223 | } else { 224 | pr = append(pr, "["+ct+"]") 225 | } 226 | fmt.Println(pr...) 227 | continue 228 | } 229 | if status != 200 && status != 206 { 230 | continue 231 | } 232 | if size == "0B" || size == "0.0B" { 233 | continue 234 | } 235 | var match bool 236 | match, err = regexp.MatchString("application/[-\\w.]+", ct) 237 | if err == nil && match { 238 | log.Info(size, ct, url) 239 | httpd <- config.HTTPStatus{ 240 | URL: url, 241 | Size: size, 242 | ContentType: ct, 243 | } 244 | } 245 | } 246 | } 247 | 248 | func (c *core) httpdownload(wait *sync.WaitGroup, httpd chan config.HTTPStatus) { 249 | defer wait.Done() 250 | for url := range httpd { 251 | err := file_download.DownloadFile(url.URL, c.config.Proxy) 252 | if err != nil { 253 | log.Info("file download error", err) 254 | // 将URL保存到文件 255 | file, err := os.OpenFile(config.LogFileName, os.O_WRONLY|os.O_APPEND, 0644) 256 | if err != nil { 257 | log.Warn(err) 258 | continue 259 | } 260 | _, err = file.WriteString(url.ContentType + " " + url.Size + " " + url.URL + "\n") 261 | if err != nil { 262 | file.Close() 263 | log.Warn(err) 264 | continue 265 | } 266 | file.Close() 267 | } 268 | } 269 | } 270 | 271 | func (c *core) domain_path(urlstr string) map[string]bool { 272 | domain_paths := make(map[string]bool, 0) 273 | if !isDomain(urlstr) { 274 | return domain_paths 275 | } 276 | parse, err := url2.Parse(urlstr) 277 | if err != nil { 278 | return domain_paths 279 | } 280 | if strings.Contains(parse.Host, ":") { 281 | parse.Host = strings.Split(parse.Host, ":")[0] 282 | } 283 | domain, err := publicsuffix.Domain(parse.Host) 284 | if err != nil { 285 | return domain_paths 286 | } 287 | parse.Host = strings.ReplaceAll(parse.Host, domain, "") 288 | labels := publicsuffix.Labels(parse.Host) 289 | for i := 0; i < len(labels); i++ { 290 | labels[i] = strings.Trim(labels[i], " \r\n\t") 291 | if labels[i] == "" { 292 | continue 293 | } 294 | domain_paths[labels[i]] = true 295 | if !strings.Contains(labels[i], "-") { 296 | continue 297 | } 298 | subword := strings.Split(labels[i], "-") 299 | for j := 0; j < len(subword); j++ { 300 | subword[j] = strings.Trim(subword[j], " \r\n\t") 301 | if subword[j] == "" { 302 | continue 303 | } 304 | domain_paths[subword[j]] = true 305 | } 306 | } 307 | return domain_paths 308 | } 309 | 310 | func isDomain(str string) bool { 311 | if matched, _ := regexp.MatchString("\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}", str); matched { 312 | host := strings.ReplaceAll(strings.ReplaceAll(str, "http://", ""), "https://", "") 313 | if strings.Contains(host, "/") { 314 | host = strings.Split(host, "/")[0] 315 | } 316 | if strings.Contains(host, ":") { 317 | host = strings.Split(host, ":")[0] 318 | } 319 | _, _, err := parseip.ParseIP(host) 320 | if err != nil { 321 | return true 322 | } 323 | return false 324 | } 325 | return true 326 | } 327 | -------------------------------------------------------------------------------- /internal/core/listen.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "bytes" 5 | "crypto/rand" 6 | "crypto/rsa" 7 | "crypto/sha1" 8 | "crypto/tls" 9 | "crypto/x509" 10 | "crypto/x509/pkix" 11 | "encoding/pem" 12 | "fmt" 13 | "github.com/bufsnake/blueming/config" 14 | "github.com/bufsnake/blueming/pkg/log" 15 | "github.com/bufsnake/blueming/pkg/parseip" 16 | "github.com/google/martian" 17 | log2 "github.com/google/martian/log" 18 | "github.com/google/martian/mitm" 19 | "github.com/weppos/publicsuffix-go/publicsuffix" 20 | "io/ioutil" 21 | "math/big" 22 | "net" 23 | "net/http" 24 | "net/url" 25 | "os" 26 | "os/signal" 27 | "strings" 28 | "time" 29 | ) 30 | 31 | type passive struct { 32 | conf config.Config 33 | } 34 | 35 | func NewPassive(conf_ config.Config) passive { 36 | return passive{conf: conf_} 37 | } 38 | 39 | // REF: https://github.com/google/martian/blob/master/cmd/proxy/main.go 40 | func (c *passive) Start() error { 41 | file, err := ioutil.ReadFile(c.conf.Urlfile) 42 | if err != nil { 43 | return err 44 | } 45 | urls := make([]string, 0) 46 | split := strings.Split(string(file), "\n") 47 | for i := 0; i < len(split); i++ { 48 | trim := strings.Trim(split[i], "\r") 49 | if trim == "" { 50 | continue 51 | } 52 | if strings.HasPrefix(trim, "http://") || strings.HasPrefix(trim, "https://") { 53 | parse, err := url.Parse(trim) 54 | if err != nil { 55 | log.Warn(err) 56 | continue 57 | } 58 | trim = parse.Host 59 | } 60 | if strings.Contains(trim, ":") { 61 | trim = strings.Split(trim, ":")[0] 62 | } 63 | // IP 解析 64 | _, _, err = parseip.ParseIP(trim) 65 | if err != nil { 66 | domain, err := publicsuffix.Domain(trim) 67 | if err != nil { 68 | log.Warn(err) 69 | continue 70 | } 71 | urls = append(urls, domain) 72 | continue 73 | } 74 | urls = append(urls, trim) 75 | } 76 | log.Info("number of assets that can be scanned", len(urls)) 77 | // 启动代理 // 建立请求队列 // 筛选过滤HTTP链接 // 进行漏洞扫描 78 | log2.SetLevel(-1) 79 | martian.Init() 80 | p := martian.NewProxy() 81 | defer p.Close() 82 | l, err := net.Listen("tcp", c.conf.Listen) 83 | if err != nil { 84 | log.Fatal(err) 85 | } 86 | tr := &http.Transport{ 87 | Dial: (&net.Dialer{ 88 | Timeout: 60 * time.Second, 89 | KeepAlive: 60 * time.Second, 90 | }).Dial, 91 | TLSHandshakeTimeout: 60 * time.Second, 92 | ExpectContinueTimeout: time.Second, 93 | TLSClientConfig: &tls.Config{ 94 | InsecureSkipVerify: true, 95 | }, 96 | } 97 | p.SetRoundTripper(tr) 98 | 99 | var x509c *x509.Certificate 100 | var priv interface{} 101 | var raw []byte 102 | _, err = ioutil.ReadFile(c.conf.Cert) 103 | if err != nil && strings.HasSuffix(err.Error(), "no such file or directory") { 104 | x509c, priv, raw, err = NewAuthority("blueming", "localhost", 365*24*time.Hour) 105 | if err != nil { 106 | log.Fatal(err) 107 | } 108 | certOut, _ := os.Create("./ca.crt") 109 | err = pem.Encode(certOut, &pem.Block{Type: "CERTIFICATE", Bytes: raw}) 110 | err = certOut.Close() 111 | 112 | priv_ := &rsa.PrivateKey{} 113 | switch priv.(type) { 114 | case *rsa.PrivateKey: 115 | priv_ = priv.(*rsa.PrivateKey) 116 | } 117 | keyOut, _ := os.Create("./ca.key") 118 | err = pem.Encode(keyOut, &pem.Block{Type: "RSA PRIVATE KEY", Bytes: x509.MarshalPKCS1PrivateKey(priv_)}) 119 | err = keyOut.Close() 120 | log.Info("generate certificate success in current dir") 121 | } else if c.conf.Cert != "" && c.conf.Key != "" { 122 | tlsc, err := tls.LoadX509KeyPair(c.conf.Cert, c.conf.Key) 123 | if err != nil { 124 | log.Fatal(err) 125 | } 126 | priv = tlsc.PrivateKey 127 | 128 | x509c, err = x509.ParseCertificate(tlsc.Certificate[0]) 129 | if err != nil { 130 | log.Fatal(err) 131 | } 132 | } 133 | log.Info("loading cert from", c.conf.Cert, "and", c.conf.Key) 134 | log.Info(fmt.Sprintf("martian: starting proxy on %s", l.Addr().String())) 135 | 136 | var mitm_config *mitm.Config 137 | mitm_config, err = mitm.NewConfig(x509c, priv) 138 | if err != nil { 139 | log.Fatal(err) 140 | } 141 | mitm_config.SkipTLSVerify(false) 142 | p.SetMITM(mitm_config) 143 | 144 | // 设置下级代理 145 | if c.conf.Proxy != "" { 146 | var url_proxy *url.URL 147 | url_proxy, err = url.Parse(c.conf.Proxy) 148 | if err != nil { 149 | log.Fatal(err) 150 | } 151 | p.SetDownstreamProxy(url_proxy) 152 | } 153 | 154 | urlstrs := make(chan string, 1000000) 155 | m := modify{urlstrs: urlstrs} 156 | p.SetRequestModifier(&m) 157 | 158 | go func() { 159 | err = p.Serve(l) 160 | if err != nil { 161 | log.Fatal(err) 162 | } 163 | }() 164 | urlstr_ := make(map[string]bool) 165 | urlstrc := make(chan string, 1000) 166 | for i := 0; i < c.conf.Thread; i++ { 167 | go func() { 168 | // 获取链接并进行扫描 169 | for urlstr := range urlstrc { 170 | flag := false 171 | for _, host := range urls { 172 | if strings.Contains(urlstr, host) { 173 | flag = true 174 | break 175 | } 176 | } 177 | if !flag { 178 | continue 179 | } 180 | newCore := NewCore([]string{urlstr}, c.conf) 181 | newCore.Core() 182 | } 183 | }() 184 | } 185 | 186 | for urlstr := range urlstrs { 187 | urlstr = strings.ReplaceAll(urlstr, " ", "") 188 | urlstrs_, err := c.getUrlLayerDirectory(urlstr) 189 | if err != nil { 190 | log.Warn(err) 191 | continue 192 | } 193 | for i := 0; i < len(urlstrs_); i++ { 194 | temp := strings.Trim(urlstrs_[i], "/") + "/" 195 | if _, ok := urlstr_[temp]; !ok { 196 | urlstr_[temp] = true 197 | urlstrc <- temp 198 | } 199 | } 200 | } 201 | 202 | sigc := make(chan os.Signal, 1) 203 | signal.Notify(sigc, os.Interrupt) 204 | <-sigc 205 | log.Fatal("martian: shutting down") 206 | return nil 207 | } 208 | 209 | type modify struct { 210 | urlstrs chan string 211 | } 212 | 213 | func (v *modify) ModifyRequest(req *http.Request) error { 214 | if strings.ToUpper(req.Method) == "OPTIONS" || strings.ToUpper(req.Method) == "CONNECT" { 215 | return nil 216 | } 217 | v.urlstrs <- req.URL.String() 218 | return nil 219 | } 220 | 221 | func NewAuthority(name, organization string, validity time.Duration) (x509c *x509.Certificate, priv *rsa.PrivateKey, raw []byte, err error) { 222 | priv, err = rsa.GenerateKey(rand.Reader, 2048) 223 | if err != nil { 224 | return nil, nil, nil, err 225 | } 226 | pub := priv.Public() 227 | 228 | // Subject Key Identifier support for end entity certificate. 229 | // https://www.ietf.org/rfc/rfc3280.txt (section 4.2.1.2) 230 | pkixpub, err := x509.MarshalPKIXPublicKey(pub) 231 | if err != nil { 232 | return nil, nil, nil, err 233 | } 234 | h := sha1.New() 235 | h.Write(pkixpub) 236 | keyID := h.Sum(nil) 237 | 238 | // TODO: keep a map of used serial numbers to avoid potentially reusing a 239 | // serial multiple times. 240 | serial, err := rand.Int(rand.Reader, big.NewInt(0).SetBytes(bytes.Repeat([]byte{255}, 20))) 241 | if err != nil { 242 | return nil, nil, nil, err 243 | } 244 | 245 | tmpl := &x509.Certificate{ 246 | SerialNumber: serial, 247 | Subject: pkix.Name{ 248 | CommonName: name, 249 | Organization: []string{organization}, 250 | }, 251 | SubjectKeyId: keyID, 252 | KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign, 253 | ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageServerAuth}, 254 | BasicConstraintsValid: true, 255 | NotBefore: time.Now().Add(-validity), 256 | NotAfter: time.Now().Add(validity), 257 | DNSNames: []string{name}, 258 | IsCA: true, 259 | } 260 | 261 | raw, err = x509.CreateCertificate(rand.Reader, tmpl, tmpl, pub, priv) 262 | if err != nil { 263 | return nil, nil, nil, err 264 | } 265 | 266 | x509c, err = x509.ParseCertificate(raw) 267 | if err != nil { 268 | return nil, nil, nil, err 269 | } 270 | 271 | return x509c, priv, raw, nil 272 | } 273 | -------------------------------------------------------------------------------- /internal/core/utils.go: -------------------------------------------------------------------------------- 1 | package core 2 | 3 | import ( 4 | "net/url" 5 | "strings" 6 | ) 7 | 8 | // 解析发送的URL,获取二级、三级、四级目录 9 | func (c *passive) getUrlLayerDirectory(urlstr string) (ret []string, err error) { 10 | parse, err := url.Parse(urlstr) 11 | if err != nil { 12 | return nil, err 13 | } 14 | url_ := parse.Scheme + "://" + parse.Host + "/" 15 | path := strings.Split(parse.Path, "/") 16 | for i := 0; i < len(path); i++ { 17 | if path[i] == "" { 18 | continue 19 | } 20 | if strings.Contains(path[i], ".") && i == len(path)-1 { 21 | continue 22 | } 23 | url_c := concat(path, url_, i) 24 | if strings.Trim(url_c, "/") == strings.Trim(url_, "/") || strings.Trim(url_c, "/") == strings.Trim(urlstr, "/") { 25 | continue 26 | } 27 | ret = append(ret, url_c) 28 | } 29 | if !strings.Contains(urlstr, "?") && !strings.Contains(urlstr, ".") { 30 | if !strings.HasSuffix(urlstr, "/") { 31 | urlstr = urlstr + "/" 32 | } 33 | } 34 | ret = append(ret, urlstr) 35 | ret = append(ret, url_) 36 | return ret, nil 37 | } 38 | 39 | func concat(path []string, urlstr string, index int) string { 40 | urlstr = strings.Trim(urlstr, "/") 41 | for i := 0; i <= index; i++ { 42 | urlstr += strings.Trim(path[i], "/") + "/" 43 | } 44 | return urlstr 45 | } 46 | 47 | // 解析获取HOST,不包含端口/包含端口 48 | // RET: HOST,PATH 49 | func (c *passive) getUrlHostAndPath(urlstr string, contain_port bool) (host string, path string, err error) { 50 | parse, err := url.Parse(urlstr) 51 | if err != nil { 52 | return "", "", err 53 | } 54 | if parse.RawQuery != "" { 55 | parse.Path = parse.Path + "?" + parse.RawQuery 56 | } 57 | if !contain_port && strings.Contains(parse.Host, ":") { 58 | split := strings.Split(parse.Host, ":") 59 | if len(split) == 2 { 60 | return split[0], parse.Path, nil 61 | } 62 | } 63 | return parse.Host, parse.Path, nil 64 | } 65 | -------------------------------------------------------------------------------- /pkg/file-download/main.go: -------------------------------------------------------------------------------- 1 | package file_download 2 | 3 | import ( 4 | "crypto/tls" 5 | "github.com/bufsnake/blueming/pkg/useragent" 6 | "io" 7 | "net/http" 8 | url2 "net/url" 9 | "os" 10 | "strings" 11 | "time" 12 | ) 13 | 14 | func DownloadFile(url string, proxyx string) error { 15 | client := &http.Client{ 16 | Timeout: 1 * time.Hour, 17 | CheckRedirect: func(req *http.Request, via []*http.Request) error { 18 | return http.ErrUseLastResponse 19 | }, 20 | } 21 | transport := &http.Transport{ 22 | DisableKeepAlives: true, 23 | TLSClientConfig: &tls.Config{ 24 | InsecureSkipVerify: true, 25 | }, 26 | } 27 | if proxyx != "" { 28 | proxy, err := url2.Parse(proxyx) 29 | if err != nil { 30 | return err 31 | } 32 | transport.Proxy = http.ProxyURL(proxy) 33 | client.Transport = transport 34 | } else { 35 | client.Transport = transport 36 | } 37 | req, err := http.NewRequest(http.MethodGet, url, nil) 38 | if err != nil { 39 | return err 40 | } 41 | req.Header.Add("Accept", "*/*") 42 | req.Header.Add("Referer", "http://www.baidu.com") 43 | req.Header.Add("Connection", "close") 44 | req.Header.Add("Cache-Control", "no-cache") 45 | req.Header.Add("User-Agent", useragent.RandomUserAgent()) 46 | do, err := client.Do(req) 47 | if err != nil { 48 | return err 49 | } 50 | defer do.Body.Close() 51 | temp_file := strings.ReplaceAll(url, ":", ".") 52 | temp_file = strings.ReplaceAll(temp_file, "/", ".") 53 | temp_file = strings.ReplaceAll(temp_file, "..", ".") 54 | temp_file = strings.ReplaceAll(temp_file, "..", ".") 55 | temp_file = strings.ReplaceAll(temp_file, "..", ".") 56 | out, err := os.Create("output/" + temp_file) 57 | if err != nil { 58 | return err 59 | } 60 | defer out.Close() 61 | _, err = io.Copy(out, do.Body) 62 | if err != nil { 63 | return err 64 | } 65 | return nil 66 | } 67 | -------------------------------------------------------------------------------- /pkg/general-file-name/main.go: -------------------------------------------------------------------------------- 1 | package general_file_name 2 | 3 | import ( 4 | "github.com/bufsnake/blueming/pkg/log" 5 | "github.com/weppos/publicsuffix-go/publicsuffix" 6 | "net/url" 7 | "regexp" 8 | "strings" 9 | ) 10 | 11 | type general_file_name struct { 12 | url string 13 | backupuri []string 14 | } 15 | 16 | var ret = []string{} 17 | var wordlist = []string{} 18 | 19 | func InitGeneral(wordlists []string) int { 20 | prefix := []string{"index", "site", "db", "archive", "auth", "website", "backup", "test", "sql", "2016", "com", "dump", "master", "sales", "1", "2013", "members", "wwwroot", "clients", "back", "php", "localhost", "local", "127.0.0.1", "2019", "joomla", "wp", "html", "home", "tar", "vb", "database", "2012", "2020", "engine", "error_log", "mysql", "2018", "my", "new", "wordpress", "user", "2015", "customers", "dat", "media", "2014", "users", "2011", "2021", "old", "code", "jsp", "js", "store", "www", "2017", "web", "orders", "admin", "forum", "aspx", "data", "2010", "backups", "files", "bin"} 21 | suffix := []string{".zip", ".rar", ".tar.gz", ".tgz", ".tar.bz2", ".tar", ".jar", ".war", ".7z", ".bak", ".sql"} 22 | 23 | for i := 0; i < len(prefix); i++ { 24 | for j := 0; j < len(suffix); j++ { 25 | ret = append(ret, "/"+prefix[i]+suffix[j]) 26 | } 27 | } 28 | wordlist = wordlists 29 | if len(wordlist) != 0 { 30 | return len(wordlist) 31 | } 32 | return len(ret) 33 | } 34 | 35 | func NewGenURL(url string) (*general_file_name, error) { 36 | return &general_file_name{backupuri: ret, url: strings.TrimRight(url, "/")}, nil 37 | } 38 | 39 | func (g *general_file_name) GetDirURI(index int) string { 40 | return g.url + "/" + strings.TrimLeft(wordlist[index], "/") 41 | } 42 | 43 | func (g *general_file_name) GetBackupURI(index int) string { 44 | return g.url + g.backupuri[index] 45 | } 46 | 47 | func (g *general_file_name) GetBackupExtURI() *[]string { 48 | rets := make([]string, 0) 49 | // *** 属于拓展 URI 每个URL不同 单独进行获取 50 | prefix := []string{} 51 | suffix := []string{".zip", ".rar", ".tar.gz", ".tgz", ".tar.bz2", ".tar", ".jar", ".war", ".7z", ".bak", ".sql"} 52 | // 去掉域名 www. 前缀 添加到prefix 53 | // 获取域名根域,添加到prefix 54 | // 获取IP,添加到prefix 55 | 56 | // 获取host 57 | parse, err := url.Parse(g.url) 58 | if err != nil { 59 | log.Warn(err) 60 | return nil 61 | } 62 | parse.Host = strings.TrimLeft(parse.Host, "www") 63 | parse.Host = strings.TrimLeft(parse.Host, ".") 64 | if strings.Contains(parse.Host, ":") { 65 | parse.Host = strings.Split(parse.Host, ":")[0] 66 | } 67 | prefix = append(prefix, parse.Host) 68 | if isdomain(g.url) { // 域名 - 获取根域 69 | domain, err := publicsuffix.Domain(parse.Host) 70 | if err != nil { 71 | log.Warn(err) 72 | return nil 73 | } 74 | exist := false 75 | for _, vv := range prefix { 76 | if vv == domain { 77 | exist = true 78 | } 79 | } 80 | if !exist { 81 | prefix = append(prefix, domain) 82 | } 83 | } 84 | for i := 0; i < len(prefix); i++ { 85 | for j := 0; j < len(suffix); j++ { 86 | rets = append(rets, g.url+"/"+prefix[i]+suffix[j]) 87 | } 88 | } 89 | return &rets 90 | } 91 | 92 | func isdomain(str string) bool { 93 | if matched, _ := regexp.MatchString("\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}", str); matched { 94 | return false 95 | } 96 | return true 97 | } 98 | -------------------------------------------------------------------------------- /pkg/http-request/main.go: -------------------------------------------------------------------------------- 1 | package http_request 2 | 3 | import ( 4 | "crypto/tls" 5 | "fmt" 6 | "github.com/bufsnake/blueming/pkg/useragent" 7 | "io" 8 | "io/ioutil" 9 | "mime" 10 | "net/http" 11 | "net/url" 12 | "time" 13 | ) 14 | 15 | func HTTPRequest(urlstr, proxyx string, timeout int) (status int, contenttype, size string, body string, err error) { 16 | cli := &http.Client{ 17 | Timeout: time.Duration(timeout) * time.Second, 18 | CheckRedirect: func(req *http.Request, via []*http.Request) error { 19 | return http.ErrUseLastResponse 20 | }, 21 | } 22 | transport := http.Transport{ 23 | DisableKeepAlives: true, 24 | TLSClientConfig: &tls.Config{ 25 | InsecureSkipVerify: true, 26 | }, 27 | } 28 | if proxyx != "" { 29 | transport.Proxy = func(request *http.Request) (*url.URL, error) { 30 | return url.Parse(proxyx) 31 | } 32 | } 33 | cli.Transport = &transport 34 | req, err := http.NewRequest(http.MethodGet, urlstr, nil) 35 | if err != nil { 36 | return 0, "", "0B", "", err 37 | } 38 | req.Header.Add("Accept", "*/*") 39 | req.Header.Add("Referer", "https://www.baidu.com/") 40 | req.Header.Add("Connection", "close") 41 | req.Header.Add("Cache-Control", "no-cache") 42 | req.Header.Add("User-Agent", useragent.RandomUserAgent()) 43 | res, err := cli.Do(req) 44 | if err != nil { 45 | return 0, "", "0B", "", err 46 | } 47 | defer res.Body.Close() 48 | if res.StatusCode == 101 { 49 | return 0, "", "0B", "", err 50 | } 51 | resbody := make([]byte, 0) 52 | resbody, err = ioutil.ReadAll(io.LimitReader(res.Body, 1024*1024*2)) 53 | if err != nil { 54 | return 0, "", "0B", "", err 55 | } 56 | content_length := float64(res.ContentLength) 57 | if content_length < 1 { 58 | content_length = float64(len(resbody)) 59 | } 60 | SIZE := []string{"B", "K", "M", "G", "T"} 61 | i := 0 62 | for { 63 | if content_length < 1024 { 64 | break 65 | } 66 | content_length = content_length / 1024.0 67 | i++ 68 | } 69 | length := "" 70 | if i > len(SIZE) { 71 | length = fmt.Sprintf("%0.1fX", content_length) 72 | } else { 73 | length = fmt.Sprintf("%0.1f%s", content_length, SIZE[i]) 74 | } 75 | contenttype, _, err = mime.ParseMediaType(res.Header.Get("Content-Type")) 76 | if err != nil { 77 | contenttype = res.Header.Get("Content-Type") 78 | } 79 | return res.StatusCode, contenttype, length, string(resbody), nil 80 | } 81 | -------------------------------------------------------------------------------- /pkg/log/log.go: -------------------------------------------------------------------------------- 1 | package log 2 | 3 | import ( 4 | "fmt" 5 | . "github.com/logrusorgru/aurora" 6 | "os" 7 | "runtime" 8 | "strconv" 9 | "strings" 10 | "time" 11 | ) 12 | 13 | var level int = 3 14 | 15 | const ( 16 | TRACE = "trace" 17 | DEBUG = "debug" 18 | INFO = "info" 19 | WARN = "warn" 20 | FATAL = "fatal" 21 | ) 22 | 23 | var levels = map[string]int{ 24 | "trace": 1, 25 | "debug": 2, 26 | "info": 3, 27 | "warn": 4, 28 | "fatal": 5, 29 | } 30 | 31 | func SetLevel(a string) { 32 | level = levels[a] 33 | } 34 | 35 | func Trace(a ...interface{}) { 36 | if level > 1 { 37 | return 38 | } 39 | _, file, line, ok := runtime.Caller(1) 40 | if ok { 41 | split := strings.SplitN(file, "blueming", 2) 42 | if len(split) == 2 { 43 | file = split[1][1:] + ":" + strconv.Itoa(line) 44 | } 45 | } 46 | caller := file 47 | pr := make([]interface{}, 0) 48 | pr = []interface{}{"[" + BrightBlack("TRAC").String() + "]", time.Now().Format("01-02 15:04:05"), BrightCyan(caller).String()} 49 | pr = append(pr, a...) 50 | fmt.Println(pr...) 51 | } 52 | 53 | func Debug(a ...interface{}) { 54 | if level > 2 { 55 | return 56 | } 57 | _, file, line, ok := runtime.Caller(1) 58 | if ok { 59 | split := strings.SplitN(file, "blueming", 2) 60 | if len(split) == 2 { 61 | file = split[1][1:] + ":" + strconv.Itoa(line) 62 | } 63 | } 64 | caller := file 65 | pr := make([]interface{}, 0) 66 | pr = []interface{}{"[" + BrightMagenta("DBUG").String() + "]", time.Now().Format("01-02 15:04:05"), BrightCyan(caller).String()} 67 | pr = append(pr, a...) 68 | fmt.Println(pr...) 69 | } 70 | 71 | func Info(a ...interface{}) { 72 | if level > 3 { 73 | return 74 | } 75 | _, file, line, ok := runtime.Caller(1) 76 | if ok { 77 | split := strings.SplitN(file, "blueming", 2) 78 | if len(split) == 2 { 79 | file = split[1][1:] + ":" + strconv.Itoa(line) 80 | } 81 | } 82 | caller := file 83 | pr := make([]interface{}, 0) 84 | pr = []interface{}{"[" + BrightBlue("INFO").String() + "]", time.Now().Format("01-02 15:04:05"), BrightCyan(caller).String()} 85 | pr = append(pr, a...) 86 | fmt.Println(pr...) 87 | } 88 | 89 | func Warn(a ...interface{}) { 90 | if level > 4 { 91 | return 92 | } 93 | _, file, line, ok := runtime.Caller(1) 94 | if ok { 95 | split := strings.SplitN(file, "blueming", 2) 96 | if len(split) == 2 { 97 | file = split[1][1:] + ":" + strconv.Itoa(line) 98 | } 99 | } 100 | caller := file 101 | pr := make([]interface{}, 0) 102 | pr = []interface{}{"[" + BrightYellow("WARN").String() + "]", time.Now().Format("01-02 15:04:05"), BrightCyan(caller).String()} 103 | pr = append(pr, a...) 104 | fmt.Println(pr...) 105 | } 106 | 107 | func Fatal(a ...interface{}) { 108 | if level > 5 { 109 | return 110 | } 111 | _, file, line, ok := runtime.Caller(1) 112 | if ok { 113 | split := strings.SplitN(file, "blueming", 2) 114 | if len(split) == 2 { 115 | file = split[1][1:] + ":" + strconv.Itoa(line) 116 | } 117 | } 118 | caller := file 119 | pr := make([]interface{}, 0) 120 | pr = []interface{}{"[" + BrightRed("FATA").String() + "]", time.Now().Format("01-02 15:04:05"), BrightCyan(caller).String()} 121 | pr = append(pr, a...) 122 | fmt.Println(pr...) 123 | os.Exit(1) 124 | } 125 | -------------------------------------------------------------------------------- /pkg/parseip/main.go: -------------------------------------------------------------------------------- 1 | package parseip 2 | 3 | import ( 4 | "errors" 5 | "fmt" 6 | "net" 7 | "strconv" 8 | "strings" 9 | ) 10 | 11 | // 支持常见的ip格式 12 | // 192.168.113.159 13 | // 192.168.113.159-254 14 | // 192.168.113.159-192.168.113.254 15 | // 192.168.113.0/24 16 | // 191.168.113.159-192.168.114.254 17 | // 192.167.113.159-192.168.114.254 18 | // 192.168.113.159-192.168.114.254 19 | func ParseIP(ip string) (startx uint32, endx uint32, err error) { 20 | if strings.Contains(ip, "-") { 21 | if len(strings.Split(ip, "-")[1]) <= 3 { 22 | return multipleip(ip) 23 | } else { 24 | return multipleip2(ip) 25 | } 26 | } else if strings.Contains(ip, "/") { 27 | return multipleip3(ip) 28 | } else { 29 | return singleip(ip) 30 | } 31 | } 32 | 33 | // 192.168.113.159 34 | func singleip(ip string) (startx uint32, endx uint32, err error) { 35 | for _, val := range strings.Split(ip, ".") { 36 | ips, err := strconv.Atoi(val) 37 | if err != nil { 38 | return 0, 0, errors.New(ip + " " + err.Error() + " ip parse error") 39 | } 40 | if ips > 255 { 41 | return 0, 0, errors.New(ip + " ip parse error") 42 | } 43 | } 44 | startx, err = ip2UInt32(ip) 45 | if err != nil { 46 | return 0, 0, err 47 | } 48 | endx, err = ip2UInt32(ip) 49 | if err != nil { 50 | return 0, 0, err 51 | } 52 | return startx, endx, nil 53 | } 54 | 55 | // 192.168.113.159-255 56 | func multipleip(ips string) (startx uint32, endx uint32, err error) { 57 | host := strings.Split(ips, "-") 58 | ip := host[0] 59 | if len(strings.Split(ip, ".")) != 4 { 60 | return 0, 0, errors.New("multipleip error " + ips) 61 | } 62 | start, err := strconv.Atoi(strings.Split(ip, ".")[3]) 63 | if err != nil { 64 | return 0, 0, errors.New(ips + " " + err.Error() + " ip parse error") 65 | } 66 | end, err := strconv.Atoi(host[1]) 67 | if err != nil { 68 | return 0, 0, errors.New(ips + " " + err.Error() + " ip parse error") 69 | } 70 | if start > end { 71 | return 0, 0, errors.New(ips + " ip parse error") 72 | } 73 | if start < 0 { 74 | start = 0 75 | } 76 | if end > 255 { 77 | end = 255 78 | } 79 | temp := strings.Split(ip, ".") 80 | start_t, err := ip2UInt32(temp[0] + "." + temp[1] + "." + temp[2] + "." + strconv.Itoa(start)) 81 | if err != nil { 82 | return 0, 0, err 83 | } 84 | end_t, err := ip2UInt32(temp[0] + "." + temp[1] + "." + temp[2] + "." + strconv.Itoa(end)) 85 | if err != nil { 86 | return 0, 0, err 87 | } 88 | return start_t, end_t, nil 89 | } 90 | 91 | // 192.168.113.159-192.168.113.254 92 | func multipleip2(ips string) (startx uint32, endx uint32, err error) { 93 | start, err := ip2UInt32(strings.Split(ips, "-")[0]) 94 | if err != nil { 95 | return 0, 0, err 96 | } 97 | end, err := ip2UInt32(strings.Split(ips, "-")[1]) 98 | if err != nil { 99 | return 0, 0, err 100 | } 101 | if start > end { 102 | return 0, 0, errors.New(ips + " error") 103 | } 104 | return start, end, nil 105 | } 106 | 107 | // 192.168.113.0/24 108 | func multipleip3(ips string) (startx uint32, endx uint32, err error) { 109 | host := strings.Split(ips, "/")[0] 110 | mask, err := strconv.Atoi(strings.Split(ips, "/")[1]) 111 | if err != nil { 112 | return 0, 0, errors.New(ips + " " + err.Error() + " ip parse error") 113 | } 114 | if len(strings.Split(host, ".")) != 4 { 115 | return 0, 0, errors.New(ips + " ip parse error") 116 | } 117 | a, err := strconv.Atoi(strings.Split(host, ".")[0]) 118 | b, err := strconv.Atoi(strings.Split(host, ".")[1]) 119 | c, err := strconv.Atoi(strings.Split(host, ".")[2]) 120 | d, err := strconv.Atoi(strings.Split(host, ".")[3]) 121 | if err != nil { 122 | return 0, 0, errors.New(ips + " ip parse error") 123 | } 124 | ipbin := fmt.Sprintf("%08s", strconv.FormatInt(int64(a), 2)) + 125 | fmt.Sprintf("%08s", strconv.FormatInt(int64(b), 2)) + 126 | fmt.Sprintf("%08s", strconv.FormatInt(int64(c), 2)) + 127 | fmt.Sprintf("%08s", strconv.FormatInt(int64(d), 2)) 128 | 129 | start := ipbin[:mask] 130 | end := ipbin[:mask] 131 | for i := 0; i < len(ipbin)-mask; i++ { 132 | start += "0" 133 | end += "1" 134 | } 135 | start1, err := strconv.ParseUint(start, 2, 32) 136 | if err != nil { 137 | return 0, 0, errors.New(ips + " ip parse error: " + err.Error()) 138 | } 139 | end2, err := strconv.ParseUint(end, 2, 32) 140 | if err != nil { 141 | return 0, 0, errors.New(ips + " ip parse error: " + err.Error()) 142 | } 143 | return uint32(start1), uint32(end2), nil 144 | } 145 | 146 | func ip2UInt32(ipnr string) (uint32, error) { 147 | bits := strings.Split(ipnr, ".") 148 | if len(bits) != 4 { 149 | return 0, errors.New("ip2Uint32 error " + ipnr) 150 | } 151 | 152 | b0, err := strconv.Atoi(bits[0]) 153 | if err != nil { 154 | return 0, err 155 | } 156 | b1, err := strconv.Atoi(bits[1]) 157 | if err != nil { 158 | return 0, err 159 | } 160 | b2, err := strconv.Atoi(bits[2]) 161 | if err != nil { 162 | return 0, err 163 | } 164 | b3, err := strconv.Atoi(bits[3]) 165 | if err != nil { 166 | return 0, err 167 | } 168 | 169 | var sum uint32 170 | sum += uint32(b0) << 24 171 | sum += uint32(b1) << 16 172 | sum += uint32(b2) << 8 173 | sum += uint32(b3) 174 | return sum, nil 175 | } 176 | 177 | func UInt32ToIP(intIP uint32) string { 178 | var bytes [4]byte 179 | bytes[0] = byte(intIP & 0xFF) 180 | bytes[1] = byte((intIP >> 8) & 0xFF) 181 | bytes[2] = byte((intIP >> 16) & 0xFF) 182 | bytes[3] = byte((intIP >> 24) & 0xFF) 183 | 184 | return net.IPv4(bytes[3], bytes[2], bytes[1], bytes[0]).String() 185 | } 186 | -------------------------------------------------------------------------------- /pkg/useragent/main.go: -------------------------------------------------------------------------------- 1 | package useragent 2 | 3 | import ( 4 | "fmt" 5 | "math/rand" 6 | ) 7 | 8 | var uaGens = []func() string{ 9 | genFirefoxUA, 10 | genChromeUA, 11 | genOperaUA, 12 | } 13 | 14 | var uaGensMobile = []func() string{ 15 | genMobileUcwebUA, 16 | genMobileNexus10UA, 17 | } 18 | 19 | func RandomUserAgent() string { 20 | return uaGens[rand.Intn(len(uaGens))]() 21 | } 22 | 23 | func RandomMobileUserAgent() string { 24 | return uaGensMobile[rand.Intn(len(uaGensMobile))]() 25 | } 26 | 27 | var ffVersions = []float32{ 28 | 35.0, 29 | 40.0, 30 | 41.0, 31 | 44.0, 32 | 45.0, 33 | 48.0, 34 | 48.0, 35 | 49.0, 36 | 50.0, 37 | 52.0, 38 | 52.0, 39 | 53.0, 40 | 54.0, 41 | 56.0, 42 | 57.0, 43 | 57.0, 44 | 58.0, 45 | 58.0, 46 | 59.0, 47 | 6.0, 48 | 60.0, 49 | 61.0, 50 | 63.0, 51 | } 52 | 53 | var chromeVersions = []string{ 54 | "37.0.2062.124", 55 | "40.0.2214.93", 56 | "41.0.2228.0", 57 | "49.0.2623.112", 58 | "55.0.2883.87", 59 | "56.0.2924.87", 60 | "57.0.2987.133", 61 | "61.0.3163.100", 62 | "63.0.3239.132", 63 | "64.0.3282.0", 64 | "65.0.3325.146", 65 | "68.0.3440.106", 66 | "69.0.3497.100", 67 | "70.0.3538.102", 68 | "74.0.3729.169", 69 | } 70 | 71 | var operaVersions = []string{ 72 | "2.7.62 Version/11.00", 73 | "2.2.15 Version/10.10", 74 | "2.9.168 Version/11.50", 75 | "2.2.15 Version/10.00", 76 | "2.8.131 Version/11.11", 77 | "2.5.24 Version/10.54", 78 | } 79 | 80 | var ucwebVersions = []string{ 81 | "10.9.8.1006", 82 | "11.0.0.1016", 83 | "11.0.6.1040", 84 | "11.1.0.1041", 85 | "11.1.1.1091", 86 | "11.1.2.1113", 87 | "11.1.3.1128", 88 | "11.2.0.1125", 89 | "11.3.0.1130", 90 | "11.4.0.1180", 91 | "11.4.1.1138", 92 | "11.5.2.1188", 93 | } 94 | 95 | var androidVersions = []string{ 96 | "4.4.2", 97 | "4.4.4", 98 | "5.0", 99 | "5.0.1", 100 | "5.0.2", 101 | "5.1", 102 | "5.1.1", 103 | "5.1.2", 104 | "6.0", 105 | "6.0.1", 106 | "7.0", 107 | "7.1.1", 108 | "7.1.2", 109 | "8.0.0", 110 | "8.1.0", 111 | "9", 112 | } 113 | 114 | var ucwebDevices = []string{ 115 | "SM-C111", 116 | "SM-J727T1", 117 | "SM-J701F", 118 | "SM-J330G", 119 | "SM-N900", 120 | "DLI-TL20", 121 | "LG-X230", 122 | "AS-5433_Secret", 123 | "IdeaTabA1000-G", 124 | "GT-S5360", 125 | "HTC_Desire_601_dual_sim", 126 | "ALCATEL_ONE_TOUCH_7025D", 127 | "SM-N910H", 128 | "Micromax_Q4101", 129 | "SM-G600FY", 130 | } 131 | 132 | var nexus10Builds = []string{ 133 | "JOP40D", 134 | "JOP40F", 135 | "JVP15I", 136 | "JVP15P", 137 | "JWR66Y", 138 | "KTU84P", 139 | "LMY47D", 140 | "LMY47V", 141 | "LMY48M", 142 | "LMY48T", 143 | "LMY48X", 144 | "LMY49F", 145 | "LMY49H", 146 | "LRX21P", 147 | "NOF27C", 148 | } 149 | 150 | var nexus10Safari = []string{ 151 | "534.30", 152 | "535.19", 153 | "537.22", 154 | "537.31", 155 | "537.36", 156 | "600.1.4", 157 | } 158 | 159 | var osStrings = []string{ 160 | "Macintosh; Intel Mac OS X 10_10", 161 | "Windows NT 10.0", 162 | "Windows NT 5.1", 163 | "Windows NT 6.1; WOW64", 164 | "Windows NT 6.1; Win64; x64", 165 | "X11; Linux x86_64", 166 | } 167 | 168 | func genFirefoxUA() string { 169 | version := ffVersions[rand.Intn(len(ffVersions))] 170 | os := osStrings[rand.Intn(len(osStrings))] 171 | return fmt.Sprintf("Mozilla/5.0 (%s; rv:%.1f) Gecko/20100101 Firefox/%.1f", os, version, version) 172 | } 173 | 174 | func genChromeUA() string { 175 | version := chromeVersions[rand.Intn(len(chromeVersions))] 176 | os := osStrings[rand.Intn(len(osStrings))] 177 | return fmt.Sprintf("Mozilla/5.0 (%s) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/537.36", os, version) 178 | } 179 | 180 | func genOperaUA() string { 181 | version := operaVersions[rand.Intn(len(operaVersions))] 182 | os := osStrings[rand.Intn(len(osStrings))] 183 | return fmt.Sprintf("Opera/9.80 (%s; U; en) Presto/%s", os, version) 184 | } 185 | 186 | func genMobileUcwebUA() string { 187 | device := ucwebDevices[rand.Intn(len(ucwebDevices))] 188 | version := ucwebVersions[rand.Intn(len(ucwebVersions))] 189 | android := androidVersions[rand.Intn(len(androidVersions))] 190 | return fmt.Sprintf("UCWEB/2.0 (Java; U; MIDP-2.0; Nokia203/20.37) U2/1.0.0 UCMini/%s (SpeedMode; Proxy; Android %s; %s ) U2/1.0.0 Mobile", version, android, device) 191 | } 192 | 193 | func genMobileNexus10UA() string { 194 | build := nexus10Builds[rand.Intn(len(nexus10Builds))] 195 | android := androidVersions[rand.Intn(len(androidVersions))] 196 | chrome := chromeVersions[rand.Intn(len(chromeVersions))] 197 | safari := nexus10Safari[rand.Intn(len(nexus10Safari))] 198 | return fmt.Sprintf("Mozilla/5.0 (Linux; Android %s; Nexus 10 Build/%s) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/%s Safari/%s", android, build, chrome, safari) 199 | } 200 | --------------------------------------------------------------------------------