Help us shape the future of Go! Take the 2026 Go Developer Survey

alpnscanner

command module
v0.0.0-...-a685d13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 6 Imported by: 0

README

alpnscanner

Takes a file with hostnames and scans for supported protocols using Application-Layer Protocol Negotiation. By default, it scans for IANA's list of ALPN protocol ids.

Installation

go install github.com/Martinvks/alpnscanner@latest

Usage

$ cat hosts.txt
example.com
example.no
example.se
$ alpnscanner -h hosts.txt
example.com:443 [http/1.1 h2]
example.no:443 []
example.se:443 [http/1.1]

Required flags

  -h string
    	hosts file path

Optional flags

  -c int
    	concurrency (default 10)
  -m string
    	mode specifies which protocols to scan for. Must be one of "iana", "http" or "h2draft" (default "iana")
  -p int
    	port (default 443)

The iana mode scans for the protocols listed here.
The http mode uses the same list, but only scans for HTTP protocols.
The h2draft mode scans for draft versions of HTTP/2.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL