├── images └── gowitness-logo.png ├── web ├── assets │ ├── img │ │ └── blank.png │ ├── js │ │ └── tabler.min.js │ └── css │ │ └── demo.min.css └── templates │ ├── submit.html │ ├── footer.html │ ├── table.html │ ├── header.html │ ├── navigation.html │ ├── detail.html │ └── gallery.html ├── lib ├── constants.go ├── options.go ├── pagination.go ├── helpers.go └── processor.go ├── cmd ├── report.go ├── version.go ├── single.go ├── report_list.go ├── server.go ├── root.go ├── file.go ├── merge.go ├── nmap.go ├── scan.go └── report_serve.go ├── main.go ├── .gitignore ├── Dockerfile ├── .github ├── ISSUE_TEMPLATE │ ├── feature_request.md │ └── bug_report.md └── workflows │ ├── docker.yml │ └── codeql-analysis.yml ├── go.mod ├── storage ├── db.go └── models.go ├── README.md ├── chrome ├── helpers.go └── chrome.go ├── Makefile ├── LICENSE └── go.sum /images/gowitness-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/gowitness/master/images/gowitness-logo.png -------------------------------------------------------------------------------- /web/assets/img/blank.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Ice3man543/gowitness/master/web/assets/img/blank.png -------------------------------------------------------------------------------- /lib/constants.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | // Contains port collections for scanning 4 | const ( 5 | PortsSmall = "80,443,8080,8443" 6 | PortsMedium = PortsSmall + ",81,90,591,3000,3128,8000,8008,8081,8082,8834,8888,7015,8800,8990,10000" 7 | PortsLarge = PortsMedium + ",300,2082,2087,2095,4243,4993,5000,7000,7171,7396,7474,8090,8280,8880,9443" 8 | ) 9 | -------------------------------------------------------------------------------- /cmd/report.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "github.com/spf13/cobra" 5 | ) 6 | 7 | // reportCmd represents the report command 8 | var reportCmd = &cobra.Command{ 9 | Use: "report", 10 | Short: "Work with gowitness reports", 11 | Long: `Work with gowitness reports`, 12 | } 13 | 14 | func init() { 15 | rootCmd.AddCommand(reportCmd) 16 | } 17 | -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "embed" 5 | 6 | "github.com/sensepost/gowitness/cmd" 7 | ) 8 | 9 | var ( 10 | //go:embed web/assets/* 11 | assets embed.FS 12 | //go:embed web/templates/* 13 | templates embed.FS 14 | ) 15 | 16 | func main() { 17 | cmd.Assets = assets 18 | cmd.Templates = templates 19 | 20 | cmd.Execute() 21 | } 22 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.dll 4 | *.so 5 | *.dylib 6 | *.sqlite3 7 | 8 | # dep vendor/ 9 | vendor/ 10 | 11 | # build artifacts 12 | build/ 13 | 14 | # screenshots dir 15 | screenshots/ 16 | 17 | # Test binary, build with `go test -c` 18 | *.test 19 | 20 | # Output of the go coverage tool, specifically when used with LiteIDE 21 | *.out 22 | 23 | # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 24 | .glide/ 25 | .DS_Store 26 | -------------------------------------------------------------------------------- /web/assets/js/tabler.min.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * Tabler v1.0.0-alpha.7 (https://tabler.io) 3 | * Copyright 2018-2020 codecalm 4 | * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE) 5 | */'use strict';(function(){var a=[].slice.call(document.querySelectorAll("[data-toggle=\"tooltip\"]"));a.map(function(a){return new bootstrap.Tooltip(a,{delay:{show:50,hide:50},html:!0,placement:"auto"})});var b=[].slice.call(document.querySelectorAll("[data-toggle=\"popover\"]"));b.map(function(a){return new bootstrap.Popover(a,{delay:{show:50,hide:50},html:!0,placement:"auto"})})})(); 6 | //# sourceMappingURL=tabler.min.js.map 7 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1 as build 2 | 3 | LABEL maintainer="Leon Jacobs " 4 | 5 | COPY . /src 6 | 7 | WORKDIR /src 8 | RUN make docker 9 | 10 | # final image 11 | # https://github.com/chromedp/docker-headless-shell#using-as-a-base-image 12 | FROM chromedp/headless-shell:latest 13 | 14 | RUN export DEBIAN_FRONTEND=noninteractive \ 15 | && apt-get update \ 16 | && apt-get install -y --no-install-recommends \ 17 | dumb-init \ 18 | && apt-get clean \ 19 | && rm -rf /var/lib/apt/lists/* 20 | 21 | COPY --from=build /src/gowitness /usr/local/bin 22 | 23 | VOLUME ["/data"] 24 | WORKDIR /data 25 | 26 | ENTRYPOINT ["dumb-init", "--"] 27 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem? Please describe.** 11 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen. 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered. 18 | 19 | **Additional context** 20 | Add any other context or screenshots about the feature request here. 21 | -------------------------------------------------------------------------------- /cmd/version.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/spf13/cobra" 7 | ) 8 | 9 | var ( 10 | version = "2.3.6" 11 | 12 | gitHash string 13 | goVer string 14 | ) 15 | 16 | // versionCmd represents the version command 17 | var versionCmd = &cobra.Command{ 18 | Use: "version", 19 | Short: "Prints the version of gowitness", 20 | Run: func(cmd *cobra.Command, args []string) { 21 | if gitHash == "" { 22 | gitHash = "dev" 23 | } 24 | 25 | if goVer == "" { 26 | goVer = "dev" 27 | } 28 | 29 | fmt.Printf("gowitness: %s\n", version) 30 | fmt.Printf("\ngit hash: %s\ngo version: %s\n", gitHash, goVer) 31 | }, 32 | } 33 | 34 | func init() { 35 | rootCmd.AddCommand(versionCmd) 36 | } 37 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the bug** 11 | A clear and concise description of what the bug is. 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Version Information:** 27 | - OS: [e.g. iOS] 28 | - gowitness: [e.g. 1.3.3] 29 | 30 | **Additional context** 31 | Add any other context about the problem here. 32 | -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- 1 | module github.com/sensepost/gowitness 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/chromedp/cdproto v0.0.0-20210728214956-1fab41c4e0b7 7 | github.com/chromedp/chromedp v0.7.4 8 | github.com/corona10/goimagehash v1.0.3 9 | github.com/h2non/filetype v1.1.1 10 | github.com/mattn/go-runewidth v0.0.13 // indirect 11 | github.com/mattn/go-sqlite3 v1.14.8 // indirect 12 | github.com/olekukonko/tablewriter v0.0.5 13 | github.com/projectdiscovery/wappalyzergo v0.0.7 14 | github.com/remeh/sizedwaitgroup v1.0.0 15 | github.com/rs/zerolog v1.23.0 16 | github.com/spf13/cobra v1.2.1 17 | github.com/tomsteele/go-nmap v0.0.0-20191202052157-3507e0b03523 18 | golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d 19 | golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 // indirect 20 | gorm.io/driver/sqlite v1.1.4 21 | gorm.io/gorm v1.21.12 22 | ) 23 | -------------------------------------------------------------------------------- /storage/db.go: -------------------------------------------------------------------------------- 1 | package storage 2 | 3 | import ( 4 | "gorm.io/driver/sqlite" 5 | "gorm.io/gorm" 6 | "gorm.io/gorm/logger" 7 | ) 8 | 9 | // Db is the SQLite3 db handler ype 10 | type Db struct { 11 | Path string 12 | Disabled bool 13 | SkipMigration bool 14 | } 15 | 16 | // NewDb sets up a new DB 17 | func NewDb() *Db { 18 | return &Db{} 19 | } 20 | 21 | // Get gets a db handle 22 | func (db *Db) Get() (*gorm.DB, error) { 23 | 24 | if db.Disabled { 25 | return nil, nil 26 | } 27 | 28 | conn, err := gorm.Open(sqlite.Open(db.Path+"?cache=shared"), &gorm.Config{ 29 | Logger: logger.Default.LogMode(logger.Error), 30 | }) 31 | if err != nil { 32 | return nil, err 33 | } 34 | 35 | if !db.SkipMigration { 36 | conn.AutoMigrate(&URL{}, &Header{}, &TLS{}, &TLSCertificate{}, &TLSCertificateDNSName{}, &Technologie{}) 37 | } 38 | 39 | return conn, nil 40 | } 41 | 42 | // OrderPerception orders by perception hash if enabled 43 | func OrderPerception(enabled bool) func(db *gorm.DB) *gorm.DB { 44 | return func(db *gorm.DB) *gorm.DB { 45 | if enabled { 46 | return db.Order("perception_hash desc") 47 | } 48 | return db 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /web/templates/submit.html: -------------------------------------------------------------------------------- 1 | {{ define "submit" }} 2 | {{ template "header" }} 3 | 4 | 13 |
14 | 15 |
16 |
17 |
18 |
19 | 20 |
21 | 22 |
23 |
24 | The target URL will have a screenshot taken and other HTTP related information stored in the DB. 25 |
26 |
27 | 30 |
31 |
32 |
33 | 34 |
35 | {{ template "footer" }} 36 | {{ end }} -------------------------------------------------------------------------------- /web/templates/footer.html: -------------------------------------------------------------------------------- 1 | {{ define "footer" }} 2 | 3 | 4 | 20 | 21 | 22 | 23 | 24 | 25 | 28 | 29 | 30 | {{ end }} -------------------------------------------------------------------------------- /web/templates/table.html: -------------------------------------------------------------------------------- 1 | {{ define "table" }} 2 | {{ template "header" }} 3 | 4 | 13 |
14 |
15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | {{ range .}} 27 | 28 | 31 | 32 | 35 | 38 | 39 | {{ end }} 40 | 41 |
URLCodeTitle
29 | {{ .URL }} 30 | {{ .ResponseCode }} 33 | {{ .Title }} 34 | 36 | Detail 37 |
42 |
43 |
44 |
45 | {{ template "footer" }} 46 | {{ end }} -------------------------------------------------------------------------------- /web/templates/header.html: -------------------------------------------------------------------------------- 1 | {{ define "header" }} 2 | 3 | 4 | 5 | 6 | 7 | 8 | 🔍 gowitness - a golang screenshotting tool by @leonjza 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 27 | 28 | 29 |
30 | 31 | {{ template "navigation" }} 32 | 33 |
34 |
35 | 36 | {{ end }} 37 | -------------------------------------------------------------------------------- /lib/options.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/rs/zerolog" 7 | ) 8 | 9 | // Options contains all of the gowitness options 10 | type Options struct { 11 | // Logging 12 | Logger *zerolog.Logger 13 | Debug bool 14 | DisableLogging bool 15 | 16 | // Screenshots 17 | ScreenshotPath string 18 | 19 | // Generic options 20 | Threads int 21 | NoHTTPS bool 22 | NoHTTP bool 23 | ServerAddr string 24 | 25 | // Server command 26 | AllowInsecureURIs bool 27 | 28 | // File command 29 | File string 30 | 31 | // Scan command 32 | ScanCidr []string 33 | ScanCidrFile string 34 | ScanRandom bool 35 | ScanPorts string 36 | PortsSmall bool 37 | PortsMedium bool 38 | PortsLarge bool 39 | 40 | // Single 41 | ScreenshotFileName string 42 | 43 | // Nmap 44 | NmapFile string 45 | NmapService []string 46 | NmapServiceContains string 47 | NmapPorts []int 48 | NmapScanHostanmes bool 49 | NmapOpenPortsOnly bool 50 | 51 | // Report List 52 | ReportJSON bool 53 | ReportCSV bool 54 | PerceptionSort bool 55 | 56 | // Merge 57 | MergeDBs []string 58 | MergeSourcePath string 59 | MergeOutputDB string 60 | } 61 | 62 | // NewOptions returns a new options struct 63 | func NewOptions() *Options { 64 | return &Options{} 65 | } 66 | 67 | // PrepareScreenshotPath prepares the path to save screenshots in 68 | func (opt *Options) PrepareScreenshotPath() error { 69 | 70 | if _, err := os.Stat(opt.ScreenshotPath); os.IsNotExist(err) { 71 | if err = os.Mkdir(opt.ScreenshotPath, 0750); err != nil { 72 | return err 73 | } 74 | } 75 | 76 | return nil 77 | } 78 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 |
3 | 🔍 gowitness 4 |
5 |
6 |

7 | 8 |

A golang, web screenshot utility using Chrome Headless.

9 |

10 | @leonjza 11 | Go Report Card 12 | Docker build & Push 13 |

14 |
15 | 16 | ## introduction 17 | 18 | `gowitness` is a website screenshot utility written in Golang, that uses Chrome Headless to generate screenshots of web interfaces using the command line, with a handy report viewer to process results. Both Linux and macOS is supported, with Windows support mostly working. 19 | 20 | Inspiration for `gowitness` comes from [Eyewitness](https://github.com/ChrisTruncer/EyeWitness). If you are looking for something with lots of extra features, be sure to check it out along with these [other](https://github.com/afxdub/http-screenshot-html) [projects](https://github.com/breenmachine/httpscreenshot). 21 | 22 | ## documentation 23 | 24 | For installation information and other documentation, please refer to the wiki [here](https://github.com/sensepost/gowitness/wiki). 25 | 26 | ## license 27 | 28 | `gowitness` is licensed under a [GNU General Public v3 License](https://www.gnu.org/licenses/gpl-3.0.en.html). Permissions beyond the scope of this license may be available at . 29 | -------------------------------------------------------------------------------- /chrome/helpers.go: -------------------------------------------------------------------------------- 1 | package chrome 2 | 3 | import ( 4 | "io" 5 | "io/ioutil" 6 | "net/http" 7 | "strings" 8 | 9 | wappalyzer "github.com/projectdiscovery/wappalyzergo" 10 | "golang.org/x/net/html" 11 | ) 12 | 13 | func isTitleElement(n *html.Node) bool { 14 | return n.Type == html.ElementNode && n.Data == "title" 15 | } 16 | 17 | func traverse(n *html.Node) (string, bool) { 18 | 19 | if isTitleElement(n) { 20 | 21 | // handle empty node 22 | if n.FirstChild == nil { 23 | return "(empty)", true 24 | } 25 | 26 | return n.FirstChild.Data, true 27 | } 28 | 29 | for c := n.FirstChild; c != nil; c = c.NextSibling { 30 | result, ok := traverse(c) 31 | if ok { 32 | return strings.TrimSpace(result), ok 33 | } 34 | } 35 | 36 | return "", false 37 | } 38 | 39 | // GetHTMLTitle will parse the Title from an HTML document 40 | // ref: 41 | // https://siongui.github.io/2016/05/10/go-get-html-title-via-net-html/ 42 | func GetHTMLTitle(r io.Reader) (string, bool) { 43 | doc, err := html.Parse(r) 44 | if err != nil { 45 | return "", false 46 | } 47 | 48 | return traverse(doc) 49 | } 50 | 51 | // GetTechnologies uses wapalyzer signatures to return an array 52 | // of technologies that are in use by the remote site. 53 | func GetTechnologies(resp *http.Response) ([]string, error) { 54 | 55 | var technologies []string 56 | 57 | data, err := ioutil.ReadAll(resp.Body) 58 | if err != nil { 59 | return technologies, err 60 | } 61 | 62 | wappalyzerClient, err := wappalyzer.New() 63 | if err != nil { 64 | return technologies, err 65 | } 66 | 67 | fingerprints := wappalyzerClient.Fingerprint(resp.Header, data) 68 | 69 | for match := range fingerprints { 70 | technologies = append(technologies, match) 71 | } 72 | 73 | return technologies, nil 74 | } 75 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | # ref: https://vic.demuzere.be/articles/golang-makefile-crosscompile/ 2 | 3 | G := $(shell go version | cut -d' ' -f 3,4 | sed 's/ /_/g') 4 | V := $(shell git rev-parse --short HEAD) 5 | APPVER := $(shell grep 'version =' cmd/version.go | cut -d \" -f2) 6 | PWD := $(shell pwd) 7 | LD_FLAGS := -ldflags="-s -w -X=github.com/sensepost/gowitness/cmd.gitHash=$(V) -X=github.com/sensepost/gowitness/cmd.goVer=$(G)" 8 | BIN_DIR := build 9 | DOCKER_GO_VER := 1.16.4# https://github.com/elastic/golang-crossbuild 10 | DOCKER_RELEASE_BUILD_CMD := docker run --rm -it -v $(PWD):/go/src/github.com/sensepost/gowitness \ 11 | -w /go/src/github.com/sensepost/gowitness -e CGO_ENABLED=1 \ 12 | docker.elastic.co/beats-dev/golang-crossbuild:$(DOCKER_GO_VER) 13 | 14 | export CGO_ENABLED=1 15 | 16 | default: clean darwin linux windows integrity 17 | 18 | clean: 19 | $(RM) $(BIN_DIR)/gowitness* 20 | go clean -x 21 | 22 | install: 23 | go install 24 | 25 | darwin: 26 | GOOS=darwin GOARCH=amd64 go build $(LD_FLAGS) -o '$(BIN_DIR)/gowitness-$(APPVER)-darwin-amd64' 27 | darwin-arm: 28 | GOOS=darwin GOARCH=arm64 go build $(LD_FLAGS) -o '$(BIN_DIR)/gowitness-$(APPVER)-darwin-arm64' 29 | linux: 30 | GOOS=linux GOARCH=amd64 go build $(LD_FLAGS) -o '$(BIN_DIR)/gowitness-$(APPVER)-linux-amd64' 31 | windows: 32 | GOOS=windows GOARCH=amd64 go build $(LD_FLAGS) -o '$(BIN_DIR)/gowitness-$(APPVER)-windows-amd64.exe' 33 | 34 | # release 35 | release: clean darwin-release linux-release windows-release integrity 36 | 37 | darwin-release: 38 | $(DOCKER_RELEASE_BUILD_CMD)-darwin-debian10 --build-cmd "make darwin" -p "darwin/amd64" 39 | $(DOCKER_RELEASE_BUILD_CMD)-darwin-arm64-debian10 --build-cmd "make darwin-arm" -p "darwin/arm64" 40 | linux-release: 41 | $(DOCKER_RELEASE_BUILD_CMD)-main --build-cmd "make linux" -p "linux/amd64" 42 | windows-release: 43 | $(DOCKER_RELEASE_BUILD_CMD)-main --build-cmd "make windows" -p "windows/amd64" 44 | 45 | docker: 46 | go build $(LD_FLAGS) -o gowitness 47 | docker-image: 48 | docker build -t gowitness:local . 49 | 50 | integrity: 51 | cd $(BIN_DIR) && shasum * 52 | -------------------------------------------------------------------------------- /cmd/single.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "net/url" 5 | 6 | "github.com/sensepost/gowitness/lib" 7 | "github.com/spf13/cobra" 8 | ) 9 | 10 | // singleCmd represents the single command 11 | var singleCmd = &cobra.Command{ 12 | Use: "single [URL]", 13 | Short: "Take a screenshot of a single URL", 14 | Args: cobra.ExactArgs(1), 15 | Long: `Takes a screenshot of a single given URL and saves it to a file. 16 | 17 | If no --output is provided, a filename for the screenshot will 18 | be automatically generated based on the given URL. If an absolute 19 | output file path is given, the --destination parameter will be 20 | ignored.`, 21 | Example: `$ gowitness single https://twitter.com 22 | $ gowitness single --destination ~/tweeps_dir https://twitter.com 23 | $ gowitness --disable-db single --destination ~/tweeps_dir https://twitter.com 24 | $ gowitness single -o /screenshots/twitter.png https://twitter.com 25 | $ gowitness single --destination ~/screenshots -o twitter.png https://twitter.com`, 26 | Run: func(cmd *cobra.Command, args []string) { 27 | log := options.Logger 28 | 29 | // prepare target 30 | url, err := url.Parse(args[0]) 31 | if err != nil { 32 | log.Fatal().Err(err).Msg("failed to parse target uri") 33 | } 34 | 35 | // prepare db 36 | db, err := db.Get() 37 | if err != nil { 38 | log.Fatal().Err(err).Msg("failed to get a db handle") 39 | } 40 | 41 | if err = options.PrepareScreenshotPath(); err != nil { 42 | log.Fatal().Err(err).Msg("failed to prepare the screenshot path") 43 | } 44 | 45 | p := &lib.Processor{ 46 | Logger: log, 47 | Db: db, 48 | Chrome: chrm, 49 | URL: url, 50 | ScreenshotPath: options.ScreenshotPath, 51 | ScreenshotFileName: options.ScreenshotFileName, 52 | } 53 | 54 | if err := p.Gowitness(); err != nil { 55 | log.Debug().Err(err).Str("url", url.String()).Msg("failed to witness url") 56 | } 57 | }, 58 | } 59 | 60 | func init() { 61 | rootCmd.AddCommand(singleCmd) 62 | 63 | singleCmd.Flags().StringVarP(&options.ScreenshotFileName, "output", "o", "", "write the screenshot to this file") 64 | } 65 | -------------------------------------------------------------------------------- /.github/workflows/docker.yml: -------------------------------------------------------------------------------- 1 | name: Docker build & Push 2 | 3 | on: 4 | push: 5 | branches: [ master ] 6 | release: 7 | types: [ published ] 8 | workflow_dispatch: 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-latest 13 | steps: 14 | - uses: actions/checkout@v2 15 | 16 | - name: Get version 17 | id: get_version 18 | run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} 19 | 20 | - uses: mr-smithers-excellent/docker-build-push@v5 21 | name: Publish latest tag to Github Repo (only on master branch push) 22 | if: github.event_name == 'push' && github.ref == 'refs/heads/master' 23 | with: 24 | image: gowitness 25 | addLatest: true 26 | tags: latest 27 | registry: ghcr.io 28 | username: ${{ secrets.GHCR_USERNAME }} 29 | password: ${{ secrets.GHCR_TOKEN }} 30 | 31 | - uses: mr-smithers-excellent/docker-build-push@v5 32 | name: Publish latest and version tag to Github Repo (only on tag event) 33 | if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') 34 | with: 35 | image: gowitness 36 | addLatest: true 37 | tags: ${{ steps.get_version.outputs.VERSION }}, latest 38 | registry: ghcr.io 39 | username: ${{ secrets.GHCR_USERNAME }} 40 | password: ${{ secrets.GHCR_TOKEN }} 41 | 42 | - uses: mr-smithers-excellent/docker-build-push@v5 43 | name: Publish latest tag to Docker Repo (only on master branch push) 44 | if: github.event_name == 'push' && github.ref == 'refs/heads/master' 45 | with: 46 | image: leonjza/gowitness 47 | addLatest: true 48 | tags: latest 49 | registry: docker.io 50 | username: ${{ secrets.DOCKER_USERNAME }} 51 | password: ${{ secrets.DOCKER_PASSWORD }} 52 | 53 | - uses: mr-smithers-excellent/docker-build-push@v5 54 | name: Publish latest and version tag to Docker Repo (only on tag event) 55 | if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') 56 | with: 57 | image: leonjza/gowitness 58 | addLatest: true 59 | tags: ${{ steps.get_version.outputs.VERSION }}, latest 60 | registry: docker.io 61 | username: ${{ secrets.DOCKER_USERNAME }} 62 | password: ${{ secrets.DOCKER_PASSWORD }} 63 | -------------------------------------------------------------------------------- /cmd/report_list.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "encoding/csv" 5 | "fmt" 6 | "os" 7 | "strconv" 8 | 9 | "github.com/olekukonko/tablewriter" 10 | "github.com/sensepost/gowitness/storage" 11 | "github.com/spf13/cobra" 12 | ) 13 | 14 | // reportListCmd represents the reportList command 15 | var reportListCmd = &cobra.Command{ 16 | Use: "list", 17 | Short: "List entries in the gowitness database in various formats", 18 | Run: func(cmd *cobra.Command, args []string) { 19 | log := options.Logger 20 | 21 | db, err := db.Get() 22 | if err != nil { 23 | log.Fatal().Err(err).Msg("failed to get a db handle") 24 | } 25 | 26 | rows, err := db.Scopes(storage.OrderPerception(options.PerceptionSort)). 27 | Model(&storage.URL{}).Rows() 28 | if err != nil { 29 | log.Fatal().Err(err).Msg("failed to get rows") 30 | } 31 | defer rows.Close() 32 | 33 | var data []storage.URL 34 | for rows.Next() { 35 | url := &storage.URL{} 36 | db.ScanRows(rows, url) 37 | data = append(data, *url) 38 | } 39 | 40 | if options.ReportJSON { 41 | outputJSON(&data) 42 | return 43 | } 44 | 45 | if options.ReportCSV { 46 | outputCSV(&data) 47 | return 48 | } 49 | 50 | outputTable(&data) 51 | }, 52 | } 53 | 54 | func init() { 55 | reportCmd.AddCommand(reportListCmd) 56 | 57 | reportListCmd.Flags().BoolVarP(&options.ReportJSON, "json", "j", false, "output json") 58 | reportListCmd.Flags().BoolVarP(&options.ReportCSV, "csv", "c", false, "output csv") 59 | reportListCmd.Flags().BoolVarP(&options.PerceptionSort, "sort", "S", false, "sort by image perceptions") 60 | } 61 | 62 | // outputJSON prints the report in JSON format 63 | func outputJSON(d *[]storage.URL) { 64 | 65 | for _, l := range *d { 66 | bytes, _ := l.MarshallJSON() 67 | fmt.Print(string(bytes)) 68 | } 69 | } 70 | 71 | // outputCSV prints the report in CSV format 72 | func outputCSV(d *[]storage.URL) { 73 | 74 | wr := csv.NewWriter(os.Stdout) 75 | for _, l := range *d { 76 | wr.Write(l.MarshallCSV()) 77 | } 78 | wr.Flush() 79 | } 80 | 81 | // outputTable prints the output to stdout in table format 82 | func outputTable(d *[]storage.URL) { 83 | 84 | table := tablewriter.NewWriter(os.Stdout) 85 | table.SetAutoFormatHeaders(false) 86 | table.SetAutoWrapText(false) 87 | table.SetHeader([]string{"final url", "status", "title"}) 88 | for _, l := range *d { 89 | table.Append([]string{l.FinalURL, strconv.Itoa(l.ResponseCode), l.Title}) 90 | } 91 | table.Render() 92 | } 93 | -------------------------------------------------------------------------------- /web/assets/css/demo.min.css: -------------------------------------------------------------------------------- 1 | /*! 2 | * Tabler (v1.0.0-alpha.7) 3 | * Copyright 2018-2020 The Tabler Authors 4 | * Copyright 2018-2020 codecalm 5 | * Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE) 6 | */.highlight pre,pre.highlight{max-height:30rem;margin:1.5rem 0;overflow:auto;font-size:.75rem;background:#354052;border-radius:3px;color:#fff}.highlight pre::-webkit-scrollbar,pre.highlight::-webkit-scrollbar{width:6px;height:6px;-webkit-transition:.3s background;transition:.3s background}.highlight pre::-webkit-scrollbar-thumb,pre.highlight::-webkit-scrollbar-thumb{border-radius:5px;background:0 0}.highlight pre::-webkit-scrollbar-corner,pre.highlight::-webkit-scrollbar-corner{background:0 0}.highlight pre:hover::-webkit-scrollbar-thumb,pre.highlight:hover::-webkit-scrollbar-thumb{background:#cbcfd6;background:#5d6675}.highlight .c,.highlight .c1{color:#a0aec0}.highlight .na,.highlight .nl,.highlight .nx,.language-css .highlight .na,.language-scss .highlight .na{color:#ffe484}.highlight .dl,.highlight .mh,.highlight .s,.highlight .s1,.highlight .s2{color:#b5f4a5}.highlight .language-js .nb,.highlight .mi,.highlight .nc,.highlight .nd,.highlight .nt{color:#93ddfd}.highlight .language-html .nt,.highlight .nb{color:#ff8383}.highlight .k,.highlight .kd,.highlight .n,.highlight .nv{color:#d9a9ff}.example{padding:2rem;margin:2rem 0;border:1px solid rgba(110,117,130,.2);border-radius:3px 3px 0 0;position:relative;min-height:12rem;display:flex;align-items:center;overflow-x:auto}.example-centered{justify-content:center}.example-centered .example-content{flex:0 auto}.example-content{font-size:.875rem;flex:1;max-width:100%}.example-bg{background:#f5f7fb}.example-code{margin:2rem 0;border-top:none}.example-code pre{margin:0;border-radius:0 0 3px 3px}.example+.example-code{margin-top:-2rem}.example-column{margin:0 auto}.example-column>.card:last-of-type{margin-bottom:0}.example-column-1{max-width:20rem}.example-column-2{max-width:40rem}.example-modal-backdrop{background:#354052;opacity:.24;position:absolute;width:100%;left:0;top:0;height:100%;border-radius:2px 2px 0 0}@media not print{.theme-dark .example-code{border:1px solid rgba(110,117,130,.2);border-top:none}}@media not print and (prefers-color-scheme:dark){.theme-dark-auto .example-code{border:1px solid rgba(110,117,130,.2);border-top:none}}.card-sponsor{background:#dbe7f6 no-repeat center/100% 100%;border-color:#548ed2;min-height:316px}body.no-transitions *{transition:none!important}.toc-entry:before{content:'- '}.toc-entry ul{list-style:none;padding-left:1rem}.toc-entry a{color:#6e7582}.dropdown-menu-demo{display:inline-block;width:100%;position:relative;top:0;margin-bottom:1rem}.demo-icon-preview{position:-webkit-sticky;position:sticky;top:0}.demo-icon-preview svg{width:100%;height:auto;stroke-width:1.5;max-width:15rem;margin:0 auto;display:block} 7 | /*# sourceMappingURL=demo.min.css.map */ -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- 1 | # For most projects, this workflow file will not need changing; you simply need 2 | # to commit it to your repository. 3 | # 4 | # You may wish to alter this file to override the set of languages analyzed, 5 | # or to provide custom queries or build logic. 6 | name: "CodeQL" 7 | 8 | on: 9 | push: 10 | branches: [master] 11 | pull_request: 12 | # The branches below must be a subset of the branches above 13 | branches: [master] 14 | schedule: 15 | - cron: '0 18 * * 0' 16 | 17 | jobs: 18 | analyze: 19 | name: Analyze 20 | runs-on: ubuntu-latest 21 | 22 | strategy: 23 | fail-fast: false 24 | matrix: 25 | # Override automatic language detection by changing the below list 26 | # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python'] 27 | language: ['go'] 28 | # Learn more... 29 | # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection 30 | 31 | steps: 32 | - name: Checkout repository 33 | uses: actions/checkout@v2 34 | with: 35 | # We must fetch at least the immediate parents so that if this is 36 | # a pull request then we can checkout the head. 37 | fetch-depth: 2 38 | 39 | # If this run was triggered by a pull request event, then checkout 40 | # the head of the pull request instead of the merge commit. 41 | - run: git checkout HEAD^2 42 | if: ${{ github.event_name == 'pull_request' }} 43 | 44 | # Initializes the CodeQL tools for scanning. 45 | - name: Initialize CodeQL 46 | uses: github/codeql-action/init@v1 47 | with: 48 | languages: ${{ matrix.language }} 49 | # If you wish to specify custom queries, you can do so here or in a config file. 50 | # By default, queries listed here will override any specified in a config file. 51 | # Prefix the list here with "+" to use these queries and those in the config file. 52 | # queries: ./path/to/local/query, your-org/your-repo/queries@main 53 | 54 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). 55 | # If this step fails, then you should remove it and run the build manually (see below) 56 | - name: Autobuild 57 | uses: github/codeql-action/autobuild@v1 58 | 59 | # ℹ️ Command-line programs to run using the OS shell. 60 | # 📚 https://git.io/JvXDl 61 | 62 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines 63 | # and modify them (or add more) to build your code if your project 64 | # uses a compiled language 65 | 66 | #- run: | 67 | # make bootstrap 68 | # make release 69 | 70 | - name: Perform CodeQL Analysis 71 | uses: github/codeql-action/analyze@v1 72 | -------------------------------------------------------------------------------- /lib/pagination.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | import ( 4 | "math" 5 | 6 | "gorm.io/gorm" 7 | ) 8 | 9 | // PaginationPage is a sinlge, paginated page 10 | type PaginationPage struct { 11 | Count int64 12 | Pages int 13 | Records interface{} 14 | Offset int 15 | Range int 16 | Limit int 17 | Page int 18 | PrevPage int 19 | PrevPageRange []int 20 | NextPage int 21 | NextPageRange []int 22 | Ordered bool 23 | } 24 | 25 | // Filter describes a column filter 26 | type Filter struct { 27 | Column string 28 | Value string 29 | } 30 | 31 | // Pagination has options for a Page 32 | type Pagination struct { 33 | DB *gorm.DB 34 | CurrPage int 35 | Limit int 36 | OrderBy []string 37 | FilterBy []Filter 38 | } 39 | 40 | // Page pages a dataset 41 | func (p *Pagination) Page(data interface{}) (*PaginationPage, error) { 42 | 43 | var pagination PaginationPage 44 | var count int64 45 | var offset int 46 | 47 | db := p.DB 48 | 49 | if p.CurrPage < 1 { 50 | p.CurrPage = 1 51 | } 52 | if p.Limit == 0 { 53 | p.Limit = 21 54 | } 55 | if len(p.OrderBy) > 0 { 56 | for _, order := range p.OrderBy { 57 | db = db.Order(order) 58 | } 59 | pagination.Ordered = true 60 | } else { 61 | pagination.Ordered = false 62 | } 63 | 64 | if len(p.FilterBy) > 0 { 65 | for _, filter := range p.FilterBy { 66 | db = db.Where(filter.Column+" LIKE ?", "%"+filter.Value+"%") 67 | } 68 | } 69 | 70 | db.Model(data).Count(&count) 71 | 72 | if p.CurrPage == 1 { 73 | offset = 0 74 | } else { 75 | offset = (p.CurrPage - 1) * p.Limit 76 | } 77 | 78 | if err := db.Limit(p.Limit).Offset(offset).Preload("Technologies").Find(data).Error; err != nil { 79 | return nil, err 80 | } 81 | 82 | pagination.Count = count 83 | pagination.Records = data 84 | pagination.Page = p.CurrPage 85 | 86 | pagination.Offset = offset 87 | pagination.Limit = p.Limit 88 | pagination.Pages = int(math.Ceil(float64(count) / float64(p.Limit))) 89 | pagination.Range = pagination.Offset + pagination.Limit 90 | 91 | if p.CurrPage > 1 { 92 | pagination.PrevPage = p.CurrPage - 1 93 | } else { 94 | pagination.PrevPage = p.CurrPage 95 | } 96 | 97 | if p.CurrPage >= pagination.Pages { 98 | pagination.NextPage = p.CurrPage 99 | } else { 100 | pagination.NextPage = p.CurrPage + 1 101 | } 102 | 103 | pagination.PrevPageRange = makeSizedRange(1, pagination.NextPage-2, 5) 104 | pagination.NextPageRange = makeSizedRange(pagination.NextPage, pagination.Pages, 5) 105 | 106 | return &pagination, nil 107 | } 108 | 109 | func makeSizedRange(min, max, l int) []int { 110 | if min > max { 111 | return []int{} 112 | } 113 | 114 | a := make([]int, max-min+1) 115 | for i := range a { 116 | a[i] = min + i 117 | } 118 | 119 | return a 120 | } 121 | -------------------------------------------------------------------------------- /web/templates/navigation.html: -------------------------------------------------------------------------------- 1 | {{ define "navigation" }} 2 | <header class="navbar navbar-expand-md navbar-dark"> 3 | <div class="container-xl"> 4 | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbar-menu"> 5 | <span class="navbar-toggler-icon"></span> 6 | </button> 7 | <a href="." class="navbar-brand navbar-brand-autodark d-none-navbar-horizontal pr-0 pr-md-3"> 8 | 🔍 gowitness 9 | </a> 10 | <div class="collapse navbar-collapse" id="navbar-menu"> 11 | <div class="d-flex flex-column flex-md-row flex-fill align-items-stretch align-items-md-center"> 12 | <ul class="navbar-nav"> 13 | 14 | <li class="nav-item"> 15 | <a class="nav-link" href="/" > 16 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-md" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"></path><rect x="8" y="8" width="8" height="8" rx="1"></rect><line x1="3" y1="8" x2="4" y2="8"></line><line x1="3" y1="16" x2="4" y2="16"></line><line x1="8" y1="3" x2="8" y2="4"></line><line x1="16" y1="3" x2="16" y2="4"></line><line x1="20" y1="8" x2="21" y2="8"></line><line x1="20" y1="16" x2="21" y2="16"></line><line x1="8" y1="20" x2="8" y2="21"></line><line x1="16" y1="20" x2="16" y2="21"></line></svg> 17 | <span class="nav-link-title"> 18 | Gallery View 19 | </span> 20 | </a> 21 | </li> 22 | 23 | <li class="nav-item"> 24 | <a class="nav-link" href="/table" > 25 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-md" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"></path><line x1="4" y1="6" x2="9.5" y2="6"></line><line x1="4" y1="10" x2="9.5" y2="10"></line><line x1="4" y1="14" x2="9.5" y2="14"></line><line x1="4" y1="18" x2="9.5" y2="18"></line><line x1="14.5" y1="6" x2="20" y2="6"></line><line x1="14.5" y1="10" x2="20" y2="10"></line><line x1="14.5" y1="14" x2="20" y2="14"></line><line x1="14.5" y1="18" x2="20" y2="18"></line></svg> 26 | <span class="nav-link-title"> 27 | Table View 28 | </span> 29 | </a> 30 | </li> 31 | 32 | <li class="nav-item"> 33 | <a class="nav-link" href="/submit" > 34 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-md" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"></path><polyline points="13 3 13 10 19 10 11 21 11 14 5 14 13 3"></polyline></svg> 35 | <span class="nav-link-title"> 36 | Submit URL 37 | </span> 38 | </a> 39 | </li> 40 | 41 | </ul> 42 | </div> 43 | </div> 44 | </div> 45 | </header> 46 | {{ end }} 47 | -------------------------------------------------------------------------------- /lib/helpers.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | import ( 4 | "net" 5 | "net/url" 6 | "path/filepath" 7 | "regexp" 8 | "strconv" 9 | "strings" 10 | ) 11 | 12 | // ScreenshotPath determines a full path and file name for a screenshot image 13 | func ScreenshotPath(destination string, url *url.URL, path string) string { 14 | 15 | var fname, dst string 16 | if destination == "" { 17 | fname = SafeFileName(url.String()) 18 | dst = filepath.Join(path, fname) 19 | } else { 20 | fname = destination 21 | if filepath.IsAbs(fname) { 22 | dst = fname 23 | } else { 24 | dst = filepath.Join(path, fname) 25 | } 26 | } 27 | 28 | return dst 29 | } 30 | 31 | // SafeFileName return a safe string that can be used in file names 32 | func SafeFileName(str string) string { 33 | 34 | name := strings.ToLower(str) 35 | name = strings.Trim(name, " ") 36 | 37 | separators, err := regexp.Compile(`[ &_=+:/]`) 38 | if err == nil { 39 | name = separators.ReplaceAllString(name, "-") 40 | } 41 | 42 | legal, err := regexp.Compile(`[^[:alnum:]-.]`) 43 | if err == nil { 44 | name = legal.ReplaceAllString(name, "") 45 | } 46 | 47 | for strings.Contains(name, "--") { 48 | name = strings.Replace(name, "--", "-", -1) 49 | } 50 | 51 | return name + `.png` 52 | } 53 | 54 | // PortsFromString returns a slice of ports parsed from a string 55 | func PortsFromString(ports string) ([]int, error) { 56 | 57 | parsed := strings.Split(ports, ",") 58 | 59 | var m = make(map[int]bool) 60 | var r []int 61 | 62 | for _, port := range parsed { 63 | 64 | p, err := strconv.Atoi(port) 65 | if err != nil { 66 | continue 67 | } 68 | 69 | // uniq 70 | if m[p] { 71 | continue 72 | } 73 | 74 | r = append(r, p) 75 | m[p] = true 76 | } 77 | 78 | return r, nil 79 | } 80 | 81 | // HostsInCIDR returns the IP's from a provided CIDR 82 | func HostsInCIDR(cidr string) ([]string, error) { 83 | 84 | ip, ipnet, err := net.ParseCIDR(cidr) 85 | if err != nil { 86 | return nil, err 87 | } 88 | 89 | var ips []string 90 | for ip := ip.Mask(ipnet.Mask); ipnet.Contains(ip); inc(ip) { 91 | ips = append(ips, ip.String()) 92 | } 93 | 94 | if len(ips) > 1 { 95 | 96 | // remove network address and broadcast address 97 | return ips[1 : len(ips)-1], nil 98 | } 99 | 100 | // suppose this will only really happen with /32's 101 | return ips, nil 102 | } 103 | 104 | // helper method: https://play.golang.org/p/m8TNTtygK0 105 | func inc(ip net.IP) { 106 | 107 | for j := len(ip) - 1; j >= 0; j-- { 108 | ip[j]++ 109 | if ip[j] > 0 { 110 | break 111 | } 112 | } 113 | } 114 | 115 | // SliceContainsInt checks if a slice has an int 116 | func SliceContainsInt(s []int, e int) bool { 117 | for _, a := range s { 118 | if a == e { 119 | return true 120 | } 121 | } 122 | 123 | return false 124 | } 125 | 126 | // SliceContainsString checks if a slice has a string 127 | func SliceContainsString(s []string, e string) bool { 128 | for _, a := range s { 129 | if a == e { 130 | return true 131 | } 132 | } 133 | 134 | return false 135 | } 136 | -------------------------------------------------------------------------------- /cmd/server.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "net/http" 5 | "net/url" 6 | "strings" 7 | 8 | "github.com/spf13/cobra" 9 | ) 10 | 11 | // serverCmd represents the server command 12 | var serverCmd = &cobra.Command{ 13 | Use: "server", 14 | Short: "Starts a webservice that takes screenshots", 15 | Long: `Start a webservice that takes screenshots. 16 | 17 | The server starts its own webserver, and when invoked with the url query parameter, 18 | instructs the underlying Chrome instance to take a screenshot and return it as 19 | the HTTP response. 20 | 21 | NOTE: When changing the server address to something other than localhost, make 22 | sure that only authorised connections can be made to the server port. By default, 23 | access is restricted to localhost to reduce the risk of SSRF attacks against the 24 | host or hosting infrastructure (AWS/Azure/GCP, etc). Consider strict IP filtering 25 | or fronting this server with an authentication aware reverse proxy. 26 | 27 | Allowed URLs, by default, need to start with http:// or https://. If you need 28 | this restriction lifted, add the --allow-insecure-uri / -A flag. A word of 29 | warning though, that also means that someone may request a URL like file:///etc/passwd. 30 | 31 | Assuming the server is hosted on localhost, an HTTP GET request to 32 | take a screenshot of google.com would be: 33 | http://localhost:7171/?url=https://www.google.com`, 34 | Example: `$ gowitness server 35 | $ gowitness server --addr 0.0.0.0:8080`, 36 | Run: func(cmd *cobra.Command, args []string) { 37 | log := options.Logger 38 | 39 | if !strings.Contains(options.ServerAddr, "localhost") { 40 | log.Warn().Msg("exposing this server to other networks is dangerous! see the server command help for more information") 41 | } 42 | 43 | http.HandleFunc("/", handler) 44 | log.Info().Str("address", options.ServerAddr).Msg("server listening") 45 | if err := http.ListenAndServe(options.ServerAddr, nil); err != nil { 46 | log.Fatal().Err(err).Msg("webserver failed") 47 | } 48 | }, 49 | } 50 | 51 | func init() { 52 | rootCmd.AddCommand(serverCmd) 53 | 54 | serverCmd.Flags().StringVarP(&options.ServerAddr, "address", "a", "localhost:7171", "server listening address") 55 | serverCmd.Flags().BoolVarP(&options.AllowInsecureURIs, "allow-insecure-uri", "A", false, "allow uris that dont start with http(s)") 56 | } 57 | 58 | // handler is the HTTP handler for the web service this command exposes 59 | func handler(w http.ResponseWriter, r *http.Request) { 60 | rawURL := strings.TrimSpace(r.URL.Query().Get("url")) 61 | if rawURL == "" { 62 | http.Error(w, "url parameter missing. eg ?url=https://google.com", http.StatusNotAcceptable) 63 | return 64 | } 65 | 66 | url, err := url.Parse(rawURL) 67 | if err != nil { 68 | http.Error(w, err.Error(), http.StatusInternalServerError) 69 | return 70 | } 71 | 72 | if !options.AllowInsecureURIs { 73 | if !strings.HasPrefix(url.Scheme, "http") { 74 | http.Error(w, "only http(s) urls are accepted", http.StatusNotAcceptable) 75 | return 76 | } 77 | } 78 | 79 | buf, err := chrm.Screenshot(url) 80 | if err != nil { 81 | http.Error(w, err.Error(), http.StatusInternalServerError) 82 | return 83 | } 84 | 85 | w.Header().Set("Content-Type", "image/png") 86 | w.Write(buf) 87 | } 88 | -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "embed" 5 | "fmt" 6 | "os" 7 | 8 | "github.com/sensepost/gowitness/chrome" 9 | "github.com/sensepost/gowitness/lib" 10 | "github.com/sensepost/gowitness/storage" 11 | "github.com/spf13/cobra" 12 | 13 | "github.com/rs/zerolog" 14 | "github.com/rs/zerolog/log" 15 | ) 16 | 17 | var Assets embed.FS 18 | var Templates embed.FS 19 | 20 | var ( 21 | options = lib.NewOptions() 22 | chrm = chrome.NewChrome() 23 | db = storage.NewDb() 24 | ) 25 | 26 | // rootCmd represents the base command when called without any subcommands 27 | var rootCmd = &cobra.Command{ 28 | Use: "gowitness", 29 | Short: "A commandline web screenshot and information gathering tool by @leonjza", 30 | PersistentPreRun: func(cmd *cobra.Command, args []string) { 31 | 32 | // Setup the logger to use 33 | log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: "02 Jan 2006 15:04:05"}) 34 | if options.Debug { 35 | log.Logger = log.Logger.Level(zerolog.DebugLevel) 36 | log.Logger = log.With().Caller().Logger() 37 | log.Debug().Msg("debug logging enabed") 38 | } else { 39 | log.Logger = log.Logger.Level(zerolog.InfoLevel) 40 | } 41 | if options.DisableLogging { 42 | log.Logger = log.Logger.Level(zerolog.Disabled) 43 | } 44 | 45 | options.Logger = &log.Logger 46 | }, 47 | } 48 | 49 | // Execute adds all child commands to the root command and sets flags appropriately. 50 | // This is called by main.main(). It only needs to happen once to the rootCmd. 51 | func Execute() { 52 | if err := rootCmd.Execute(); err != nil { 53 | fmt.Println(err) 54 | os.Exit(1) 55 | } 56 | } 57 | 58 | func init() { 59 | // logging 60 | rootCmd.PersistentFlags().BoolVar(&options.Debug, "debug", false, "enable debug logging") 61 | rootCmd.PersistentFlags().BoolVar(&options.DisableLogging, "disable-logging", false, "disable all logging") 62 | // global 63 | rootCmd.PersistentFlags().BoolVar(&db.Disabled, "disable-db", false, "disable all database operations") 64 | rootCmd.PersistentFlags().StringVarP(&db.Path, "db-path", "D", "gowitness.sqlite3", "destination for the gowitness database") 65 | rootCmd.PersistentFlags().IntVarP(&chrm.ResolutionX, "resolution-x", "X", 1440, "screenshot resolution x") 66 | rootCmd.PersistentFlags().IntVarP(&chrm.ResolutionY, "resolution-y", "Y", 900, "screenshot resolution y") 67 | rootCmd.PersistentFlags().IntVar(&chrm.Delay, "delay", 0, "delay in seconds between navigation and screenshot") 68 | rootCmd.PersistentFlags().StringVar(&chrm.UserAgent, "user-agent", "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36", "user agent string to use") 69 | rootCmd.PersistentFlags().StringVarP(&options.ScreenshotPath, "screenshot-path", "P", "screenshots", "store path for screenshots (use . for pwd)") 70 | rootCmd.PersistentFlags().BoolVarP(&chrm.FullPage, "fullpage", "F", false, "take fullpage screenshots") 71 | rootCmd.PersistentFlags().Int64Var(&chrm.Timeout, "timeout", 10, "preflight check timeout") 72 | rootCmd.PersistentFlags().StringVarP(&chrm.ChromePath, "chrome-path", "", "", "path to chrome executable to use") 73 | rootCmd.PersistentFlags().StringVarP(&chrm.Proxy, "proxy", "p", "", "http/socks5 proxy to use. Use format proto://address:port") 74 | } 75 | -------------------------------------------------------------------------------- /storage/models.go: -------------------------------------------------------------------------------- 1 | package storage 2 | 3 | import ( 4 | "encoding/json" 5 | "strconv" 6 | 7 | "gorm.io/gorm" 8 | ) 9 | 10 | // URL contains information about a URL 11 | type URL struct { 12 | gorm.Model 13 | 14 | URL string 15 | FinalURL string 16 | ResponseCode int 17 | ResponseReason string 18 | Proto string 19 | ContentLength int64 20 | Title string 21 | Filename string 22 | PerceptionHash string 23 | 24 | Headers []Header 25 | TLS TLS 26 | Technologies []Technologie 27 | } 28 | 29 | // AddHeader adds a new header to a URL 30 | func (url *URL) AddHeader(key string, value string) { 31 | url.Headers = append(url.Headers, Header{ 32 | Key: key, 33 | Value: value, 34 | }) 35 | } 36 | 37 | // AddTechnlogies adds a new technologies to a URL 38 | func (url *URL) AddTechnologie(value string) { 39 | url.Technologies = append(url.Technologies, Technologie{ 40 | Value: value, 41 | }) 42 | } 43 | 44 | // MarshallCSV returns values as a slice 45 | func (url *URL) MarshallCSV() (res []string) { 46 | return []string{url.URL, 47 | url.FinalURL, 48 | strconv.Itoa(url.ResponseCode), 49 | url.ResponseReason, 50 | url.Proto, 51 | strconv.Itoa(int(url.ContentLength)), 52 | url.Title, 53 | url.Filename} 54 | } 55 | 56 | // MarshallJSON returns values as a slice 57 | func (url *URL) MarshallJSON() ([]byte, error) { 58 | var tmp struct { 59 | URL string `json:"url"` 60 | FinalURL string `json:"final_url"` 61 | ResponseCode int `json:"response_code"` 62 | ResponseReason string `json:"response_reason"` 63 | Proto string `json:"proto"` 64 | ContentLength int64 `json:"content_length"` 65 | Title string `json:"title"` 66 | Filename string `json:"file_name"` 67 | } 68 | 69 | tmp.URL = url.URL 70 | tmp.FinalURL = url.FinalURL 71 | tmp.ResponseCode = url.ResponseCode 72 | tmp.ResponseReason = url.ResponseReason 73 | tmp.Proto = url.Proto 74 | tmp.ContentLength = url.ContentLength 75 | tmp.Title = url.Title 76 | tmp.Filename = url.Filename 77 | 78 | return json.Marshal(&tmp) 79 | } 80 | 81 | // Header contains an HTTP header 82 | type Header struct { 83 | gorm.Model 84 | 85 | URLID uint 86 | Key string 87 | Value string 88 | } 89 | 90 | // Technologie contains a technologie 91 | type Technologie struct { 92 | gorm.Model 93 | 94 | URLID uint 95 | Value string 96 | } 97 | 98 | // TLS contains TLS information for a URL 99 | type TLS struct { 100 | gorm.Model 101 | 102 | URLID uint 103 | Version uint16 104 | ServerName string 105 | TLSCertificates []TLSCertificate 106 | } 107 | 108 | // TLSCertificate contain TLS Certificate information 109 | type TLSCertificate struct { 110 | gorm.Model 111 | 112 | TLSID uint 113 | Raw []byte 114 | DNSNames []TLSCertificateDNSName 115 | SubjectCommonName string 116 | IssuerCommonName string 117 | SignatureAlgorithm string 118 | PubkeyAlgorithm string 119 | } 120 | 121 | // AddDNSName adds a new DNS Name to a Certificate 122 | func (tlsCert *TLSCertificate) AddDNSName(name string) { 123 | tlsCert.DNSNames = append(tlsCert.DNSNames, TLSCertificateDNSName{Name: name}) 124 | } 125 | 126 | // TLSCertificateDNSName has DNS names for a TLS certificate 127 | type TLSCertificateDNSName struct { 128 | gorm.Model 129 | 130 | TLSCertificateID uint 131 | Name string 132 | } 133 | -------------------------------------------------------------------------------- /cmd/file.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "bufio" 5 | "net/url" 6 | "os" 7 | "strings" 8 | 9 | "github.com/remeh/sizedwaitgroup" 10 | "github.com/sensepost/gowitness/lib" 11 | "github.com/spf13/cobra" 12 | ) 13 | 14 | // fileCmd represents the file command 15 | var fileCmd = &cobra.Command{ 16 | Use: "file [input]", 17 | Short: "screenshot URLs sourced from a file or stdin", 18 | Long: `Screenshot URLs sourced from a file or stdin. 19 | 20 | URLs in the source file should be newline separated. Invalid URLs are simply 21 | logged and ignored.`, 22 | Example: `$ gowitness file -f ~/Desktop/urls 23 | $ gowitness file -f urls.txt --threads 2 24 | $ cat urls.txt | gowitness file -f - 25 | $ gowitness file -f <( shuf domains ) --no-http`, 26 | Run: func(cmd *cobra.Command, args []string) { 27 | log := options.Logger 28 | 29 | scanner, f, err := getScanner(options.File) 30 | if err != nil { 31 | log.Fatal().Err(err).Str("file", options.File).Msg("unable to read source file") 32 | } 33 | defer f.Close() 34 | 35 | db, err := db.Get() 36 | if err != nil { 37 | log.Fatal().Err(err).Msg("failed to get a db handle") 38 | } 39 | 40 | log.Debug().Int("threads", options.Threads).Msg("thread count to use with goroutines") 41 | swg := sizedwaitgroup.New(options.Threads) 42 | 43 | if err = options.PrepareScreenshotPath(); err != nil { 44 | log.Fatal().Err(err).Msg("failed to prepare the screenshot path") 45 | } 46 | 47 | for scanner.Scan() { 48 | candidate := scanner.Text() 49 | if candidate == "" { 50 | return 51 | } 52 | 53 | for _, u := range getUrls(candidate) { 54 | swg.Add() 55 | 56 | log.Debug().Str("url", u.String()).Msg("queueing goroutine for url") 57 | go func(url *url.URL) { 58 | defer swg.Done() 59 | 60 | p := &lib.Processor{ 61 | Logger: log, 62 | Db: db, 63 | Chrome: chrm, 64 | URL: url, 65 | ScreenshotPath: options.ScreenshotPath, 66 | } 67 | 68 | if err := p.Gowitness(); err != nil { 69 | log.Error().Err(err).Str("url", url.String()).Msg("failed to witness url") 70 | } 71 | }(u) 72 | } 73 | } 74 | 75 | swg.Wait() 76 | log.Info().Msg("processing complete") 77 | }, 78 | } 79 | 80 | func init() { 81 | rootCmd.AddCommand(fileCmd) 82 | 83 | fileCmd.Flags().StringVarP(&options.File, "file", "f", "", "file containing urls. use - for stdin") 84 | fileCmd.Flags().IntVarP(&options.Threads, "threads", "t", 4, "threads used to run") 85 | fileCmd.Flags().BoolVar(&options.NoHTTPS, "no-https", false, "do not prefix https:// where missing") 86 | fileCmd.Flags().BoolVar(&options.NoHTTP, "no-http", false, "do not prefix http:// where missing") 87 | 88 | cobra.MarkFlagRequired(fileCmd.Flags(), "file") 89 | } 90 | 91 | // getScanner prepares a bufio.Scanner to read from either 92 | // stdin, or a file. 93 | // the size attribute > 0 will be returned if a file was the input 94 | // it is up to the caller to close the file. 95 | func getScanner(i string) (*bufio.Scanner, *os.File, error) { 96 | if i == "-" { 97 | return bufio.NewScanner(os.Stdin), nil, nil 98 | } 99 | 100 | file, err := os.Open(i) 101 | if err != nil { 102 | return nil, nil, err 103 | } 104 | 105 | return bufio.NewScanner(file), file, nil 106 | } 107 | 108 | // getUrls generates urls for an incoming target depending 109 | // on wether the target has an http prefix and the flags set 110 | func getUrls(target string) (c []*url.URL) { 111 | 112 | // if there already is a protocol, just parse and add that 113 | if strings.HasPrefix(target, "http") { 114 | u, err := url.Parse(target) 115 | if err == nil { 116 | c = append(c, u) 117 | } 118 | 119 | return 120 | } 121 | 122 | if !strings.HasPrefix(target, "http://") && !options.NoHTTP { 123 | u, err := url.Parse("http://" + target) 124 | if err == nil { 125 | c = append(c, u) 126 | } 127 | } 128 | 129 | if !strings.HasPrefix(target, "https://") && !options.NoHTTPS { 130 | u, err := url.Parse("https://" + target) 131 | if err == nil { 132 | c = append(c, u) 133 | } 134 | } 135 | 136 | return 137 | } 138 | -------------------------------------------------------------------------------- /lib/processor.go: -------------------------------------------------------------------------------- 1 | package lib 2 | 3 | import ( 4 | "bytes" 5 | "image/png" 6 | "io/ioutil" 7 | "net/http" 8 | "net/url" 9 | 10 | "github.com/corona10/goimagehash" 11 | "github.com/rs/zerolog" 12 | "github.com/rs/zerolog/log" 13 | "github.com/sensepost/gowitness/chrome" 14 | "github.com/sensepost/gowitness/storage" 15 | "gorm.io/gorm" 16 | ) 17 | 18 | // Processor is a URL processing helper 19 | type Processor struct { 20 | Logger *zerolog.Logger 21 | 22 | Db *gorm.DB 23 | Chrome *chrome.Chrome 24 | URL *url.URL 25 | ScreenshotPath string 26 | ScreenshotFileName string 27 | 28 | // file name & file path 29 | fn string 30 | fp string 31 | // preflight response 32 | response *http.Response 33 | title string 34 | technologies []string 35 | // persistence id 36 | urlid uint 37 | // screenshot 38 | screenshot *[]byte 39 | } 40 | 41 | // Gowitness processes a URL by: 42 | // - preflighting 43 | // - storing 44 | // - screenshotting 45 | // - calculating a perception hash 46 | // - writing a screenshot to disk 47 | func (p *Processor) Gowitness() (err error) { 48 | 49 | p.init() 50 | 51 | if err = p.preflight(); err != nil { 52 | log.Error().Err(err).Msg("preflight request failed") 53 | return 54 | } 55 | 56 | if err = p.persistPreflight(); err != nil { 57 | log.Error().Err(err).Msg("failed to store preflight information") 58 | return 59 | } 60 | 61 | if err = p.takeScreenshot(); err != nil { 62 | log.Error().Err(err).Msg("failed to take screenshot") 63 | return 64 | } 65 | 66 | if err = p.storePerceptionHash(); err != nil { 67 | log.Error().Err(err).Msg("failed to calculate and save a perception hash") 68 | return 69 | } 70 | 71 | if err = p.writeScreenshot(); err != nil { 72 | log.Error().Err(err).Msg("failed to save screenshot buffer") 73 | return 74 | } 75 | 76 | return 77 | } 78 | 79 | // init initialises the Processor 80 | func (p *Processor) init() { 81 | if p.ScreenshotFileName != "" { 82 | p.fn = p.ScreenshotFileName 83 | } else { 84 | p.fn = SafeFileName(p.URL.String()) 85 | } 86 | p.fp = ScreenshotPath(p.fn, p.URL, p.ScreenshotPath) 87 | } 88 | 89 | // preflight invokes the Chrome preflight helper 90 | func (p *Processor) preflight() (err error) { 91 | p.Logger.Debug().Str("url", p.URL.String()).Msg("preflighting") 92 | p.response, p.title, p.technologies, err = p.Chrome.Preflight(p.URL) 93 | if err != nil { 94 | return 95 | } 96 | 97 | var l *zerolog.Event 98 | if p.response.StatusCode == 200 { 99 | l = p.Logger.Info() 100 | } else { 101 | l = p.Logger.Warn() 102 | } 103 | l.Str("url", p.URL.String()).Int("statuscode", p.response.StatusCode). 104 | Str("title", p.title).Msg("preflight result") 105 | 106 | return 107 | } 108 | 109 | // persistPreflight dispatches the StorePreflight function 110 | func (p *Processor) persistPreflight() (err error) { 111 | 112 | if p.Db == nil { 113 | return 114 | } 115 | 116 | p.Logger.Debug().Str("url", p.URL.String()).Msg("storing preflight data") 117 | if p.urlid, err = p.Chrome.StorePreflight(p.URL, p.Db, p.response, p.title, p.technologies, p.fn); err != nil { 118 | return 119 | } 120 | 121 | return 122 | } 123 | 124 | // takeScreenshot dispatches the takeScreenshot function 125 | func (p *Processor) takeScreenshot() (err error) { 126 | p.Logger.Debug().Str("url", p.URL.String()).Msg("screenshotting") 127 | buf, err := p.Chrome.Screenshot(p.URL) 128 | if err != nil { 129 | return 130 | } 131 | 132 | p.screenshot = &buf 133 | 134 | return 135 | } 136 | 137 | // storePerceptionHash calculates and stores a perception hash 138 | func (p *Processor) storePerceptionHash() (err error) { 139 | 140 | if p.Db == nil { 141 | return 142 | } 143 | 144 | p.Logger.Debug().Str("url", p.URL.String()).Msg("calculating perception hash") 145 | img, err := png.Decode(bytes.NewReader(*p.screenshot)) 146 | if err != nil { 147 | return 148 | } 149 | 150 | comp, err := goimagehash.PerceptionHash(img) 151 | if err != nil { 152 | return 153 | } 154 | 155 | var dburl storage.URL 156 | p.Db.First(&dburl, p.urlid) 157 | dburl.PerceptionHash = comp.ToString() 158 | p.Db.Save(&dburl) 159 | 160 | return 161 | } 162 | 163 | // writeScreenshot writes the screenshot buffer to disk 164 | func (p *Processor) writeScreenshot() (err error) { 165 | p.Logger.Debug().Str("url", p.URL.String()).Str("path", p.fn).Msg("saving screenshot buffer") 166 | if err = ioutil.WriteFile(p.fp, *p.screenshot, 0644); err != nil { 167 | return 168 | } 169 | 170 | return 171 | } 172 | -------------------------------------------------------------------------------- /cmd/merge.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "os" 5 | "path/filepath" 6 | 7 | "github.com/h2non/filetype" 8 | "github.com/sensepost/gowitness/storage" 9 | "github.com/spf13/cobra" 10 | "gorm.io/gorm" 11 | "gorm.io/gorm/clause" 12 | ) 13 | 14 | // mergeCmd represents the merge command 15 | var mergeCmd = &cobra.Command{ 16 | Use: "merge", 17 | Short: "Merge gowitness sqlite databases", 18 | Long: `Merge gotiwness sqlite databases. 19 | 20 | Provided a directory or multiple -i / --input flags, this command will read each 21 | database it can find, populating a fresh, merged sqlite database. 22 | When providing a directory with --input-path, that directory is recursively 23 | walked with each file checked to see if it is a sqlite database. If so, it will 24 | form part of the merge process. You can mix both -i and --input-path flags. 25 | 26 | Duplicates are not ignored from source databases. Instead, they get a fresh primary 27 | key in the new destination database.`, 28 | Example: `$ gowitness merge -i gowitness-1.sqlite3 -i gowitness-2.sqlite3 29 | $ gowitness merge -i gowitness-1.sqlite3 -i gowitness-2.sqlite3 --input-path dbs/ 30 | $ gowitness merge --input-path dbs/ 31 | $ gowitness merge --input-path dbs/ -o merged.sqlite.3 32 | $ gowitness merge -i gowitness.sqlite3 --input-path dbs/ --output merged.sqlite3`, 33 | Run: func(cmd *cobra.Command, args []string) { 34 | log := options.Logger 35 | 36 | if err := readDirDbs(); err != nil { 37 | log.Fatal().Err(err).Msg("failed to read source path") 38 | } 39 | 40 | if len(options.MergeDBs) <= 0 { 41 | log.Fatal().Msg("we have no databases to merge. specify some!") 42 | } else { 43 | log.Info().Int("database-count", len(options.MergeDBs)).Msg("number of dbs to process") 44 | } 45 | 46 | if len(options.MergeDBs) == 1 { 47 | log.Warn().Msg(`merging just one database does not make sense. make a copy instead?`) 48 | return 49 | } 50 | 51 | // get a handle for the fresh, merged db 52 | dstDB := storage.NewDb() 53 | dstDB.Path = options.MergeOutputDB 54 | dstDBConn, err := dstDB.Get() 55 | 56 | if err != nil { 57 | log.Fatal().Err(err).Str("destination", options.MergeOutputDB). 58 | Msg("could not open destination db") 59 | } 60 | 61 | log.Info().Str("db-path", options.MergeOutputDB).Msg("writing results to a new database") 62 | 63 | for _, file := range options.MergeDBs { 64 | log.Info().Str("file", file).Msg("processing source database") 65 | if err = mergeFromPath(file, dstDBConn); err != nil { 66 | log.Error().Err(err).Str("source-db", file).Msg("failed to merge database") 67 | } 68 | } 69 | }, 70 | } 71 | 72 | func init() { 73 | rootCmd.AddCommand(mergeCmd) 74 | 75 | mergeCmd.Flags().StringVarP(&options.MergeOutputDB, "output", "o", "gowitness-merged.sqlite3", "output database file name") 76 | mergeCmd.Flags().StringVar(&options.MergeSourcePath, "input-path", "", "a path containing sqlite databases to merge") 77 | mergeCmd.Flags().StringSliceVarP(&options.MergeDBs, "input", "i", []string{}, "input database file location (supports multiple)") 78 | } 79 | 80 | // readDirDbs reads a directory, scanning for sqlite databases 81 | func readDirDbs() error { 82 | 83 | if options.MergeSourcePath == "" { 84 | return nil 85 | } 86 | 87 | if err := filepath.Walk(options.MergeSourcePath, func(path string, _ os.FileInfo, err error) error { 88 | 89 | // todo: add option to do non-recursive walking 90 | 91 | // check that the file at least _looks_ like a sqlite db 92 | file, _ := os.Open(path) 93 | defer file.Close() 94 | head := make([]byte, 261) 95 | file.Read(head) 96 | 97 | kind, _ := filetype.Match(head) 98 | if kind.MIME.Value != "application/vnd.sqlite3" { 99 | return nil 100 | } 101 | 102 | options.MergeDBs = append(options.MergeDBs, path) 103 | 104 | return nil 105 | }); err != nil { 106 | return err 107 | } 108 | 109 | return nil 110 | } 111 | 112 | // mergeFromPath will read a sqlite db specified by a path, populate 113 | // the results into a db handle 114 | func mergeFromPath(source string, dst *gorm.DB) error { 115 | 116 | log := options.Logger 117 | 118 | srcDB := storage.NewDb() 119 | srcDB.Path = source 120 | srcDB.SkipMigration = true 121 | 122 | db, err := srcDB.Get() 123 | 124 | if err != nil { 125 | return err 126 | } 127 | 128 | // read results from the current source database in chunks of 500 129 | // records, and populate each into the dst database handle. the 130 | // primary key is unset with result.ID = 0 so that a new key can 131 | // be populated in the dst database. 132 | var results []*storage.URL 133 | result := db.Model(&storage.URL{}).Preload(clause.Associations). 134 | FindInBatches(&results, 500, func(tx *gorm.DB, batch int) error { 135 | log.Debug().Int("batch-number", batch).Msg("working with batch") 136 | 137 | for _, result := range results { 138 | result.ID = 0 // unset primarykey 139 | } 140 | 141 | dst.Create(&results) 142 | 143 | return nil 144 | }) 145 | 146 | if result.Error != nil { 147 | return result.Error 148 | } 149 | 150 | log.Info().Int64("processed-rows", result.RowsAffected).Str("source-db", source). 151 | Msg("done processing db") 152 | 153 | return nil 154 | } 155 | -------------------------------------------------------------------------------- /web/templates/detail.html: -------------------------------------------------------------------------------- 1 | {{ define "detail" }} 2 | {{ template "header" }} 3 | <!-- Page title --> 4 | <div class="page-header"> 5 | <div class="row align-items-center"> 6 | <div class="col-auto"> 7 | <h2 class="page-title"> 8 | URL Detail 9 | </h2> 10 | </div> 11 | <div class="col-auto"> 12 | <div class="text-muted text-h5 mt-2">{{ .URL }}</div> 13 | </div> 14 | </div> 15 | </div> 16 | 17 | <div class="row"> 18 | 19 | <div class="col-sm-6 col-lg-4"> 20 | <div class="card card-sm"> 21 | <a href="/screenshots/{{ .Filename }}" target="_blank" class="d-block"> 22 | <img loading="lazy" src="/screenshots/{{ .Filename }}" 23 | onerror="this.onerror=null; this.src='/assets/img/blank.png'" class="card-img-top"> 24 | </a> 25 | <div class="card-body"> 26 | <div class="d-flex align-items-center"> 27 | <div class="lh-sm"> 28 | <div>{{ .URL }}</div> 29 | <div class="text-muted">{{ .Title }}</div> 30 | <div> 31 | {{ range .Technologies }} 32 | <span class="badge bg-blue">{{ .Value}}</span> 33 | {{ end }} 34 | </div> 35 | </div> 36 | <div class="ml-auto"> 37 | <a href="#" class="text-muted"> 38 | {{ .ResponseCode}} 39 | </a> 40 | </div> 41 | </div> 42 | </div> 43 | </div> 44 | </div> 45 | 46 | <div class="col-sm-6 col-lg-8"> 47 | 48 | <div class="row"> 49 | <div class="col-md-12"> 50 | <div class="card"> 51 | <div class="card-header"> 52 | <h3 class="card-title">Summary</h3> 53 | </div> 54 | <div class="card-body"> 55 | <p> 56 | <kbd>{{ .URL }}</kbd> responded with <kbd>{{ .ResponseReason}}</kbd> 57 | <span> 58 | <a href="{{ .URL }}" target="_blank" class="btn-sm btn-light float-right"> 59 | Open URL 60 | </a> 61 | </span> 62 | </p> 63 | </div> 64 | </div> 65 | </div> 66 | </div> 67 | 68 | <div class="card"> 69 | <div class="card-header"> 70 | <h3 class="card-title">Response Headers</h3> 71 | </div> 72 | <div class="card-body"> 73 | <div class="table-responsive"> 74 | <table class="table table-vcenter"> 75 | <thead> 76 | <tr> 77 | <th>Key</th> 78 | <th>Value</th> 79 | </tr> 80 | </thead> 81 | <tbody> 82 | {{ range .Headers }} 83 | <tr> 84 | <td class="text-muted text-nowrap"> 85 | <kbd>{{ .Key }}</kbd> 86 | </td> 87 | <td class="text-muted"> 88 | <kbd>{{ .Value }}</kbd> 89 | </td> 90 | </tr> 91 | {{ end }} 92 | </tbody> 93 | </table> 94 | </div> 95 | </div> 96 | </div> 97 | 98 | {{ if .TLS }} 99 | 100 | <div class="card"> 101 | <div class="card-header"> 102 | <h3 class="card-title">TLS Information</h3> 103 | </div> 104 | <div class="card-body"> 105 | <div class="table-responsive"> 106 | <table class="table table-vcenter"> 107 | <thead> 108 | <tr> 109 | <th>ServerName</th> 110 | <th>Version</th> 111 | </tr> 112 | </thead> 113 | <tbody> 114 | <tr> 115 | <td class="text-muted"> 116 | <kbd>{{ .TLS.ServerName }}</kbd> 117 | </td> 118 | <td class="text-muted"> 119 | <kbd>{{ .TLS.Version }}</kbd> 120 | </td> 121 | </tr> 122 | </tbody> 123 | </table> 124 | </div> 125 | </div> 126 | </div> 127 | 128 | <div class="card"> 129 | <div class="card-header"> 130 | <h3 class="card-title">TLS Certificates</h3> 131 | </div> 132 | <div class="card-body"> 133 | <div class="table-responsive"> 134 | <table class="table table-vcenter"> 135 | <thead> 136 | <tr> 137 | <th>Subject CN</th> 138 | <th>Issuer CN</th> 139 | <th>Sig Algorithm</th> 140 | </tr> 141 | </thead> 142 | <tbody> 143 | {{ range .TLS.TLSCertificates }} 144 | <tr> 145 | <td class="text-muted"> 146 | <kbd>{{ .SubjectCommonName }}</kbd> 147 | </td> 148 | <td class="text-muted"> 149 | <kbd>{{ .IssuerCommonName }}</kbd> 150 | </td> 151 | <td class="text-muted"> 152 | <kbd>{{ .SignatureAlgorithm }}</kbd> 153 | </td> 154 | </tr> 155 | {{ $out := .}} 156 | {{ if .DNSNames }} 157 | <tr> 158 | <td colspan="3" class="text-muted"> 159 | DNS Names for {{ $out.SubjectCommonName }}: 160 | {{ range .DNSNames }} 161 | <kbd>"{{ .Name }}" </kbd> 162 | {{ end }} 163 | </td> 164 | </tr> 165 | {{ end }} 166 | {{ end }} 167 | </tbody> 168 | </table> 169 | </div> 170 | </div> 171 | </div> 172 | 173 | {{ end }} 174 | 175 | </div> 176 | </div> 177 | 178 | {{ template "footer" }} 179 | {{ end }} 180 | -------------------------------------------------------------------------------- /chrome/chrome.go: -------------------------------------------------------------------------------- 1 | package chrome 2 | 3 | import ( 4 | "context" 5 | "crypto/tls" 6 | "net/http" 7 | "net/url" 8 | "strings" 9 | "time" 10 | 11 | "github.com/chromedp/cdproto/page" 12 | "github.com/chromedp/chromedp" 13 | "github.com/sensepost/gowitness/storage" 14 | "gorm.io/gorm" 15 | ) 16 | 17 | // Chrome contains information about a Google Chrome 18 | // instance, with methods to run on it. 19 | type Chrome struct { 20 | ResolutionX int 21 | ResolutionY int 22 | UserAgent string 23 | Timeout int64 24 | Delay int 25 | FullPage bool 26 | ChromePath string 27 | Proxy string 28 | } 29 | 30 | // NewChrome returns a new initialised Chrome struct 31 | func NewChrome() *Chrome { 32 | return &Chrome{} 33 | } 34 | 35 | // Preflight will preflight a url 36 | func (chrome *Chrome) Preflight(url *url.URL) (resp *http.Response, title string, technologies []string, err error) { 37 | // purposefully ignore bad certs 38 | transport := &http.Transport{ 39 | TLSClientConfig: &tls.Config{InsecureSkipVerify: true}, 40 | DisableKeepAlives: true, 41 | } 42 | 43 | if chrome.Proxy != "" { 44 | var erri error 45 | proxyURL, erri := url.Parse(chrome.Proxy) 46 | if erri != nil { 47 | return nil, "", nil, erri 48 | } 49 | transport.Proxy = http.ProxyURL(proxyURL) 50 | } 51 | 52 | // purposefully ignore bad certs 53 | client := http.Client{ 54 | Transport: transport, 55 | } 56 | 57 | req, err := http.NewRequest("GET", url.String(), nil) 58 | if err != nil { 59 | return 60 | } 61 | req.Header.Set("User-Agent", chrome.UserAgent) 62 | req.Close = true 63 | 64 | ctx, cancel := context.WithTimeout(context.Background(), time.Duration(chrome.Timeout)*time.Second) 65 | defer cancel() 66 | req = req.WithContext(ctx) 67 | 68 | resp, err = client.Do(req) 69 | if err != nil { 70 | return 71 | } 72 | 73 | defer resp.Body.Close() 74 | title, _ = GetHTMLTitle(resp.Body) 75 | technologies, _ = GetTechnologies(resp) 76 | 77 | return 78 | } 79 | 80 | // StorePreflight will store preflight info to a DB 81 | func (chrome *Chrome) StorePreflight(url *url.URL, db *gorm.DB, resp *http.Response, title string, technologies []string, filename string) (uint, error) { 82 | 83 | record := &storage.URL{ 84 | URL: url.String(), 85 | FinalURL: resp.Request.URL.String(), 86 | ResponseCode: resp.StatusCode, 87 | ResponseReason: resp.Status, 88 | Proto: resp.Proto, 89 | ContentLength: resp.ContentLength, 90 | Filename: filename, 91 | Title: title, 92 | } 93 | 94 | // append headers 95 | for k, v := range resp.Header { 96 | hv := strings.Join(v, ", ") 97 | record.AddHeader(k, hv) 98 | } 99 | 100 | for _, v := range technologies { 101 | record.AddTechnologie(v) 102 | } 103 | 104 | // get TLS info, if any 105 | if resp.TLS != nil { 106 | record.TLS = storage.TLS{ 107 | Version: resp.TLS.Version, 108 | ServerName: resp.TLS.ServerName, 109 | } 110 | 111 | for _, cert := range resp.TLS.PeerCertificates { 112 | tlsCert := &storage.TLSCertificate{ 113 | SubjectCommonName: cert.Subject.CommonName, 114 | IssuerCommonName: cert.Issuer.CommonName, 115 | SignatureAlgorithm: cert.SignatureAlgorithm.String(), 116 | PubkeyAlgorithm: cert.PublicKeyAlgorithm.String(), 117 | } 118 | 119 | for _, name := range cert.DNSNames { 120 | tlsCert.AddDNSName(name) 121 | } 122 | 123 | record.TLS.TLSCertificates = append(record.TLS.TLSCertificates, *tlsCert) 124 | } 125 | } 126 | 127 | db.Create(record) 128 | return record.ID, nil 129 | } 130 | 131 | // Screenshot takes a screenshot of a URL and saves it to destination 132 | // Ref: 133 | // https://github.com/chromedp/examples/blob/255873ca0d76b00e0af8a951a689df3eb4f224c3/screenshot/main.go 134 | func (chrome *Chrome) Screenshot(url *url.URL) ([]byte, error) { 135 | 136 | // setup chromedp default options 137 | options := []chromedp.ExecAllocatorOption{} 138 | options = append(options, chromedp.DefaultExecAllocatorOptions[:]...) 139 | options = append(options, chromedp.UserAgent(chrome.UserAgent)) 140 | options = append(options, chromedp.DisableGPU) 141 | options = append(options, chromedp.Flag("ignore-certificate-errors", true)) // RIP shittyproxy.go 142 | options = append(options, chromedp.WindowSize(chrome.ResolutionX, chrome.ResolutionY)) 143 | 144 | if chrome.ChromePath != "" { 145 | options = append(options, chromedp.ExecPath(chrome.ChromePath)) 146 | } 147 | 148 | if chrome.Proxy != "" { 149 | options = append(options, chromedp.ProxyServer(chrome.Proxy)) 150 | } 151 | 152 | actx, acancel := chromedp.NewExecAllocator(context.Background(), options...) 153 | ctx, cancel := chromedp.NewContext(actx) 154 | defer acancel() 155 | defer cancel() 156 | 157 | var buf []byte 158 | 159 | // squash JavaScript dialog boxes such as alert(); 160 | chromedp.ListenTarget(ctx, func(ev interface{}) { 161 | if _, ok := ev.(*page.EventJavascriptDialogOpening); ok { 162 | go func() { 163 | if err := chromedp.Run(ctx, 164 | page.HandleJavaScriptDialog(true), 165 | ); err != nil { 166 | panic(err) 167 | } 168 | }() 169 | } 170 | }) 171 | 172 | if chrome.FullPage { 173 | // straight from: https://github.com/chromedp/examples/blob/849108f7da9f743bcdaef449699ed57cb4053379/screenshot/main.go 174 | 175 | if err := chromedp.Run(ctx, chromedp.Tasks{ 176 | chromedp.Navigate(url.String()), 177 | chromedp.Sleep(time.Duration(chrome.Delay) * time.Second), 178 | chromedp.FullScreenshot(&buf, 100), 179 | }); err != nil { 180 | return nil, err 181 | } 182 | 183 | } else { 184 | // normal viewport screenshot 185 | 186 | if err := chromedp.Run(ctx, chromedp.Tasks{ 187 | chromedp.Navigate(url.String()), 188 | chromedp.Sleep(time.Duration(chrome.Delay) * time.Second), 189 | chromedp.CaptureScreenshot(&buf), 190 | }); err != nil { 191 | return nil, err 192 | } 193 | } 194 | 195 | return buf, nil 196 | } 197 | -------------------------------------------------------------------------------- /web/templates/gallery.html: -------------------------------------------------------------------------------- 1 | {{ define "gallery" }} 2 | {{ template "header" }} 3 | <!-- Page title --> 4 | <div class="page-header"> 5 | <div class="row align-items-center"> 6 | <div class="col-auto"> 7 | <h2 class="page-title"> 8 | Gallery 9 | </h2> 10 | </div> 11 | <div class="col-auto"> 12 | <div class="text-muted text-h5 mt-2">{{ .Offset }}-{{ .Range }} of {{ .Count }} screenshots</div> 13 | </div> 14 | <!-- Page title actions --> 15 | <div class="col-auto ml-auto d-print-none"> 16 | <div class="d-flex"> 17 | <div class="mr-3"> 18 | <form action="/gallery" method="get"> 19 | <div class="input-icon"> 20 | <input type="text" name="search" class="form-control" placeholder="Title Search…"> 21 | <span class="input-icon-addon"> 22 | <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><circle cx="10" cy="10" r="7" /><line x1="21" y1="21" x2="15" y2="15" /></svg> 23 | </span> 24 | </div> 25 | </form> 26 | </div> 27 | {{ if .Ordered }} 28 | <a href="/?perception_sort=false&limit={{ .Limit }}&page={{ .Page }}" class="btn btn-primary"> 29 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-md" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"></path><rect width="6" height="6" x="14" y="5" rx="1"></rect><line x1="4" y1="7" x2="10" y2="7"></line><line x1="4" y1="11" x2="10" y2="11"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="4" y1="19" x2="20" y2="19"></line></svg> 30 | Disable Perception Sorting 31 | </a> 32 | {{ else }} 33 | <a href="/?perception_sort=true&limit={{ .Limit }}&page={{ .Page }}" class="btn btn-primary"> 34 | <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-md" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"></path><rect width="6" height="6" x="4" y="5" rx="1"></rect><line x1="14" y1="7" x2="20" y2="7"></line><line x1="14" y1="11" x2="20" y2="11"></line><line x1="4" y1="15" x2="20" y2="15"></line><line x1="4" y1="19" x2="20" y2="19"></line></svg> 35 | Enable Perception Sorting 36 | </a> 37 | {{ end }} 38 | </div> 39 | </div> 40 | </div> 41 | </div> 42 | 43 | <div class="row"> 44 | 45 | {{ $length := len .Records }} {{ if eq $length 0 }} 46 | 47 | <div class="container-xl d-flex flex-column justify-content-center"> 48 | <div class="empty"> 49 | <p class="empty-title h3">No results found</p> 50 | <p class="empty-subtitle text-muted"> 51 | Double check that your report server can see the database. 52 | Check out the <kbd>--db-path</kbd> flag for more information. 53 | </p> 54 | </div> 55 | </div> 56 | 57 | {{ else }} 58 | 59 | {{ range .Records}} 60 | 61 | <div class="col-sm-6 col-lg-4"> 62 | <div class="card card-sm"> 63 | <a href="/screenshots/{{ .Filename }}" target="_blank" class="d-block"> 64 | <img loading="lazy" src="/screenshots/{{ .Filename }}" 65 | onerror="this.onerror=null; this.src='/assets/img/blank.png'" class="card-img-top"> 66 | </a> 67 | <div class="card-body"> 68 | <div class="d-flex align-items-center"> 69 | <div class="lh-sm"> 70 | <div> 71 | <a href="{{ .URL }}" target="_blank">{{ .URL }}</a> 72 | </div> 73 | <div class="text-muted">{{ .Title }}</div> 74 | <div> 75 | {{ range .Technologies }} 76 | <span class="badge bg-blue">{{ .Value}}</span> 77 | {{ end }} 78 | </div> 79 | </div> 80 | <div class="ml-auto"> 81 | <a href="/details?id={{ .ID }}" class="btn btn-light btn-sm"> 82 | View 83 | </a> 84 | </div> 85 | </div> 86 | </div> 87 | </div> 88 | </div> 89 | 90 | {{ end }} 91 | 92 | {{ end }} 93 | 94 | </div> 95 | <div class="d-flex"> 96 | <ul class="pagination ml-auto"> 97 | <li class="page-item {{ if le .Page 1 }}disabled{{ end }}"> 98 | <a class="page-link" href="/?{{ if .Ordered }}perception_sort=true&{{ end }}limit={{ .Limit }}&page={{ .PrevPage }}" tabindex="-1"> 99 | <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="15 6 9 12 15 18" /></svg> 100 | prev 101 | </a> 102 | </li> 103 | {{ range $p := .PrevPageRange }} 104 | <li class="page-item"> 105 | <a class="page-link" href="/?{{ if $.Ordered }}perception_sort=true&{{ end }}limit={{ $.Limit }}&page={{ $p }}">{{ $p }}</a> 106 | </li> 107 | {{ end }} 108 | 109 | <li class="page-item active"><a class="page-link" href="#">{{ .Page }}</a></li> 110 | 111 | {{ range $p := .NextPageRange }} 112 | <li class="page-item"> 113 | <a class="page-link" href="/?{{ if $.Ordered }}perception_sort=true&{{ end }}limit={{ $.Limit }}&page={{ $p }}">{{ $p }}</a> 114 | </li> 115 | {{ end }} 116 | <li class="page-item"> 117 | <a class="page-link" href="/?{{ if .Ordered }}perception_sort=true&{{ end }}limit={{ .Limit }}&page={{ .NextPage }}"> 118 | next <svg xmlns="http://www.w3.org/2000/svg" class="icon" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z"/><polyline points="9 6 15 12 9 18" /></svg> 119 | </a> 120 | </li> 121 | </ul> 122 | </div> 123 | {{ template "footer" }} 124 | {{ end }} 125 | -------------------------------------------------------------------------------- /cmd/nmap.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "fmt" 5 | "io/ioutil" 6 | "net/url" 7 | "strings" 8 | 9 | "github.com/remeh/sizedwaitgroup" 10 | "github.com/sensepost/gowitness/lib" 11 | "github.com/spf13/cobra" 12 | "github.com/tomsteele/go-nmap" 13 | ) 14 | 15 | // nmapCmd represents the nmap command 16 | var nmapCmd = &cobra.Command{ 17 | Use: "nmap", 18 | Short: "Screenshot services from an Nmap XML file", 19 | Long: `Screenshot services from an Nmap XML file. 20 | 21 | When performing an Nmap scan, specify the -oX nmap.xml flag to store 22 | data in an XML formatted file that gowitness can parse. 23 | 24 | Running this command without specifying any --services flags means it 25 | will try and screenshot all ports (incl. silly things like SSH etc.). 26 | For this reason, you probably want to rather specify services to probe. 27 | This can be done with the --services / -n flags. For more example 28 | service names parse your local nmap-services file. 29 | 30 | For most http-based services, try: 31 | -n http -n http-alt -n http-mgmt -n http-proxy -n https -n https-alt 32 | 33 | Alternatively, you can specify --port (multiple times) to only scan 34 | specific ports for hosts. This may be used in conjunction with the 35 | --services flag. 36 | 37 | It is also possible to filter for services containing a specific string 38 | with the --service-contains / -w flag. Specifying -w flag as http means 39 | it would match services like http-alt, http-proxy etc.`, 40 | Example: `# WARNING: These scan all exposed service, like SSH 41 | $ gowitness nmap --nmap-file nmap.xml 42 | $ gowitness nmap --nmap-file nmap.xml --scan-hostnames 43 | 44 | # These filter services from the nmap file 45 | $ gowitness nmap --file nmap.xml --service http --service https 46 | $ gowitness nmap --file nmap.xml --service-contains http --service ftp 47 | $ gowitness nmap --file nmap.xml -w http 48 | $ gowitness nmap -f nmap.xml --no-http 49 | $ gowitness nmap -f nmap.xml --no-http --service https --port 8888 50 | $ gowitness nmap -f nmap.xml --no-https -n http -n http-alt 51 | $ gowitness nmap -f nmap.xml --port 80 --port 8080 52 | $ gowitness nmap --nmap-file nmap.xml -s -n http`, 53 | Run: func(cmd *cobra.Command, args []string) { 54 | log := options.Logger 55 | 56 | // prepare targets 57 | targets, err := getNmapURLs() 58 | if err != nil { 59 | log.Fatal().Err(err).Msg("could not process nmap xml file") 60 | } 61 | log.Debug().Int("targets", len(targets)).Msg("number of targets") 62 | 63 | // screeny path 64 | if err = options.PrepareScreenshotPath(); err != nil { 65 | log.Fatal().Err(err).Msg("failed to prepare the screenshot path") 66 | } 67 | 68 | // prepare db 69 | db, err := db.Get() 70 | if err != nil { 71 | log.Fatal().Err(err).Msg("failed to get a db handle") 72 | } 73 | 74 | // prepare swg 75 | log.Debug().Int("threads", options.Threads).Msg("thread count to use with goroutines") 76 | swg := sizedwaitgroup.New(options.Threads) 77 | 78 | // process! 79 | for _, target := range targets { 80 | u, err := url.Parse(target) 81 | if err != nil { 82 | log.Warn().Str("url", u.String()).Msg("skipping invalid url") 83 | continue 84 | } 85 | 86 | swg.Add() 87 | 88 | log.Debug().Str("url", u.String()).Msg("queueing goroutine for url") 89 | go func(url *url.URL) { 90 | defer swg.Done() 91 | 92 | p := &lib.Processor{ 93 | Logger: log, 94 | Db: db, 95 | Chrome: chrm, 96 | URL: url, 97 | ScreenshotPath: options.ScreenshotPath, 98 | } 99 | 100 | if err := p.Gowitness(); err != nil { 101 | log.Debug().Err(err).Str("url", url.String()).Msg("failed to witness url") 102 | } 103 | }(u) 104 | } 105 | 106 | swg.Wait() 107 | log.Info().Msg("processing complete") 108 | }, 109 | } 110 | 111 | func init() { 112 | rootCmd.AddCommand(nmapCmd) 113 | 114 | nmapCmd.Flags().StringVarP(&options.NmapFile, "file", "f", "", "nmap xml file") 115 | nmapCmd.Flags().StringSliceVarP(&options.NmapService, "service", "n", []string{}, "map service name filter. supports multiple --service flags") 116 | nmapCmd.Flags().StringVarP(&options.NmapServiceContains, "service-contains", "w", "", "partial service name filter (aka: contains)") 117 | nmapCmd.Flags().IntSliceVar(&options.NmapPorts, "port", []int{}, "ports filter. supports multiple --port flags") 118 | nmapCmd.Flags().BoolVarP(&options.NmapScanHostanmes, "scan-hostnames", "N", false, "scan hostnames (useful for virtual hosting)") 119 | nmapCmd.Flags().BoolVarP(&options.NoHTTP, "no-http", "s", false, "do not try using http://") 120 | nmapCmd.Flags().BoolVarP(&options.NoHTTPS, "no-https", "S", false, "do not try using https://") 121 | nmapCmd.Flags().BoolVarP(&options.NmapOpenPortsOnly, "open", "", false, "only select open ports") 122 | nmapCmd.Flags().IntVarP(&options.Threads, "threads", "t", 4, "threads used to run") 123 | 124 | cobra.MarkFlagRequired(nmapCmd.Flags(), "file") 125 | } 126 | 127 | // getNmapURLs generates url's from an nmap xml file based on options 128 | // this function considers many of the flag combinations 129 | func getNmapURLs() (urls []string, err error) { 130 | 131 | xml, err := ioutil.ReadFile(options.NmapFile) 132 | if err != nil { 133 | return 134 | } 135 | 136 | nmapXML, err := nmap.Parse(xml) 137 | if err != nil { 138 | return 139 | } 140 | 141 | // parse the data and generate URL's 142 | for _, host := range nmapXML.Hosts { 143 | for _, address := range host.Addresses { 144 | 145 | if !lib.SliceContainsString([]string{"ipv4", "ipv6"}, address.AddrType) { 146 | break 147 | } 148 | 149 | for _, port := range host.Ports { 150 | // skip port if the --open flag has been set and the port is filtered/closed 151 | if options.NmapOpenPortsOnly && port.State.State != "open" { 152 | continue 153 | } 154 | 155 | // skip port if the port id does not match the provided ports to filter 156 | if len(options.NmapPorts) > 0 && !lib.SliceContainsInt(options.NmapPorts, port.PortId) { 157 | continue 158 | } 159 | 160 | // skip port if the service name flag has been set and the service name does not match the filter 161 | if len(options.NmapService) > 0 && !lib.SliceContainsString(options.NmapService, port.Service.Name) { 162 | continue 163 | } 164 | 165 | // skip port if the service contains flag has been set and the service name does not contain the filter 166 | if len(options.NmapServiceContains) > 0 && !strings.Contains(port.Service.Name, options.NmapServiceContains) { 167 | continue 168 | } 169 | 170 | // add the hostnames if the option has been set 171 | if options.NmapScanHostanmes { 172 | for _, hn := range host.Hostnames { 173 | urls = append(urls, buildURI(hn.Name, port.PortId)...) 174 | } 175 | } 176 | 177 | // process the port successfully 178 | urls = append(urls, buildURI(address.Addr, port.PortId)...) 179 | } 180 | } 181 | } 182 | 183 | return 184 | } 185 | 186 | // buildURI will build urls taking the http/https options int account 187 | func buildURI(hostname string, port int) (r []string) { 188 | 189 | if !options.NoHTTP { 190 | r = append(r, fmt.Sprintf(`http://%s:%d`, hostname, port)) 191 | } 192 | 193 | if !options.NoHTTPS { 194 | r = append(r, fmt.Sprintf(`https://%s:%d`, hostname, port)) 195 | } 196 | 197 | return r 198 | } 199 | -------------------------------------------------------------------------------- /cmd/scan.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "bufio" 5 | "math/rand" 6 | "net/url" 7 | "os" 8 | "strconv" 9 | "strings" 10 | "time" 11 | 12 | "github.com/remeh/sizedwaitgroup" 13 | "github.com/sensepost/gowitness/lib" 14 | "github.com/spf13/cobra" 15 | ) 16 | 17 | // scanCmd represents the scan command 18 | var scanCmd = &cobra.Command{ 19 | Use: "scan", 20 | Short: "Scan a CIDR range and take screenshots along the way", 21 | Long: `Scans a CIDR range and takes screenshots along the way. 22 | 23 | This command takes a CIDR, ports and flag arguments to specify wether 24 | it is nessesary to connect via HTTP and or HTTPS to urls. The 25 | combination of these flags are used to generate permutations that 26 | are iterated over and processed. 27 | 28 | At least one --cidr flag or the --cidr-file flag (or both) should be specified. 29 | If the subnet is omitted, it will be assumed that this is a /32. Multiple --cidr 30 | flags are accepted. 31 | 32 | When specifying the --random/-r flag, the ip:port permutations that are 33 | generated will go through a shuffling phase so that the resultant 34 | requests that are made wont follow each other on the same host. 35 | This may be useful in cases where too many ports specified by the 36 | --ports flag might trigger port scan alerts.`, 37 | Example: `$ gowitness scan --cidr 192.168.0.0/24 38 | $ gowitness scan --cidr 192.168.0.0/24 --cidr 10.10.0.0/24 39 | $ gowitness scan --threads 20 --ports 80,443,8080 --cidr 192.168.0.0/24 40 | $ gowitness scan --threads 20 --ports 80,443,8080 --cidr 192.168.0.1/32 --no-https 41 | $ gowitness --log-level debug scan --threads 20 --ports 80,443,8080 --no-http --cidr 192.168.0.0/30`, 42 | Run: func(cmd *cobra.Command, args []string) { 43 | log := options.Logger 44 | 45 | // prepare targets 46 | ports, err := getScanPorts() 47 | if err != nil { 48 | log.Fatal().Err(err).Msg("could not determine ports to scan") 49 | } 50 | log.Debug().Int("port-count", len(ports)).Msg("number of ports to scan") 51 | 52 | ips, err := getScanCidrIps() 53 | if err != nil { 54 | log.Fatal().Err(err).Msg("could not determine ports to scan") 55 | } 56 | log.Debug().Int("ip-count", len(ips)).Msg("number of ports to scan") 57 | 58 | if len(ports) == 0 || len(ips) == 0 { 59 | log.Warn().Int("ports", len(ports)).Int("ips", len("ips")).Msg("empty ports/ips determined. check flags") 60 | } 61 | 62 | targets, err := getScanPermutations(&ips, &ports) 63 | if err != nil { 64 | log.Fatal().Err(err).Msg("could not determine ports to scan") 65 | } 66 | log.Debug().Int("permutation-count", len(targets)).Msg("number of ports to scan") 67 | 68 | if err = options.PrepareScreenshotPath(); err != nil { 69 | log.Fatal().Err(err).Msg("failed to prepare the screenshot path") 70 | } 71 | 72 | // prepare db 73 | db, err := db.Get() 74 | if err != nil { 75 | log.Fatal().Err(err).Msg("failed to get a db handle") 76 | } 77 | 78 | // prepare swg 79 | log.Debug().Int("threads", options.Threads).Msg("thread count to use with goroutines") 80 | swg := sizedwaitgroup.New(options.Threads) 81 | 82 | // process! 83 | for _, target := range targets { 84 | u, err := url.Parse(target) 85 | if err != nil { 86 | log.Warn().Str("url", u.String()).Msg("skipping invalid url") 87 | continue 88 | } 89 | 90 | swg.Add() 91 | 92 | log.Debug().Str("url", u.String()).Msg("queueing goroutine for url") 93 | go func(url *url.URL) { 94 | defer swg.Done() 95 | 96 | p := &lib.Processor{ 97 | Logger: log, 98 | Db: db, 99 | Chrome: chrm, 100 | URL: url, 101 | ScreenshotPath: options.ScreenshotPath, 102 | } 103 | 104 | if err := p.Gowitness(); err != nil { 105 | log.Debug().Err(err).Str("url", url.String()).Msg("failed to witness url") 106 | } 107 | }(u) 108 | } 109 | 110 | swg.Wait() 111 | log.Info().Msg("processing complete") 112 | }, 113 | } 114 | 115 | func init() { 116 | rootCmd.AddCommand(scanCmd) 117 | 118 | scanCmd.Flags().StringSliceVarP(&options.ScanCidr, "cidr", "c", []string{}, "a cidr to scan (supports multiple --cidr flags)") 119 | scanCmd.Flags().StringVarP(&options.ScanCidrFile, "file-cidr", "f", "", "a file containing newline separated cidrs") 120 | scanCmd.Flags().BoolVar(&options.NoHTTPS, "no-https", false, "do not try using https://") 121 | scanCmd.Flags().BoolVar(&options.NoHTTP, "no-http", false, "do not try using http://") 122 | scanCmd.Flags().StringVar(&options.ScanPorts, "ports", "", "comma separated list of extra ports to scan") 123 | scanCmd.Flags().BoolVar(&options.PortsSmall, "ports-small", true, "also use the small ports list (80,443,8080,8443)") 124 | scanCmd.Flags().BoolVar(&options.PortsMedium, "ports-medium", false, "also use the medium ports list (small + 81,90,591,3000,3128,8000,8008,8081,8082,8834,8888,7015,8800,8990,10000)") 125 | scanCmd.Flags().BoolVar(&options.PortsLarge, "ports-large", false, "also use the large ports list (medium + 300,2082,2087,2095,4243,4993,5000,7000,7171,7396,7474,8090,8280,8880,9443)") 126 | scanCmd.Flags().IntVarP(&options.Threads, "threads", "t", 4, "threads used to run") 127 | scanCmd.Flags().BoolVarP(&options.ScanRandom, "random", "r", false, "randomize scan targets") 128 | } 129 | 130 | // getScanPorts determines all of the ports to use 131 | func getScanPorts() ([]int, error) { 132 | 133 | portString := options.ScanPorts 134 | if !strings.HasSuffix(portString, ",") { 135 | portString += "," 136 | } 137 | 138 | if options.PortsSmall { 139 | portString += lib.PortsSmall 140 | } 141 | if options.PortsMedium { 142 | portString += lib.PortsMedium 143 | } 144 | if options.PortsLarge { 145 | portString += lib.PortsLarge 146 | } 147 | 148 | p, err := lib.PortsFromString(portString) 149 | if err != nil { 150 | return nil, err 151 | } 152 | 153 | return p, nil 154 | } 155 | 156 | // getScanCidrIps returns a slice of all of the ips 157 | // in a scan 158 | func getScanCidrIps() (ips []string, err error) { 159 | 160 | var cidrs []string 161 | cidrs = append(cidrs, options.ScanCidr...) 162 | 163 | if options.ScanCidrFile != "" { 164 | file, err := os.Open(options.ScanCidrFile) 165 | if err != nil { 166 | return nil, err 167 | } 168 | defer file.Close() 169 | 170 | scanner := bufio.NewScanner(file) 171 | scanner.Split(bufio.ScanLines) 172 | 173 | for scanner.Scan() { 174 | cidrs = append(cidrs, strings.TrimSpace(scanner.Text())) 175 | } 176 | } 177 | 178 | for _, cidr := range cidrs { 179 | if !strings.Contains(cidr, "/") { 180 | cidr += "/32" 181 | } 182 | 183 | i, err := lib.HostsInCIDR(cidr) 184 | if err != nil { 185 | return nil, err 186 | } 187 | 188 | ips = append(ips, i...) 189 | } 190 | 191 | return 192 | } 193 | 194 | // getScanPermutations will generate url permutations from a port and ip slice. 195 | // if random permutation order is needed, this function will take care of that 196 | // too. 197 | // todo: add uri appending support like we had in v1 198 | func getScanPermutations(ips *[]string, ports *[]int) (results []string, err error) { 199 | 200 | for _, ip := range *ips { 201 | for _, port := range *ports { 202 | 203 | partialURL := ip + ":" + strconv.Itoa(port) 204 | if !options.NoHTTP { 205 | 206 | httpURL := "http://" + partialURL 207 | u, err := url.Parse(httpURL) 208 | if err != nil { 209 | return nil, err 210 | } 211 | 212 | results = append(results, u.String()) 213 | } 214 | 215 | if !options.NoHTTPS { 216 | 217 | httpsURL := "https://" + partialURL 218 | u, err := url.Parse(httpsURL) 219 | if err != nil { 220 | return nil, err 221 | } 222 | 223 | results = append(results, u.String()) 224 | } 225 | } 226 | } 227 | 228 | if options.ScanRandom { 229 | rand.Seed(time.Now().UTC().UnixNano()) 230 | 231 | N := len(results) 232 | for i := 0; i < N; i++ { 233 | r := i + rand.Intn(N-i) 234 | results[r], results[i] = results[i], results[r] 235 | } 236 | } 237 | 238 | return 239 | } 240 | -------------------------------------------------------------------------------- /cmd/report_serve.go: -------------------------------------------------------------------------------- 1 | package cmd 2 | 3 | import ( 4 | "html/template" 5 | "io/fs" 6 | "io/ioutil" 7 | "net/http" 8 | "net/url" 9 | "strconv" 10 | "strings" 11 | 12 | "github.com/sensepost/gowitness/lib" 13 | "github.com/sensepost/gowitness/storage" 14 | "github.com/spf13/cobra" 15 | "gorm.io/gorm" 16 | ) 17 | 18 | var ( 19 | tmpl *template.Template 20 | rsDB *gorm.DB 21 | ) 22 | 23 | // reportServeCmd represents the reportServe command 24 | var reportServeCmd = &cobra.Command{ 25 | Use: "serve", 26 | Short: "starts a web server to view screenshot reports", 27 | Long: `Starts a web server to view screenshot reports. 28 | 29 | The global database and screenshot paths should be set to the same as 30 | what they were when a scan was run. The report server also has the ability 31 | to screenshot ad-hoc URLs provided to the submission page. 32 | 33 | NOTE: When changing the server address to something other than localhost, make 34 | sure that only authorised connections can be made to the server port. By default, 35 | access is restricted to localhost to reduce the risk of SSRF attacks against the 36 | host or hosting infrastructure (AWS/Azure/GCP, etc). Consider strict IP filtering 37 | or fronting this server with an authentication aware reverse proxy. 38 | 39 | Allowed URLs, by default, need to start with http:// or https://. If you need 40 | this restriction lifted, add the --allow-insecure-uri / -A flag. A word of 41 | warning though, that also means that someone may request a URL like file:///etc/passwd. 42 | `, 43 | Run: func(cmd *cobra.Command, args []string) { 44 | log := options.Logger 45 | 46 | if !strings.Contains(options.ServerAddr, "localhost") { 47 | log.Warn().Msg("exposing this server to other networks is dangerous! see the report serve command help for more information") 48 | } 49 | 50 | tmpl = template.Must(template.ParseFS(Templates, "web/templates/*.html")) 51 | 52 | // db 53 | dbh, err := db.Get() 54 | if err != nil { 55 | log.Fatal().Err(err).Msg("could not gt db handle") 56 | } 57 | rsDB = dbh 58 | 59 | log.Info().Str("path", db.Path).Msg("db path") 60 | log.Info().Str("path", options.ScreenshotPath).Msg("screenshot path") 61 | 62 | // routes 63 | // messing with the trailing /'s breaks routing in confusing ways :< 64 | http.HandleFunc("/", indexHandler) 65 | http.HandleFunc("/table/", tableHandler) 66 | http.HandleFunc("/details", detailHandler) 67 | http.HandleFunc("/submit", submitHandler) 68 | 69 | // static assets & screenshots 70 | assetFs, err := fs.Sub(Assets, "web") 71 | if err != nil { 72 | log.Fatal().Err(err).Msg("could not fs.Sub Assets") 73 | } 74 | // assetsFs := http.FileServer(http.FS(Assets)) 75 | http.Handle("/assets/", http.FileServer(http.FS(assetFs))) 76 | http.Handle("/screenshots/", http.StripPrefix("/screenshots", http.FileServer(http.Dir(options.ScreenshotPath)))) 77 | 78 | log.Info().Str("address", options.ServerAddr).Msg("server listening") 79 | if err := http.ListenAndServe(options.ServerAddr, nil); err != nil { 80 | log.Fatal().Err(err).Msg("webserver failed") 81 | } 82 | }, 83 | } 84 | 85 | func init() { 86 | reportCmd.AddCommand(reportServeCmd) 87 | 88 | reportServeCmd.Flags().StringVarP(&options.ServerAddr, "address", "a", "localhost:7171", "server listening address") 89 | reportServeCmd.Flags().BoolVarP(&options.AllowInsecureURIs, "allow-insecure-uri", "A", false, "allow uris that dont start with http(s)") 90 | } 91 | 92 | // submitHandler handles url submissions 93 | func submitHandler(w http.ResponseWriter, r *http.Request) { 94 | 95 | switch r.Method { 96 | case "GET": 97 | t := tmpl.Lookup("submit.html") 98 | err := t.ExecuteTemplate(w, "submit", nil) 99 | if err != nil { 100 | panic(err) 101 | } 102 | case "POST": 103 | // prepare target 104 | url, err := url.Parse(strings.TrimSpace(r.FormValue("url"))) 105 | if err != nil { 106 | http.Error(w, err.Error(), http.StatusInternalServerError) 107 | return 108 | } 109 | 110 | if !options.AllowInsecureURIs { 111 | if !strings.HasPrefix(url.Scheme, "http") { 112 | http.Error(w, "only http(s) urls are accepted", http.StatusNotAcceptable) 113 | return 114 | } 115 | } 116 | 117 | fn := lib.SafeFileName(url.String()) 118 | fp := lib.ScreenshotPath(fn, url, options.ScreenshotPath) 119 | 120 | resp, title, technologies, err := chrm.Preflight(url) 121 | if err != nil { 122 | http.Error(w, err.Error(), http.StatusInternalServerError) 123 | return 124 | } 125 | 126 | var rid uint 127 | if rsDB != nil { 128 | if rid, err = chrm.StorePreflight(url, rsDB, resp, title, technologies, fn); err != nil { 129 | http.Error(w, err.Error(), http.StatusInternalServerError) 130 | return 131 | } 132 | } 133 | 134 | buf, err := chrm.Screenshot(url) 135 | if err != nil { 136 | http.Error(w, err.Error(), http.StatusInternalServerError) 137 | return 138 | } 139 | 140 | if err := ioutil.WriteFile(fp, buf, 0644); err != nil { 141 | http.Error(w, err.Error(), http.StatusInternalServerError) 142 | return 143 | } 144 | 145 | if rid > 0 { 146 | http.Redirect(w, r, "/details?id="+strconv.Itoa(int(rid)), http.StatusMovedPermanently) 147 | return 148 | } 149 | 150 | http.Redirect(w, r, "/submit", http.StatusMovedPermanently) 151 | } 152 | } 153 | 154 | // detailHandler gets all of the details for a particular url id 155 | func detailHandler(w http.ResponseWriter, r *http.Request) { 156 | 157 | d := strings.TrimSpace(r.URL.Query().Get("id")) 158 | if d == "" { 159 | http.Redirect(w, r, "/", http.StatusMovedPermanently) 160 | return 161 | } 162 | id, err := strconv.Atoi(d) 163 | if err != nil { 164 | http.Error(w, err.Error(), http.StatusInternalServerError) 165 | return 166 | } 167 | 168 | var url storage.URL 169 | rsDB. 170 | Preload("Headers"). 171 | Preload("TLS"). 172 | Preload("TLS.TLSCertificates"). 173 | Preload("TLS.TLSCertificates.DNSNames"). 174 | Preload("Technologies"). 175 | First(&url, id) 176 | 177 | // fmt.Printf("%+v\n", url) 178 | 179 | t := tmpl.Lookup("detail.html") 180 | err = t.ExecuteTemplate(w, "detail", url) 181 | if err != nil { 182 | panic(err) 183 | } 184 | } 185 | 186 | // tableHandler handles the URL table view 187 | func tableHandler(w http.ResponseWriter, r *http.Request) { 188 | 189 | var urls []storage.URL 190 | rsDB.Find(&urls) 191 | 192 | t := tmpl.Lookup("table.html") 193 | err := t.ExecuteTemplate(w, "table", urls) 194 | if err != nil { 195 | panic(err) 196 | } 197 | } 198 | 199 | // indexHandler handles the index page. this is the main gallery view 200 | func indexHandler(w http.ResponseWriter, r *http.Request) { 201 | 202 | currPage, limit, err := getPageLimit(r) 203 | if err != nil { 204 | http.Error(w, err.Error(), http.StatusInternalServerError) 205 | return 206 | } 207 | 208 | pager := &lib.Pagination{ 209 | DB: rsDB, 210 | CurrPage: currPage, 211 | Limit: limit, 212 | } 213 | 214 | // perception hashing 215 | if strings.TrimSpace(r.URL.Query().Get("perception_sort")) == "true" { 216 | pager.OrderBy = []string{"perception_hash desc"} 217 | } 218 | 219 | // search 220 | if strings.TrimSpace(r.URL.Query().Get("search")) != "" { 221 | pager.FilterBy = append(pager.FilterBy, lib.Filter{ 222 | Column: "title", 223 | Value: r.URL.Query().Get("search"), 224 | }) 225 | } 226 | 227 | var urls []storage.URL 228 | page, err := pager.Page(&urls) 229 | if err != nil { 230 | http.Error(w, err.Error(), http.StatusInternalServerError) 231 | return 232 | } 233 | 234 | // fmt.Printf("%+v\n", currPage) 235 | 236 | t := tmpl.Lookup("gallery.html") 237 | err = t.ExecuteTemplate(w, "gallery", page) 238 | if err != nil { 239 | panic(err) 240 | } 241 | } 242 | 243 | // getPageLimit gets the limit and page query string values from a request 244 | func getPageLimit(r *http.Request) (page int, limit int, err error) { 245 | 246 | pageS := strings.TrimSpace(r.URL.Query().Get("page")) 247 | limitS := strings.TrimSpace(r.URL.Query().Get("limit")) 248 | 249 | if pageS == "" { 250 | pageS = "-1" 251 | } 252 | if limitS == "" { 253 | limitS = "0" 254 | } 255 | 256 | page, err = strconv.Atoi(pageS) 257 | if err != nil { 258 | return 259 | } 260 | limit, err = strconv.Atoi(limitS) 261 | if err != nil { 262 | return 263 | } 264 | 265 | return 266 | } 267 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/> 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | <one line to give the program's name and a brief idea of what it does.> 635 | Copyright (C) <year> <name of author> 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see <http://www.gnu.org/licenses/>. 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | <program> Copyright (C) <year> <name of author> 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | <http://www.gnu.org/licenses/>. 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | <http://www.gnu.org/philosophy/why-not-lgpl.html>. 675 | -------------------------------------------------------------------------------- /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/armon/circbuf v0.0.0-20150827004946-bbbad097214e/go.mod h1:3U/XgcO3hCbHZ8TKRvWD2dDTCfh9M9ya+I9JpbB7O8o= 44 | github.com/armon/go-metrics v0.0.0-20180917152333-f0300d1749da/go.mod h1:Q73ZrmVTwzkszR9V5SSuryQ31EELlFMUz1kKyl939pY= 45 | github.com/armon/go-radix v0.0.0-20180808171621-7fddfc383310/go.mod h1:ufUuZ+zHj4x4TnLV4JWEpy2hxWSpsRywHrMgIH9cCH8= 46 | github.com/bgentry/speakeasy v0.1.0/go.mod h1:+zsyZBPWlz7T6j88CTgSN5bM796AkVf0kBD4zp0CCIs= 47 | github.com/bketelsen/crypt v0.0.4/go.mod h1:aI6NrJ0pMGgvZKL1iVgXLnfIFJtfV+bKCoqOes/6LfM= 48 | github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= 49 | github.com/chromedp/cdproto v0.0.0-20210713064928-7d28b402946a/go.mod h1:At5TxYYdxkbQL0TSefRjhLE3Q0lgvqKKMSFUglJ7i1U= 50 | github.com/chromedp/cdproto v0.0.0-20210728214956-1fab41c4e0b7 h1:dQJK4L7mbjSpxZKvy83RZproooehK5KPS7m9qx1A0V0= 51 | github.com/chromedp/cdproto v0.0.0-20210728214956-1fab41c4e0b7/go.mod h1:At5TxYYdxkbQL0TSefRjhLE3Q0lgvqKKMSFUglJ7i1U= 52 | github.com/chromedp/chromedp v0.7.4 h1:U+0d3WbB/Oj4mDuBOI0P7S3PJEued5UZIl5AJ3QulwU= 53 | github.com/chromedp/chromedp v0.7.4/go.mod h1:dBj+SXuQHznp6ZPwZeDDEBZKwclUwDLbZ0hjMialMYs= 54 | github.com/chromedp/sysutil v1.0.0 h1:+ZxhTpfpZlmchB58ih/LBHX52ky7w2VhQVKQMucy3Ic= 55 | github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= 56 | github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= 57 | github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= 58 | github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= 59 | github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= 60 | github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= 61 | github.com/cncf/udpa/go v0.0.0-20200629203442-efcf912fb354/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 62 | github.com/cncf/udpa/go v0.0.0-20201120205902-5459f2c99403/go.mod h1:WmhPx2Nbnhtbo57+VJT5O0JRkEi1Wbu0z5j0R8u5Hbk= 63 | github.com/coreos/go-semver v0.3.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= 64 | github.com/coreos/go-systemd/v22 v22.3.2/go.mod h1:Y58oyj3AT4RCenI/lSvhwexgC+NSVTIJ3seZv2GcEnc= 65 | github.com/corona10/goimagehash v1.0.3 h1:NZM518aKLmoNluluhfHGxT3LGOnrojrxhGn63DR/CZA= 66 | github.com/corona10/goimagehash v1.0.3/go.mod h1:VkvE0mLn84L4aF8vCb6mafVajEb6QYMHl2ZJLn0mOGI= 67 | github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU= 68 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 69 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 70 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 71 | github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 72 | github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= 73 | github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= 74 | github.com/envoyproxy/go-control-plane v0.9.7/go.mod h1:cwu0lG7PUMfa9snN8LXBig5ynNVH9qI8YYLbd1fK2po= 75 | github.com/envoyproxy/go-control-plane v0.9.9-0.20201210154907-fd9021fe5dad/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 76 | github.com/envoyproxy/go-control-plane v0.9.9-0.20210217033140-668b12f5399d/go.mod h1:cXg6YxExXjJnVBQHBLXeUAgxn2UodCpnH306RInaBQk= 77 | github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= 78 | github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= 79 | github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= 80 | github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04= 81 | github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= 82 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 83 | github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= 84 | github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= 85 | github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= 86 | github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= 87 | github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= 88 | github.com/gobwas/ws v1.1.0 h1:7RFti/xnNkMJnrK7D1yQ/iCIB5OrrY/54/H930kIbHA= 89 | github.com/gobwas/ws v1.1.0/go.mod h1:nzvNcVha5eUziGrbxFCo6qFIojQHjJV5cLYIbezhfL0= 90 | github.com/godbus/dbus/v5 v5.0.4/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= 91 | github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q= 92 | github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= 93 | github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 94 | github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 95 | github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= 96 | github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 97 | github.com/golang/mock v1.2.0/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= 98 | github.com/golang/mock v1.3.1/go.mod h1:sBzyDLLjw3U8JLTeZvSv8jJB+tU5PVekmnlKIyFUx0Y= 99 | github.com/golang/mock v1.4.0/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 100 | github.com/golang/mock v1.4.1/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 101 | github.com/golang/mock v1.4.3/go.mod h1:UOMv5ysSaYNkG+OFQykRIcU/QvvxJf3p21QfJ2Bt3cw= 102 | github.com/golang/mock v1.4.4/go.mod h1:l3mdAwkq5BuhzHwde/uurv3sEJeZMXNpwsxVWU71h+4= 103 | github.com/golang/mock v1.5.0/go.mod h1:CWnOUgYIOo4TcNZ0wHX3YZCqsaM1I1Jvs6v3mP3KVu8= 104 | github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 105 | github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 106 | github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= 107 | github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 108 | github.com/golang/protobuf v1.3.4/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= 109 | github.com/golang/protobuf v1.3.5/go.mod h1:6O5/vntMXwX2lRkT1hjjk0nAC1IDOTvTlVgjlRvqsdk= 110 | github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= 111 | github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= 112 | github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= 113 | github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= 114 | github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= 115 | github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8= 116 | github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 117 | github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= 118 | github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= 119 | github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= 120 | github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= 121 | github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 122 | github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ= 123 | github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= 124 | github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 125 | github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= 126 | github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 127 | github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 128 | github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 129 | github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 130 | github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 131 | github.com/google/go-cmp v0.5.3/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 132 | github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 133 | github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= 134 | github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= 135 | github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXiIaQGbYVAs8BPL6v8lEs= 136 | github.com/google/martian/v3 v3.0.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 137 | github.com/google/martian/v3 v3.1.0/go.mod h1:y5Zk1BBys9G+gd6Jrk0W3cC1+ELVxBWuIGO+w/tUAp0= 138 | github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 139 | github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc= 140 | github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 141 | github.com/google/pprof v0.0.0-20200212024743-f11f1df84d12/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 142 | github.com/google/pprof v0.0.0-20200229191704-1ebb73c60ed3/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 143 | github.com/google/pprof v0.0.0-20200430221834-fc25d7d30c6d/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 144 | github.com/google/pprof v0.0.0-20200708004538-1a94d8640e99/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM= 145 | github.com/google/pprof v0.0.0-20201023163331-3e6fc7fc9c4c/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 146 | github.com/google/pprof v0.0.0-20201203190320-1bf35d6f28c2/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 147 | github.com/google/pprof v0.0.0-20210122040257-d980be63207e/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 148 | github.com/google/pprof v0.0.0-20210226084205-cbba55b83ad5/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= 149 | github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI= 150 | github.com/google/uuid v1.1.2/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= 151 | github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+vpHVxEJEs9eg= 152 | github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk= 153 | github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= 154 | github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw= 155 | github.com/h2non/filetype v1.1.1 h1:xvOwnXKAckvtLWsN398qS9QhlxlnVXBjXBydK2/UFB4= 156 | github.com/h2non/filetype v1.1.1/go.mod h1:319b3zT68BvV+WRj7cwy856M2ehB3HqNOt6sy1HndBY= 157 | github.com/hashicorp/consul/api v1.1.0/go.mod h1:VmuI/Lkw1nC05EYQWNKwWGbkg+FbDBtguAZLlVdkD9Q= 158 | github.com/hashicorp/consul/sdk v0.1.1/go.mod h1:VKf9jXwCTEY1QZP2MOLRhb5i/I/ssyNV1vwHyQBF0x8= 159 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 160 | github.com/hashicorp/go-cleanhttp v0.5.1/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80= 161 | github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= 162 | github.com/hashicorp/go-msgpack v0.5.3/go.mod h1:ahLV/dePpqEmjfWmKiqvPkv/twdG7iPBM1vqhUKIvfM= 163 | github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= 164 | github.com/hashicorp/go-rootcerts v1.0.0/go.mod h1:K6zTfqpRlCUIjkwsN4Z+hiSfzSTQa6eBIzfwKfwNnHU= 165 | github.com/hashicorp/go-sockaddr v1.0.0/go.mod h1:7Xibr9yA9JjQq1JpNB2Vw7kxv8xerXegt+ozgdvDeDU= 166 | github.com/hashicorp/go-syslog v1.0.0/go.mod h1:qPfqrKkXGihmCqbJM2mZgkZGvKG1dFdvsLplgctolz4= 167 | github.com/hashicorp/go-uuid v1.0.0/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 168 | github.com/hashicorp/go-uuid v1.0.1/go.mod h1:6SBZvOh/SIDV7/2o3Jml5SYk/TvGqwFJ/bN7x4byOro= 169 | github.com/hashicorp/go.net v0.0.1/go.mod h1:hjKkEWcCURg++eb33jQU7oqQcI9XDCnUzHA0oac0k90= 170 | github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 171 | github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= 172 | github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= 173 | github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO+LraFDTW64= 174 | github.com/hashicorp/mdns v1.0.0/go.mod h1:tL+uN++7HEJ6SQLQ2/p+z2pH24WQKWjBPkE0mNTz8vQ= 175 | github.com/hashicorp/memberlist v0.1.3/go.mod h1:ajVTdAv/9Im8oMAAj5G31PhhMCZJV2pPBoIllUwCN7I= 176 | github.com/hashicorp/serf v0.8.2/go.mod h1:6hOLApaqBFA1NXqRQAsxw9QxuDEvNxSQRwA/JwenrHc= 177 | github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 178 | github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= 179 | github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= 180 | github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= 181 | github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD/E= 182 | github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= 183 | github.com/jinzhu/now v1.1.1/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= 184 | github.com/jinzhu/now v1.1.2 h1:eVKgfIdy9b6zbWBMgFpfDPoAMifwSZagU9HmEU6zgiI= 185 | github.com/jinzhu/now v1.1.2/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= 186 | github.com/josharian/intern v1.0.0 h1:vlS4z54oSdjm0bgjRigI+G1HpF+tI+9rE5LLzOg8HmY= 187 | github.com/josharian/intern v1.0.0/go.mod h1:5DoeVV0s6jJacbCEi61lwdGj/aVlrQvzHFFd8Hwg//Y= 188 | github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 189 | github.com/json-iterator/go v1.1.11/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4= 190 | github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= 191 | github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= 192 | github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= 193 | github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8= 194 | github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck= 195 | github.com/kr/fs v0.1.0/go.mod h1:FFnZGqtBN9Gxj7eW1uZ42v5BccTP0vu6NEaFoC2HwRg= 196 | github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= 197 | github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= 198 | github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= 199 | github.com/magiconair/properties v1.8.5/go.mod h1:y3VJvCyxH9uVvJTWEGAELF3aiYNyPKd5NZ3oSwXrF60= 200 | github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= 201 | github.com/mailru/easyjson v0.7.7/go.mod h1:xzfreul335JAWq5oZzymOObrkdz5UnU4kGfJJLY9Nlc= 202 | github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU= 203 | github.com/mattn/go-isatty v0.0.3/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4= 204 | github.com/mattn/go-runewidth v0.0.9/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI= 205 | github.com/mattn/go-runewidth v0.0.13 h1:lTGmDsbAYt5DmK6OnoV7EuIF1wEIFAcxld6ypU4OSgU= 206 | github.com/mattn/go-runewidth v0.0.13/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= 207 | github.com/mattn/go-sqlite3 v1.14.5/go.mod h1:WVKg1VTActs4Qso6iwGbiFih2UIHo0ENGwNd0Lj+XmI= 208 | github.com/mattn/go-sqlite3 v1.14.8 h1:gDp86IdQsN/xWjIEmr9MF6o9mpksUgh0fu+9ByFxzIU= 209 | github.com/mattn/go-sqlite3 v1.14.8/go.mod h1:NyWgC/yNuGj7Q9rpYnZvas74GogHl5/Z4A/KQRfk6bU= 210 | github.com/miekg/dns v1.0.14/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg= 211 | github.com/mitchellh/cli v1.0.0/go.mod h1:hNIlj7HEI86fIcpObd7a0FcrxTWetlwJDGcceTlRvqc= 212 | github.com/mitchellh/go-homedir v1.0.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0= 213 | github.com/mitchellh/go-testing-interface v1.0.0/go.mod h1:kRemZodwjscx+RGhAo8eIhFbs2+BFgRtFPeD/KE+zxI= 214 | github.com/mitchellh/gox v0.4.0/go.mod h1:Sd9lOJ0+aimLBi73mGofS1ycjY8lL3uZM3JPS42BGNg= 215 | github.com/mitchellh/iochan v1.0.0/go.mod h1:JwYml1nuB7xOzsp52dPpHFffvOCDupsG0QubkSMEySY= 216 | github.com/mitchellh/mapstructure v0.0.0-20160808181253-ca63d7c062ee/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 217 | github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y= 218 | github.com/mitchellh/mapstructure v1.4.1/go.mod h1:bFUtVrKA4DC2yAKiSyO/QUcy7e+RRV2QTWOzhPopBRo= 219 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= 220 | github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 221 | github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0= 222 | github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646 h1:zYyBkD/k9seD2A7fsi6Oo2LfFZAehjjQMERAvZLEDnQ= 223 | github.com/nfnt/resize v0.0.0-20180221191011-83c6a9932646/go.mod h1:jpp1/29i3P1S/RLdc7JQKbRpFeM1dOBd8T9ki5s+AY8= 224 | github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= 225 | github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= 226 | github.com/orisano/pixelmatch v0.0.0-20210112091706-4fa4c7ba91d5 h1:1SoBaSPudixRecmlHXb/GxmaD3fLMtHIDN13QujwQuc= 227 | github.com/orisano/pixelmatch v0.0.0-20210112091706-4fa4c7ba91d5/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0= 228 | github.com/pascaldekloe/goe v0.0.0-20180627143212-57f6aae5913c/go.mod h1:lzWF7FIEvWOWxwDKqyGYQf6ZUaNfKdP144TG7ZOy1lc= 229 | github.com/pelletier/go-toml v1.9.3/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= 230 | github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 231 | github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= 232 | github.com/pkg/sftp v1.10.1/go.mod h1:lYOWFsE0bwd1+KfKJaKeuokY15vzFx25BLbzYYoAxZI= 233 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 234 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 235 | github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI= 236 | github.com/projectdiscovery/wappalyzergo v0.0.7 h1:MvlienkiFUbO3nDvlc5mNy1C5XiHzD2EklLDgnG9Zv4= 237 | github.com/projectdiscovery/wappalyzergo v0.0.7/go.mod h1:vS+npIOANv7eKsEtODsyRQt2n1v8VofCwj2gjmq72EM= 238 | github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= 239 | github.com/remeh/sizedwaitgroup v1.0.0 h1:VNGGFwNo/R5+MJBf6yrsr110p0m4/OX4S3DCy7Kyl5E= 240 | github.com/remeh/sizedwaitgroup v1.0.0/go.mod h1:3j2R4OIe/SeS6YDhICBy22RWjJC5eNCJ1V+9+NVNYlo= 241 | github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= 242 | github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= 243 | github.com/rogpeppe/fastuuid v1.2.0/go.mod h1:jVj6XXZzXRy/MSR5jhDC/2q6DgLz+nrA6LYCDYWNEvQ= 244 | github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= 245 | github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ= 246 | github.com/rs/zerolog v1.23.0 h1:UskrK+saS9P9Y789yNNulYKdARjPZuS35B8gJF2x60g= 247 | github.com/rs/zerolog v1.23.0/go.mod h1:6c7hFfxPOy7TacJc4Fcdi24/J0NKYGzjG8FWRI916Qo= 248 | github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= 249 | github.com/ryanuber/columnize v0.0.0-20160712163229-9b3edd62028f/go.mod h1:sm1tb6uqfes/u+d4ooFouqFdy9/2g9QGwK3SQygK0Ts= 250 | github.com/sean-/seed v0.0.0-20170313163322-e2103e2c3529/go.mod h1:DxrIzT+xaE7yg65j358z/aeFdxmN0P9QXhEzd20vsDc= 251 | github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc= 252 | github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= 253 | github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= 254 | github.com/spf13/afero v1.6.0/go.mod h1:Ai8FlHk4v/PARR026UzYexafAt9roJ7LcLMAmO6Z93I= 255 | github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE= 256 | github.com/spf13/cobra v1.2.1 h1:+KmjbUw1hriSNMF55oPrkZcb27aECyrj8V2ytv7kWDw= 257 | github.com/spf13/cobra v1.2.1/go.mod h1:ExllRjgxM/piMAM+3tAZvg8fsklGAf3tPfi+i8t68Nk= 258 | github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= 259 | github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= 260 | github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= 261 | github.com/spf13/viper v1.8.1/go.mod h1:o0Pch8wJ9BVSWGQMbra6iw0oQ5oktSIBaujf1rJH9Ns= 262 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 263 | github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= 264 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 265 | github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4= 266 | github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= 267 | github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 268 | github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= 269 | github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= 270 | github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= 271 | github.com/tomsteele/go-nmap v0.0.0-20191202052157-3507e0b03523 h1:WqjohBOkUq6CIfZSDh7lTcJ0DVRewz9ynYwzcD0zLP8= 272 | github.com/tomsteele/go-nmap v0.0.0-20191202052157-3507e0b03523/go.mod h1:J5FsBj9uaXAn5G+CX8c9g+FkLwG2UAHqaxCGunmD1Hc= 273 | github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 274 | github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 275 | github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 276 | github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= 277 | github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= 278 | go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= 279 | go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= 280 | go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= 281 | go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= 282 | go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8= 283 | go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 284 | go.opencensus.io v0.22.3/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 285 | go.opencensus.io v0.22.4/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw= 286 | go.opencensus.io v0.22.5/go.mod h1:5pWMHQbX5EPX2/62yrJeAkowc+lfs/XD7Uxpq3pI6kk= 287 | go.opencensus.io v0.23.0/go.mod h1:XItmlyltB5F7CS4xOC1DcqMoFqwtC6OG2xF7mCv7P7E= 288 | go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= 289 | go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= 290 | go.uber.org/zap v1.17.0/go.mod h1:MXVU+bhUf/A7Xi2HNOnopQOrmycQ5Ih87HtOu4q5SSo= 291 | golang.org/x/crypto v0.0.0-20181029021203-45a5f77698d3/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4= 292 | golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= 293 | golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 294 | golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 295 | golang.org/x/crypto v0.0.0-20190820162420-60c769a6c586/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 296 | golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= 297 | golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= 298 | golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 299 | golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= 300 | golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= 301 | golang.org/x/exp v0.0.0-20190829153037-c13cbed26979/go.mod h1:86+5VVa7VpoJ4kLfm080zCjGlMRFzhUhsZKEZO7MGek= 302 | golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= 303 | golang.org/x/exp v0.0.0-20191129062945-2f5052295587/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 304 | golang.org/x/exp v0.0.0-20191227195350-da58074b4299/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 305 | golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u096TMicItID8zy7Y6sNkU49FU4= 306 | golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM= 307 | golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU= 308 | golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= 309 | golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= 310 | golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 311 | golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= 312 | golang.org/x/lint v0.0.0-20190301231843-5614ed5bae6f/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= 313 | golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 314 | golang.org/x/lint v0.0.0-20190409202823-959b441ac422/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 315 | golang.org/x/lint v0.0.0-20190909230951-414d861bb4ac/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 316 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= 317 | golang.org/x/lint v0.0.0-20191125180803-fdd1cda4f05f/go.mod h1:5qLYkcX4OjUUV8bRuDixDT3tpyyb+LUpUlRWLxfhWrs= 318 | golang.org/x/lint v0.0.0-20200130185559-910be7a94367/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 319 | golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 320 | golang.org/x/lint v0.0.0-20201208152925-83fdc39ff7b5/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 321 | golang.org/x/lint v0.0.0-20210508222113-6edffad5e616/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY= 322 | golang.org/x/mobile v0.0.0-20190312151609-d3739f865fa6/go.mod h1:z+o9i4GpDbdi3rU15maQ/Ox0txvL9dWGYEHz965HBQE= 323 | golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= 324 | golang.org/x/mod v0.0.0-20190513183733-4bf6d317e70e/go.mod h1:mXi4GBBbnImb6dmsKGUJ2LatrhH/nqhxcFungHvyanc= 325 | golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= 326 | golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 327 | golang.org/x/mod v0.1.1-0.20191107180719-034126e5016b/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg= 328 | golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 329 | golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 330 | golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 331 | golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 332 | golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= 333 | golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 334 | golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 335 | golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 336 | golang.org/x/net v0.0.0-20181201002055-351d144fa1fc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 337 | golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 338 | golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= 339 | golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 340 | golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 341 | golang.org/x/net v0.0.0-20190501004415-9ce7a6920f09/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 342 | golang.org/x/net v0.0.0-20190503192946-f4e77d36d62c/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= 343 | golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= 344 | golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 345 | golang.org/x/net v0.0.0-20190628185345-da137c7871d7/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 346 | golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 347 | golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 348 | golang.org/x/net v0.0.0-20200114155413-6afb5195e5aa/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 349 | golang.org/x/net v0.0.0-20200202094626-16171245cfb2/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 350 | golang.org/x/net v0.0.0-20200222125558-5a598a2470a0/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 351 | golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 352 | golang.org/x/net v0.0.0-20200301022130-244492dfa37a/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= 353 | golang.org/x/net v0.0.0-20200324143707-d3edc9973b7e/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 354 | golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 355 | golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 356 | golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 357 | golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= 358 | golang.org/x/net v0.0.0-20200625001655-4c5254603344/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 359 | golang.org/x/net v0.0.0-20200707034311-ab3426394381/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 360 | golang.org/x/net v0.0.0-20200822124328-c89045814202/go.mod h1:/O7V0waA8r7cgGh81Ro3o1hOxt32SMVPicZroKQ2sZA= 361 | golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 362 | golang.org/x/net v0.0.0-20201031054903-ff519b6c9102/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 363 | golang.org/x/net v0.0.0-20201110031124-69a78807bb2b/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= 364 | golang.org/x/net v0.0.0-20201209123823-ac852fbbde11/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 365 | golang.org/x/net v0.0.0-20210119194325-5f4716e94777/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 366 | golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= 367 | golang.org/x/net v0.0.0-20210316092652-d523dce5a7f4/go.mod h1:RBQZq4jEuRlivfhVLdyRGr576XBO4/greRjx4P4O3yc= 368 | golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96bSt6lcn1PtDYWL6XObtHCRCNQM= 369 | golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d h1:20cMwl2fHAzkJMEA+8J4JgqBQcQGzbisXo31MIeenXI= 370 | golang.org/x/net v0.0.0-20210805182204-aaa1db679c0d/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= 371 | golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= 372 | golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 373 | golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 374 | golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 375 | golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= 376 | golang.org/x/oauth2 v0.0.0-20200902213428-5d25da1a8d43/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 377 | golang.org/x/oauth2 v0.0.0-20201109201403-9fd604954f58/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 378 | golang.org/x/oauth2 v0.0.0-20201208152858-08078c50e5b5/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 379 | golang.org/x/oauth2 v0.0.0-20210218202405-ba52d332ba99/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 380 | golang.org/x/oauth2 v0.0.0-20210220000619-9bb904979d93/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 381 | golang.org/x/oauth2 v0.0.0-20210313182246-cd4f82c27b84/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 382 | golang.org/x/oauth2 v0.0.0-20210402161424-2e8d93401602/go.mod h1:KelEdhl1UZF7XfJ4dDtk6s++YSgaE7mD/BuKKDLBl4A= 383 | golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 384 | golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 385 | golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 386 | golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 387 | golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 388 | golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 389 | golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 390 | golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 391 | golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 392 | golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 393 | golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= 394 | golang.org/x/sys v0.0.0-20180823144017-11551d06cbcc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 395 | golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 396 | golang.org/x/sys v0.0.0-20181026203630-95b1ffbd15a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 397 | golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= 398 | golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 399 | golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 400 | golang.org/x/sys v0.0.0-20190502145724-3ef323f4f1fd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 401 | golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 402 | golang.org/x/sys v0.0.0-20190606165138-5da285871e9c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 403 | golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 404 | golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 405 | golang.org/x/sys v0.0.0-20191001151750-bb3f8db39f24/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 406 | golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 407 | golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 408 | golang.org/x/sys v0.0.0-20191228213918-04cbcbbfeed8/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 409 | golang.org/x/sys v0.0.0-20200113162924-86b910548bc1/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 410 | golang.org/x/sys v0.0.0-20200122134326-e047566fdf82/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 411 | golang.org/x/sys v0.0.0-20200202164722-d101bd2416d5/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 412 | golang.org/x/sys v0.0.0-20200212091648-12a6c2dcc1e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 413 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 414 | golang.org/x/sys v0.0.0-20200302150141-5c8b2ff67527/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 415 | golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 416 | golang.org/x/sys v0.0.0-20200331124033-c3d80250170d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 417 | golang.org/x/sys v0.0.0-20200501052902-10377860bb8e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 418 | golang.org/x/sys v0.0.0-20200511232937-7e40ca221e25/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 419 | golang.org/x/sys v0.0.0-20200515095857-1151b9dac4a9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 420 | golang.org/x/sys v0.0.0-20200523222454-059865788121/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 421 | golang.org/x/sys v0.0.0-20200803210538-64077c9b5642/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 422 | golang.org/x/sys v0.0.0-20200905004654-be1d3432aa8f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 423 | golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 424 | golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 425 | golang.org/x/sys v0.0.0-20201201145000-ef89a241ccb3/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 426 | golang.org/x/sys v0.0.0-20201207223542-d4d67f95c62d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 427 | golang.org/x/sys v0.0.0-20210104204734-6f8348627aad/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 428 | golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 429 | golang.org/x/sys v0.0.0-20210220050731-9a76102bfb43/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 430 | golang.org/x/sys v0.0.0-20210305230114-8fe3ee5dd75b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 431 | golang.org/x/sys v0.0.0-20210315160823-c6e025ad8005/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 432 | golang.org/x/sys v0.0.0-20210320140829-1e4c9ba3b0c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 433 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 434 | golang.org/x/sys v0.0.0-20210403161142-5e06dd20ab57/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 435 | golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 436 | golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 437 | golang.org/x/sys v0.0.0-20210525143221-35b2ab0089ea/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 438 | golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069 h1:siQdpVirKtzPhKl3lZWozZraCFObP8S1v6PRp0bLrtU= 439 | golang.org/x/sys v0.0.0-20210806184541-e5e7981a1069/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= 440 | golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= 441 | golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 442 | golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 443 | golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= 444 | golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= 445 | golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 446 | golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 447 | golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 448 | golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= 449 | golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 450 | golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 451 | golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= 452 | golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 453 | golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= 454 | golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= 455 | golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 456 | golang.org/x/tools v0.0.0-20190312151545-0bb0c0a6e846/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 457 | golang.org/x/tools v0.0.0-20190312170243-e65039ee4138/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 458 | golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= 459 | golang.org/x/tools v0.0.0-20190425150028-36563e24a262/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 460 | golang.org/x/tools v0.0.0-20190506145303-2d16b83fe98c/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 461 | golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= 462 | golang.org/x/tools v0.0.0-20190606124116-d0a3d012864b/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 463 | golang.org/x/tools v0.0.0-20190621195816-6e04913cbbac/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 464 | golang.org/x/tools v0.0.0-20190628153133-6cdbf07be9d0/go.mod h1:/rFqwRUd4F7ZHNgwSSTFct+R/Kf4OFW1sUzUTQQTgfc= 465 | golang.org/x/tools v0.0.0-20190816200558-6889da9d5479/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 466 | golang.org/x/tools v0.0.0-20190911174233-4f2ddba30aff/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 467 | golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 468 | golang.org/x/tools v0.0.0-20191112195655-aa38f8e97acc/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 469 | golang.org/x/tools v0.0.0-20191113191852-77e3bb0ad9e7/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 470 | golang.org/x/tools v0.0.0-20191115202509-3a792d9c32b2/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 471 | golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 472 | golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 473 | golang.org/x/tools v0.0.0-20191130070609-6e064ea0cf2d/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= 474 | golang.org/x/tools v0.0.0-20191216173652-a0e659d51361/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 475 | golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 476 | golang.org/x/tools v0.0.0-20200117161641-43d50277825c/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 477 | golang.org/x/tools v0.0.0-20200122220014-bf1340f18c4a/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 478 | golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 479 | golang.org/x/tools v0.0.0-20200204074204-1cc6d1ef6c74/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 480 | golang.org/x/tools v0.0.0-20200207183749-b753a1ba74fa/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 481 | golang.org/x/tools v0.0.0-20200212150539-ea181f53ac56/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 482 | golang.org/x/tools v0.0.0-20200224181240-023911ca70b2/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 483 | golang.org/x/tools v0.0.0-20200227222343-706bc42d1f0d/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28= 484 | golang.org/x/tools v0.0.0-20200304193943-95d2e580d8eb/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 485 | golang.org/x/tools v0.0.0-20200312045724-11d5b4c81c7d/go.mod h1:o4KQGtdN14AW+yjsvvwRTJJuXz8XRtIHtEnmAXLyFUw= 486 | golang.org/x/tools v0.0.0-20200331025713-a30bf2db82d4/go.mod h1:Sl4aGygMT6LrqrWclx+PTx3U+LnKx/seiNR+3G19Ar8= 487 | golang.org/x/tools v0.0.0-20200501065659-ab2804fb9c9d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 488 | golang.org/x/tools v0.0.0-20200512131952-2bc93b1c0c88/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 489 | golang.org/x/tools v0.0.0-20200515010526-7d3b6ebf133d/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 490 | golang.org/x/tools v0.0.0-20200618134242-20370b0cb4b2/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 491 | golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= 492 | golang.org/x/tools v0.0.0-20200729194436-6467de6f59a7/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 493 | golang.org/x/tools v0.0.0-20200804011535-6c149bb5ef0d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 494 | golang.org/x/tools v0.0.0-20200825202427-b303f430e36d/go.mod h1:njjCfa9FT2d7l9Bc6FUM5FLjQPp3cFF28FI3qnDFljA= 495 | golang.org/x/tools v0.0.0-20200904185747-39188db58858/go.mod h1:Cj7w3i3Rnn0Xh82ur9kSqwfTHTeVxaDqrfMjpcNT6bE= 496 | golang.org/x/tools v0.0.0-20201110124207-079ba7bd75cd/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 497 | golang.org/x/tools v0.0.0-20201201161351-ac6f37ff4c2a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 498 | golang.org/x/tools v0.0.0-20201208233053-a543418bbed2/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 499 | golang.org/x/tools v0.0.0-20210105154028-b0ab187a4818/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 500 | golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= 501 | golang.org/x/tools v0.1.0/go.mod h1:xkSsbof2nBLbhDlRMhhhyNLN/zl3eTqcnHD5viDpcZ0= 502 | golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= 503 | golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 504 | golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 505 | golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 506 | golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= 507 | google.golang.org/api v0.4.0/go.mod h1:8k5glujaEP+g9n7WNsDg8QP6cUVNI86fCNMcbazEtwE= 508 | google.golang.org/api v0.7.0/go.mod h1:WtwebWUNSVBH/HAw79HIFXZNqEvBhG+Ra+ax0hx3E3M= 509 | google.golang.org/api v0.8.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 510 | google.golang.org/api v0.9.0/go.mod h1:o4eAsZoiT+ibD93RtjEohWalFOjRDx6CVaqeizhEnKg= 511 | google.golang.org/api v0.13.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 512 | google.golang.org/api v0.14.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 513 | google.golang.org/api v0.15.0/go.mod h1:iLdEw5Ide6rF15KTC1Kkl0iskquN2gFfn9o9XIsbkAI= 514 | google.golang.org/api v0.17.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 515 | google.golang.org/api v0.18.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 516 | google.golang.org/api v0.19.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 517 | google.golang.org/api v0.20.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 518 | google.golang.org/api v0.22.0/go.mod h1:BwFmGc8tA3vsd7r/7kR8DY7iEEGSU04BFxCo5jP/sfE= 519 | google.golang.org/api v0.24.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 520 | google.golang.org/api v0.28.0/go.mod h1:lIXQywCXRcnZPGlsd8NbLnOjtAoL6em04bJ9+z0MncE= 521 | google.golang.org/api v0.29.0/go.mod h1:Lcubydp8VUV7KeIHD9z2Bys/sm/vGKnG1UHuDBSrHWM= 522 | google.golang.org/api v0.30.0/go.mod h1:QGmEvQ87FHZNiUVJkT14jQNYJ4ZJjdRF23ZXz5138Fc= 523 | google.golang.org/api v0.35.0/go.mod h1:/XrVsuzM0rZmrsbjJutiuftIzeuTQcEeaYcSk/mQ1dg= 524 | google.golang.org/api v0.36.0/go.mod h1:+z5ficQTmoYpPn8LCUNVpK5I7hwkpjbcgqA7I34qYtE= 525 | google.golang.org/api v0.40.0/go.mod h1:fYKFpnQN0DsDSKRVRcQSDQNtqWPfM9i+zNPxepjRCQ8= 526 | google.golang.org/api v0.41.0/go.mod h1:RkxM5lITDfTzmyKFPt+wGrCJbVfniCr2ool8kTBzRTU= 527 | google.golang.org/api v0.43.0/go.mod h1:nQsDGjRXMo4lvh5hP0TKqF244gqhGcr/YSIykhUk/94= 528 | google.golang.org/api v0.44.0/go.mod h1:EBOGZqzyhtvMDoxwS97ctnh0zUmYY6CxqXsc1AvkYD8= 529 | google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= 530 | google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 531 | google.golang.org/appengine v1.5.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= 532 | google.golang.org/appengine v1.6.1/go.mod h1:i06prIuMbXzDqacNJfV5OdTW448YApPu5ww/cMBSeb0= 533 | google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 534 | google.golang.org/appengine v1.6.6/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 535 | google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= 536 | google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= 537 | google.golang.org/genproto v0.0.0-20190307195333-5fe7a883aa19/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 538 | google.golang.org/genproto v0.0.0-20190418145605-e7d98fc518a7/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 539 | google.golang.org/genproto v0.0.0-20190425155659-357c62f0e4bb/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 540 | google.golang.org/genproto v0.0.0-20190502173448-54afdca5d873/go.mod h1:VzzqZJRnGkLBvHegQrXjBqPurQTc5/KpmUdxsrq26oE= 541 | google.golang.org/genproto v0.0.0-20190801165951-fa694d86fc64/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 542 | google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= 543 | google.golang.org/genproto v0.0.0-20190911173649-1774047e7e51/go.mod h1:IbNlFCBrqXvoKpeg0TB2l7cyZUmoaFKYIwrEpbDKLA8= 544 | google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 545 | google.golang.org/genproto v0.0.0-20191115194625-c23dd37a84c9/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 546 | google.golang.org/genproto v0.0.0-20191216164720-4f79533eabd1/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 547 | google.golang.org/genproto v0.0.0-20191230161307-f3c370f40bfb/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 548 | google.golang.org/genproto v0.0.0-20200115191322-ca5a22157cba/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 549 | google.golang.org/genproto v0.0.0-20200122232147-0452cf42e150/go.mod h1:n3cpQtvxv34hfy77yVDNjmbRyujviMdxYliBSkLhpCc= 550 | google.golang.org/genproto v0.0.0-20200204135345-fa8e72b47b90/go.mod h1:GmwEX6Z4W5gMy59cAlVYjN9JhxgbQH6Gn+gFDQe2lzA= 551 | google.golang.org/genproto v0.0.0-20200212174721-66ed5ce911ce/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 552 | google.golang.org/genproto v0.0.0-20200224152610-e50cd9704f63/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 553 | google.golang.org/genproto v0.0.0-20200228133532-8c2c7df3a383/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 554 | google.golang.org/genproto v0.0.0-20200305110556-506484158171/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 555 | google.golang.org/genproto v0.0.0-20200312145019-da6875a35672/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 556 | google.golang.org/genproto v0.0.0-20200331122359-1ee6d9798940/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 557 | google.golang.org/genproto v0.0.0-20200430143042-b979b6f78d84/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 558 | google.golang.org/genproto v0.0.0-20200511104702-f5ebc3bea380/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 559 | google.golang.org/genproto v0.0.0-20200513103714-09dca8ec2884/go.mod h1:55QSHmfGQM9UVYDPBsyGGes0y52j32PQ3BqQfXhyH3c= 560 | google.golang.org/genproto v0.0.0-20200515170657-fc4c6c6a6587/go.mod h1:YsZOwe1myG/8QRHRsmBRE1LrgQY60beZKjly0O1fX9U= 561 | google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo= 562 | google.golang.org/genproto v0.0.0-20200618031413-b414f8b61790/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA= 563 | google.golang.org/genproto v0.0.0-20200729003335-053ba62fc06f/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 564 | google.golang.org/genproto v0.0.0-20200804131852-c06518451d9c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 565 | google.golang.org/genproto v0.0.0-20200825200019-8632dd797987/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 566 | google.golang.org/genproto v0.0.0-20200904004341-0bd0a958aa1d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 567 | google.golang.org/genproto v0.0.0-20201109203340-2640f1f9cdfb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 568 | google.golang.org/genproto v0.0.0-20201201144952-b05cb90ed32e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 569 | google.golang.org/genproto v0.0.0-20201210142538-e3217bee35cc/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 570 | google.golang.org/genproto v0.0.0-20201214200347-8c77b98c765d/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 571 | google.golang.org/genproto v0.0.0-20210222152913-aa3ee6e6a81c/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 572 | google.golang.org/genproto v0.0.0-20210303154014-9728d6b83eeb/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 573 | google.golang.org/genproto v0.0.0-20210310155132-4ce2db91004e/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 574 | google.golang.org/genproto v0.0.0-20210319143718-93e7006c17a6/go.mod h1:FWY/as6DDZQgahTzZj3fqbO1CbirC29ZNUFHwi0/+no= 575 | google.golang.org/genproto v0.0.0-20210402141018-6c239bbf2bb1/go.mod h1:9lPAdzaEmUacj36I+k7YKbEc5CXzPIeORRgDAUOu28A= 576 | google.golang.org/genproto v0.0.0-20210602131652-f16073e35f0c/go.mod h1:UODoCrxHCcBojKKwX1terBiRUaqAsFqJiF615XL43r0= 577 | google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= 578 | google.golang.org/grpc v1.20.1/go.mod h1:10oTOabMzJvdu6/UiuZezV6QK5dSlG84ov/aaiqXj38= 579 | google.golang.org/grpc v1.21.1/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM= 580 | google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= 581 | google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= 582 | google.golang.org/grpc v1.26.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 583 | google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 584 | google.golang.org/grpc v1.27.1/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk= 585 | google.golang.org/grpc v1.28.0/go.mod h1:rpkK4SK4GF4Ach/+MFLZUBavHOvF2JJB5uozKKal+60= 586 | google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk= 587 | google.golang.org/grpc v1.30.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 588 | google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 589 | google.golang.org/grpc v1.31.1/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= 590 | google.golang.org/grpc v1.33.1/go.mod h1:fr5YgcSWrqhRRxogOsw7RzIpsmvOZ6IcH4kBYTpR3n0= 591 | google.golang.org/grpc v1.33.2/go.mod h1:JMHMWHQWaTccqQQlmk3MJZS+GWXOdAesneDmEnv2fbc= 592 | google.golang.org/grpc v1.34.0/go.mod h1:WotjhfgOW/POjDeRt8vscBtXq+2VjORFy659qA51WJ8= 593 | google.golang.org/grpc v1.35.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 594 | google.golang.org/grpc v1.36.0/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 595 | google.golang.org/grpc v1.36.1/go.mod h1:qjiiYl8FncCW8feJPdyg3v6XW24KsRHe+dy9BAGRRjU= 596 | google.golang.org/grpc v1.38.0/go.mod h1:NREThFqKR1f3iQ6oBuvc5LadQuXVGo9rkm5ZGrQdJfM= 597 | google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= 598 | google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= 599 | google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= 600 | google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= 601 | google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= 602 | google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 603 | google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 604 | google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= 605 | google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4= 606 | google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c= 607 | google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= 608 | google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= 609 | gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 610 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= 611 | gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI= 612 | gopkg.in/ini.v1 v1.62.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= 613 | gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 614 | gopkg.in/yaml.v2 v2.2.3/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 615 | gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= 616 | gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ= 617 | gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 618 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo= 619 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= 620 | gorm.io/driver/sqlite v1.1.4 h1:PDzwYE+sI6De2+mxAneV9Xs11+ZyKV6oxD3wDGkaNvM= 621 | gorm.io/driver/sqlite v1.1.4/go.mod h1:mJCeTFr7+crvS+TRnWc5Z3UvwxUN1BGBLMrf5LA9DYw= 622 | gorm.io/gorm v1.20.7/go.mod h1:0HFTzE/SqkGTzK6TlDPPQbAYCluiVvhzoA1+aVyzenw= 623 | gorm.io/gorm v1.21.12 h1:3fQM0Eiz7jcJEhPggHEpoYnsGZqynMzverL77DV40RM= 624 | gorm.io/gorm v1.21.12/go.mod h1:F+OptMscr0P2F2qU97WT1WimdH9GaQPoDW7AYd5i2Y0= 625 | honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 626 | honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 627 | honnef.co/go/tools v0.0.0-20190418001031-e561f6794a2a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 628 | honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= 629 | honnef.co/go/tools v0.0.1-2019.2.3/go.mod h1:a3bituU0lyd329TUQxRnasdCoJDkEUEAqEt0JzvZhAg= 630 | honnef.co/go/tools v0.0.1-2020.1.3/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 631 | honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9vFzvIQ3k= 632 | rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8= 633 | rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0= 634 | rsc.io/sampler v1.3.0/go.mod h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA= 635 | --------------------------------------------------------------------------------