
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
github.com/as/wire9
Protocol Boilerplate Generator
Build wire9/wire9
wire9 -f output_wire9.go (packagename | .)
wire definitions are defined with a comment starting with '//wire9'
//wire9 TypeName MemberName[Width,Type,Endian] ...
//wire9 Dot1 q0[8] q1[8]
//wire9 Dot2 q0[8,int64] q1[,int64]
//wire9 Dot3 q0[8,int64,BE] q1[8,,BE]
At least one Width or Type must be defined per member. Endianness defaults to LE (little-endian).
A conformant type is a type that is described by the value of another type, usually this type is an aggregate (i.e., a slice) and conforms to the length specified by a preceeding value.
Members preceeding other members in wire definitions may indicate the width of the members they preceed.
package main
//wire9 bstr n[4] data[n]
go:generate wire9 -f main_wire9.go .
func main(){
bs := &bstr{}
bs.ReadBinary(os.Stdin)
// Reads in 0x0500000041
// Final value
// &bstr{n: 5, data: "A"}
}
A batch request (two conformant types)
package main
//wire9 bstr n[4] data[n]
//wire9 batch n[4] strings[n,[]bstr]
go:generate wire9 -f main_wire9.go .
func main(){
bs := &batch{}
bs.ReadBinary(os.Stdin)
// Reads in: 0x03000000010000004101000000410100000041
// Final value
// &batch{
n: 3,
data: []bstr{
bstr{n: 1, data: "A"}
bstr{n: 1, data: "B"}
bstr{n: 1, data: "C"}
}
}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.