raw_packets is debug; server_version is omitempty
This commit is contained in:
parent
434ccaa3f4
commit
05841e9ab4
@ -248,7 +248,7 @@ type HandshakePacket struct {
|
|||||||
ProtocolVersion byte `json:"protocol_version"`
|
ProtocolVersion byte `json:"protocol_version"`
|
||||||
|
|
||||||
// ServerVersion is a human-readable server 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 is the ID used by the server to identify this client.
|
||||||
ConnectionID uint32 `zgrab:"debug" json:"connection_id,omitempty"`
|
ConnectionID uint32 `zgrab:"debug" json:"connection_id,omitempty"`
|
||||||
|
@ -23,7 +23,7 @@ type ScanResults struct {
|
|||||||
// ServerVersion is a null-terminated string giving the specific
|
// ServerVersion is a null-terminated string giving the specific
|
||||||
// server version in the initial HandshakePacket. Often of the format
|
// server version in the initial HandshakePacket. Often of the format
|
||||||
// x.y.z, but not always.
|
// 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
|
// ConnectionID is the server's internal identifier for this client's
|
||||||
// connection, sent in the initial HandshakePacket.
|
// connection, sent in the initial HandshakePacket.
|
||||||
@ -67,7 +67,7 @@ type ScanResults struct {
|
|||||||
|
|
||||||
// RawPackets contains the base64 encoding of all packets sent and
|
// RawPackets contains the base64 encoding of all packets sent and
|
||||||
// received during the scan.
|
// 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 contains the usual shared TLS logs.
|
||||||
TLSLog *zgrab2.TLSLog `json:"tls,omitempty"`
|
TLSLog *zgrab2.TLSLog `json:"tls,omitempty"`
|
||||||
|
Loading…
Reference in New Issue
Block a user