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