Documentation
¶
Index ¶
- Variables
- func DNSLookup(t, n string) ([]string, error)
- func Get(endpoint string) ([]byte, int, error)
- func GetIP() (string, error)
- func GetRandomIP(version string) (string, error)
- func GetRandomPort() (string, error)
- func PortScan(technique, ip, ports, timeout string) (string, error)
- func Probe(protocol, network, ip, port string) (bool, error)
- type Additional
- type Cert
- type Cipher
- type Error
- type PubKey
- type Result
- type ResultBool
- type ResultStr
- type ResultStrs
- type TLS
- type TLSVersion
- type Target
Constants ¶
This section is empty.
Variables ¶
View Source
var ( API_PATH = "https://elmasy.com/api" USER_AGENT = "Elmasy-SDK" DefaultClient = &http.Client{} )
Functions ¶
func GetRandomIP ¶
func GetRandomPort ¶
Types ¶
type Additional ¶
type Additional struct { CommonName string `json:"commonName"` Hash string `json:"hash"` NotAfter string `json:"notAfter"` Issuer string `json:"issuer"` PublicKey PubKey `json:"publicKey"` SignatureAlgorithm string `json:"signatureAlgorithm"` }
Additional is the additional certificates (eg.: intermediate cert)
type Cert ¶
type Cert struct { CommonName string `json:"commonName"` Hash string `json:"hash"` // SHA256 AlternativeNames []string `json:"alternativeNames"` SignatureAlgorithm string `json:"signatureAlgorithm"` PublicKey PubKey `json:"publicKey"` SerialNumber string `json:"serialNumber"` Issuer string `json:"issuer"` NotBefore string `json:"notBefore"` NotAfter string `json:"notAfter"` Verified bool `json:"verified"` VerifiedError string `json:"verifiedError"` Chain []Additional `json:"chain"` }
Cert is hold the fields "interesting" part of the certficate chain.
func GetCertificate ¶
type Result ¶
type ResultBool ¶
type ResultBool struct {
Result bool `json:"result"`
}
type ResultStrs ¶
type ResultStrs struct {
Results []string `json:"results"`
}
type TLS ¶
type TLS struct { Versions []TLSVersion `json:"version"` Cert Cert `json:"cert"` }
type TLSVersion ¶
type TLSVersion struct { Version string `json:"version"` Supported bool `json:"supported"` Ciphers []Cipher `json:"ciphers"` }
func AnalyzeTLS ¶
func AnalyzeTLS(version, network, ip, port, servername string) (TLSVersion, error)
Click to show internal directories.
Click to hide internal directories.