Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
socket_protobuf
Advanced tools
socket_protobuf. Described in English. 有中文注释说明.
Under the nodejs running environment, this SDK is used for socket sends the protobuf binary stream.
The open source code has an example, you can download the code to see how to use.
author email:597785841@qq.com
Server.ts
const server1:ServerListener = new ServerListener( 4001 );
server1.startServer( onConnectClient, onDisconnectClient );
socket server backend Handler example, LoginHandler.ts :
export class LoginHandler extends Handler
UserClient.ts
const userClient:Client = new Client({
ip:"127.0.0.1",
port:4001,
time:3
} );
userClient.startConnect( onServerInfo, null, onConnected );
socket client frontend Handler example, LoginSuccessHandler.ts :
export class LoginSuccessHandler extends Handler
在nodejs运行环境下,socket发送protobuf二进制流的SDK。
源码有例子,可以下载源码查看使用方法。
作者邮箱:597785841@qq.com
由于github源码无法访问,中国大陆源码地址如下:
https://e.coding.net/wujinhong/open_source/socket_protobuf.git
Server.ts
const server1:ServerListener = new ServerListener( 4001 );
server1.startServer( onConnectClient, onDisconnectClient );
socket 服务器后端 Handler 例子, LoginHandler.ts :
export class LoginHandler extends Handler
UserClient.ts
const userClient:Client = new Client({
ip:"127.0.0.1",
port:4001,
time:3
} );
userClient.startConnect( onServerInfo, null, onConnected );
socket 客户端前端 Handler 例子, LoginSuccessHandler.ts :
export class LoginSuccessHandler extends Handler
FAQs
socket发送protobuf二进制流的SDK
The npm package socket_protobuf receives a total of 0 weekly downloads. As such, socket_protobuf popularity was classified as not popular.
We found that socket_protobuf demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.