Affected by GO-2023-2068
and 5 other vulnerabilities
GO-2023-2068 : Croc sender may place ANSI or CSI escape sequences in filename to attach receiver's terminal device in github.com/schollz/croc
GO-2023-2069 : Croc may expose secret to local users in github.com/schollz/croc
GO-2023-2070 : Croc requires senders to provide local IP addresses in cleartext in github.com/schollz/croc
GO-2023-2071 : Sender can cause a receiver to overwrite files during ZIP extraction in Croc in github.com/schollz/croc
GO-2023-2072 : Cros secrets may be disclosed to untrusted relay in github.com/schollz/croc
GO-2023-2073 : Croc sender may send dangerous new files to receiver in github.com/schollz/croc
The highest tagged major version is
v10 .
Discover Packages
github.com/schollz/croc/v8
src
message
package
Version:
v8.0.2
Opens a new window with list of versions in this module.
Published: Mar 6, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Encode will convert to bytes
type Message struct {
Type string `json:"t,omitempty"`
Message string `json:"m,omitempty"`
Bytes []byte `json:"b,omitempty"`
Num int `json:"n,omitempty"`
}
Message is the possible payload for messaging
Decode will convert from bytes
Source Files
¶
Click to show internal directories.
Click to hide internal directories.