Skip to content

Parse tls-scan json output and fetch all hostnames and IPs from Subject, SubjectCN, Issuer and SubjectAltName fields

License

Notifications You must be signed in to change notification settings

dogasantos/tls-scan-hostgrabber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 

Repository files navigation

tls-scan-hostgrabber

Parse tls-scan json output and fetch all hostnames and IPs from Subject, SubjectCN, Issuer and SubjectAltName fields

About TLS-SCAN

tls-scan (https://github.com/prbinu/tls-scan) is a fantastic tool written by @prbinu that grabs the TLS certificate from a given host (or a list of hosts), parses and produces a ndjson file with all details.

About tls-scan-hostgrabber

I'm learning GO the hard way, which consist of taking my Python tools and port those to Golang. You can expect bad Go code that just works.

With this in mind, in order to use tls-scan-hostgrabber, you must first run tls-scan and create a tls-scan.json file with the output of tls-scan tool (ndjson). Place the tls-scan.json in the same directory as main.go / main binary file.

Install and Run

git clone github.com/dogasantos/tls-scan-hostgrabber
cd tls-scan-hostgrabber
go build main.go
./main > output.txt

The output.txt will contain all the hostnames and ip addressess found inside tls-scan.json certificate data.

About

Parse tls-scan json output and fetch all hostnames and IPs from Subject, SubjectCN, Issuer and SubjectAltName fields

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages