
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
protonsdk-variant
Advanced tools
The ProtonSDK Variant code done in Javascript to create or decode packets for games/servers that use ProtonSDK
The ProtonSDK Variant code done in Javascript to create or decode packets for games/servers that use ProtonSDK
Creating a Variant Packet
const { Variant } = require("protonsdk-variant");
const varlist = new Variant(); // create a new instance of Variant class
const packetData = varlist.call("OnConsoleMessage", "Hello"); // creates a packet and returns the data
/* Packet Data:
{
type: 4,
packetType: 1,
netID: -1,
state: 8,
delay: 0,
argsCount: 2,
args: [ 'OnConsoleMessage', 'Hello' ],
packet: <Buffer 04 00 00 00 01 00 00 00 ff ff ff ff 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 44 more bytes>
}*/
const packetData2 = varlist.call(
{
netID: 1,
delay: 1000
},
"OnConsoleMessage",
"Hello"
); // creates a packet with netID and delay options and returns the data
/* Packet Data:
{
type: 4,
packetType: 1,
netID: 1,
state: 8,
delay: 1000,
argsCount: 2,
args: [ 'OnConsoleMessage', 'Hello' ],
packet: <Buffer 04 00 00 00 01 00 00 00 01 00 00 00 00 00 00 00 08 00 00 00 00 00 00 00 e8 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 44 more bytes>
}*/
Converting a Buffer to Variant Class
const { Variant } = require("protonsdk-variant");
const varlist = Variant.from("0400000001000000ffffffff000000000800000000000000000000000000000000000000000000000000000000000000000000000000000000000000020002100000004f6e436f6e736f6c654d65737361676501020500000048656c6c6f"); // returns a new instance of the Variant class containing the decoded data
/* Packet Data:
{
type: 4,
packetType: 1,
netID: -1,
state: 8,
delay: 0,
argsCount: 2,
args: [ 'OnConsoleMessage', 'Hello' ],
packet: <Buffer 04 00 00 00 01 00 00 00 ff ff ff ff 00 00 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ... 44 more bytes>
}*/
FAQs
The ProtonSDK Variant code done in Javascript to create or decode packets for games/servers that use ProtonSDK
We found that protonsdk-variant 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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.