tlsaudit

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: BSD-3-Clause Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//TLSAuditConfigPath is the default config path of the TLSAudit service
	TLSAuditConfigPath = filepath.Join("data", "config", "TLSAuditConfig.yml")
)

Functions

func CompactDB added in v0.1.20

func CompactDB(dayPath, scanID string)

CompactDB reclaims space by pruning the database

func GetNextScanID added in v0.1.20

func GetNextScanID() string

GetNextScanID returns the next unique scan ID

func GetScanData added in v0.1.21

func GetScanData(date, scanID string) []tlsmodel.HumanScanResult

GetScanData returns the scan results of a given scan

func GetScanSummaries added in v0.1.21

func GetScanSummaries(rewindDays int) []tlsmodel.ScanResultSummary

GetScanSummaries returns summaries of scans in the last number of days indicated by rewindDays

func HandShakeClientHello

func HandShakeClientHello(hostname string, config *gotls.Config, startTLS bool, timeout time.Duration) (tlsmodel.ServerHelloMessage, error)

HandShakeClientHello sends client hello and gets Server Hello and Certificates

func HandShakeClientHelloGetServerCert

func HandShakeClientHelloGetServerCert(hostname string, config *gotls.Config, timeout time.Duration) <-chan ServerHelloAndCert

HandShakeClientHelloGetServerCert sends client hello and gets Server Hello and Certificates

func HandShakeUpToKeyExchange

func HandShakeUpToKeyExchange(hostname string, config *gotls.Config, startTLS bool, timeout time.Duration) (tlsmodel.HelloAndKey, error)

HandShakeUpToKeyExchange starts the handshake up till the acquisition of server key exchanges

func ListScans added in v0.1.20

func ListScans(rewindDays int, completed bool) (result []tlsmodel.ScanRequest)

ListScans returns the ScanID list of persisted scans

func LoadScanRequest added in v0.1.20

func LoadScanRequest(dir, scanID string) (psr tlsmodel.PersistedScanRequest, e error)

LoadScanRequest retrieves persisted scan request from folder following a layout pattern

func MergeResultChannels

func MergeResultChannels(channels ...<-chan tlsmodel.ScanResult) <-chan tlsmodel.ScanResult

MergeResultChannels as suggested

func PersistScanRequest added in v0.1.20

func PersistScanRequest(psr tlsmodel.PersistedScanRequest)

PersistScanRequest persists scan request

func PersistScans added in v0.1.20

func PersistScans(psr tlsmodel.PersistedScanRequest, server string, scans []tlsmodel.ScanResult)

PersistScans persists the result of scans per server

func RealtimeScan added in v0.1.20

func RealtimeScan(w http.ResponseWriter, req *http.Request)

RealtimeScan runs a scan asynchronously and streams result over a websocket

func ScanCIDRTLS

func ScanCIDRTLS(cidr string, config tlsmodel.ScanConfig) <-chan tlsmodel.ScanResult

ScanCIDRTLS combines a port scan with TLS scan for a CIDR range to return the open ports, and the TLS setting for each port over the result channel

func ScheduleTLSAudit added in v0.1.22

func ScheduleTLSAudit(ipSource func() []string, resolver func(string) string)

ScheduleTLSAudit runs TLSAudit scan

func Service added in v0.1.22

func Service(configPath string)

Service main service entry function

func StreamScan added in v0.1.20

func StreamScan(day, scanID string, callback func(progress, total int, results []tlsmodel.HumanScanResult))

StreamScan streams the result to a callback function

Types

type ServerHelloAndCert

type ServerHelloAndCert struct {
	ServerHello tlsmodel.ServerHelloMessage
	Cert        tlsmodel.CertificateMessage
	StartTLS    bool
	Err         error
}

ServerHelloAndCert struct holds server hello message and certificate (indicating whether it was STARTTLS), otherwise the error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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