raw_packets is debug; server_version is omitempty

This commit is contained in:
Justin Bastress 2018-05-22 16:05:56 -04:00
parent 434ccaa3f4
commit 05841e9ab4
2 changed files with 3 additions and 3 deletions

@ -248,7 +248,7 @@ type HandshakePacket struct {
ProtocolVersion byte `json:"protocol_version"`
// ServerVersion is a human-readable server version.
ServerVersion string `json:"server_version"`
ServerVersion string `json:"server_version,omitempty"`
// ConnectionID is the ID used by the server to identify this client.
ConnectionID uint32 `zgrab:"debug" json:"connection_id,omitempty"`

@ -23,7 +23,7 @@ type ScanResults struct {
// ServerVersion is a null-terminated string giving the specific
// server version in the initial HandshakePacket. Often of the format
// x.y.z, but not always.
ServerVersion string `json:"server_version"`
ServerVersion string `json:"server_version,omitempty"`
// ConnectionID is the server's internal identifier for this client's
// connection, sent in the initial HandshakePacket.
@ -67,7 +67,7 @@ type ScanResults struct {
// RawPackets contains the base64 encoding of all packets sent and
// received during the scan.
RawPackets []string `json:"raw_packets,omitempty"`
RawPackets []string `json:"raw_packets,omitempty" zgrab:"debug"`
// TLSLog contains the usual shared TLS logs.
TLSLog *zgrab2.TLSLog `json:"tls,omitempty"`