Compare commits
3 commits
59d4d54945
...
16c82bbe16
| Author | SHA1 | Date | |
|---|---|---|---|
| 16c82bbe16 | |||
| bf28f6a8b2 | |||
| f77895dcab |
2 changed files with 25 additions and 25 deletions
|
|
@ -89,19 +89,19 @@ type reportSSHFPRecord struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
type reportEndpoint struct {
|
type reportEndpoint struct {
|
||||||
Address string
|
Address string
|
||||||
Host string
|
Host string
|
||||||
Port uint16
|
Port uint16
|
||||||
IsIPv6 bool
|
IsIPv6 bool
|
||||||
DialFailed bool
|
DialFailed bool
|
||||||
Banner string
|
Banner string
|
||||||
SoftwareVer string
|
SoftwareVer string
|
||||||
Vendor string
|
Vendor string
|
||||||
ElapsedMS int64
|
ElapsedMS int64
|
||||||
Error string
|
Error string
|
||||||
StatusLabel string
|
StatusLabel string
|
||||||
StatusClass string
|
StatusClass string
|
||||||
AnyFail bool
|
AnyFail bool
|
||||||
|
|
||||||
HostKeys []reportHostKey
|
HostKeys []reportHostKey
|
||||||
AlgoTables []reportAlgoTable
|
AlgoTables []reportAlgoTable
|
||||||
|
|
@ -265,16 +265,16 @@ func buildReportData(d *SSHData, states []sdk.CheckState) reportView {
|
||||||
|
|
||||||
for _, ep := range d.Endpoints {
|
for _, ep := range d.Endpoints {
|
||||||
re := reportEndpoint{
|
re := reportEndpoint{
|
||||||
Address: ep.Addr(),
|
Address: ep.Addr(),
|
||||||
Host: ep.Host,
|
Host: ep.Host,
|
||||||
Port: ep.Port,
|
Port: ep.Port,
|
||||||
IsIPv6: ep.IP != nil && ep.IP.To4() == nil,
|
IsIPv6: ep.IP != nil && ep.IP.To4() == nil,
|
||||||
DialFailed: ep.Stage == "dial",
|
DialFailed: ep.Stage == "dial",
|
||||||
Banner: ep.Banner,
|
Banner: ep.Banner,
|
||||||
SoftwareVer: ep.SoftVer,
|
SoftwareVer: ep.SoftVer,
|
||||||
Vendor: ep.Vendor,
|
Vendor: ep.Vendor,
|
||||||
ElapsedMS: ep.ElapsedMS,
|
ElapsedMS: ep.ElapsedMS,
|
||||||
Error: ep.Error,
|
Error: ep.Error,
|
||||||
}
|
}
|
||||||
if ep.IP != nil && ep.IP.To4() == nil {
|
if ep.IP != nil && ep.IP.To4() == nil {
|
||||||
v.AnyIPv6 = true
|
v.AnyIPv6 = true
|
||||||
|
|
|
||||||
|
|
@ -133,8 +133,8 @@ func (p SSHProbe) Addr() string {
|
||||||
|
|
||||||
// HostKeyInfo captures an observed host key in its SSH wire format.
|
// HostKeyInfo captures an observed host key in its SSH wire format.
|
||||||
type HostKeyInfo struct {
|
type HostKeyInfo struct {
|
||||||
Type string `json:"type"` // e.g. "ssh-ed25519"
|
Type string `json:"type"` // e.g. "ssh-ed25519"
|
||||||
RawKey []byte `json:"key"` // SSH wire format (ssh.PublicKey.Marshal())
|
RawKey []byte `json:"key"` // SSH wire format (ssh.PublicKey.Marshal())
|
||||||
}
|
}
|
||||||
|
|
||||||
// Issue is a single SSH finding surfaced to consumers.
|
// Issue is a single SSH finding surfaced to consumers.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue