sanbox

command
v0.0.0-...-f9b4428 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

README

SANbox

SANbox takes a list of domains on stdin and returns any SANs associated with any certificate found on the host. It will strip wildcards (e.g. *.example.com becomes example.com) and will not print any domain where the input is identical to the output (i.e. a certificate with a single name associated with it).

Usage

$ cat domains.txt
example.com
foo.example.com
1.2.3.4

$ cat domains.txt | sanbox
[example.com] example.com
[example.com] secret.example.com
[example.com] really-secret.example.com
[foo.example.com] foo.example.com
[foo.example.com] something.otherdomain.com
[1.2.3.4] ips.work.too.com

$ cat domains.txt | sanbox -subs-only
[example.com] example.com
[example.com] secret.example.com
[example.com] really-secret.example.com
[foo.example.com] foo.example.com

Installation

$ go get -u github.com/leesoh/hacks/sanbox

Thanks

  • @Michael1026 for the idea :)

References

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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