Documentation ¶
Overview ¶
Package ztls implements a tls grabbing implementation using zmap zcrypto/tls library.
Index ¶
- Variables
- func ConvertCertificateToResponse(options *clients.Options, hostname string, cert *x509.Certificate) *clients.CertificateResponse
- func ParseSimpleTLSCertificate(cert tls.SimpleCertificate) *x509.Certificate
- type Client
- func (c *Client) ConnectWithOptions(hostname, ip, port string, options clients.ConnectOptions) (*clients.Response, error)
- func (c *Client) EnumerateCiphers(hostname, ip, port string, options clients.ConnectOptions) ([]string, error)
- func (c *Client) SupportedTLSCiphers() ([]string, error)
- func (c *Client) SupportedTLSVersions() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( AllCiphers []uint16 AllCiphersNames []string SupportedTlsVersions []string )
Functions ¶
func ConvertCertificateToResponse ¶ added in v0.0.6
func ConvertCertificateToResponse(options *clients.Options, hostname string, cert *x509.Certificate) *clients.CertificateResponse
ConvertCertificateToResponse using zcrypto x509
func ParseSimpleTLSCertificate ¶ added in v0.0.6
func ParseSimpleTLSCertificate(cert tls.SimpleCertificate) *x509.Certificate
ParseSimpleTLSCertificate using zcrypto x509
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a TLS grabbing client using crypto/tls
func (*Client) ConnectWithOptions ¶ added in v0.0.4
func (c *Client) ConnectWithOptions(hostname, ip, port string, options clients.ConnectOptions) (*clients.Response, error)
Connect connects to a host and grabs the response data
func (*Client) EnumerateCiphers ¶ added in v1.0.6
func (c *Client) EnumerateCiphers(hostname, ip, port string, options clients.ConnectOptions) ([]string, error)
EnumerateCiphers enumerate target with ciphers supported by ztls
func (*Client) SupportedTLSCiphers ¶ added in v0.0.6
SupportedTLSCiphers returns the list of ztls library supported ciphers
func (*Client) SupportedTLSVersions ¶ added in v0.0.6
SupportedTLSVersions returns the list of ztls library supported tls versions
Click to show internal directories.
Click to hide internal directories.