(ident string, entity string)
| 205 | } |
| 206 | |
| 207 | func (h *sshReader) processSSHIdent(ident string, entity string) { |
| 208 | i := parseSSHIdent(ident) |
| 209 | if i != nil { |
| 210 | software.WriteSoftware([]*software.AtomicSoftware{ |
| 211 | { |
| 212 | Software: &types.Software{ |
| 213 | Timestamp: h.conversation.FirstClientPacket.UnixNano(), |
| 214 | Product: i.productName, |
| 215 | Version: i.productVersion, |
| 216 | SourceName: "SSH " + entity + " Ident", |
| 217 | Service: serviceSSH, |
| 218 | Flows: []string{h.conversation.Ident}, |
| 219 | Notes: "SSH version: " + i.sshVersion + " OS: " + i.os, |
| 220 | SourceData: h.serverIdent, |
| 221 | }, |
| 222 | }, |
| 223 | }, nil) |
| 224 | } |
| 225 | } |
| 226 | |
| 227 | func (h *sshReader) searchKexInit(r *bufio.Reader, dir reassembly.TCPFlowDirection) { |
| 228 | dirStr := "client" |
no test coverage detected