
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
Convert IPv4 or IPv6 address to the Buffer.
const { pton4, pton6 } = require('ip2buf')
pton4('8.8.8.8') // Buffer<0x8, 0x8, 0x8, 0x8>
pton6('2001::') // Buffer<0x20, 0x01, 0, ...>
| library | time (2e6 times) |
|---|---|
| native | 296.627ms |
| ip2buf | 283.710ms |
| ipaddr.js | 1728.538ms |
| library | time (1e6 times) |
|---|---|
| native | 333.071ms |
| ip2buf | 767.788ms |
| ipaddr.js | 1828.334ms |
pton(af: number, addr: string, [[dest: Buffer], index: number]): BufferConvert IPv4 or IPv6 address to the Buffer.
const { pton, constants: { IPV4_OCTETS, IPV6_OCTETS } } = require('ip2buf')
pton(IPV4_OCTETS, '127.0.0.1')
pton(IPV6_OCTETS, '::1')
pton4(addr: string, [[dest: Buffer], index: number]): BufferConvert IPv4 address to the Buffer.
pton6(addr: string, [[dest: Buffer], index: number]): BufferConvert IPv6 address to the Buffer.
constants: Object
IPV4_OCTETS - size of IPv4 target buffer.IPV6_OCTETS - size of IPv6 target buffer.MIT, 2017 (c) Dmitry Tsvettsikh
FAQs
Convert IPv4 or IPv6 address to the Buffer.
The npm package ip2buf receives a total of 7,594 weekly downloads. As such, ip2buf popularity was classified as popular.
We found that ip2buf 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.